Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Track Analyzer
track-analyzer
Commits
babd627c
Commit
babd627c
authored
Jan 20, 2022
by
amichaut
Browse files
adding show_legend to total_traj_plots
parent
4d2a5702
Pipeline
#74094
passed with stages
in 29 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
track_analyzer/plotting.py
View file @
babd627c
...
...
@@ -1377,7 +1377,7 @@ def plot_total_traj(data_dir, df, dim=3, plot_dir=None, plot_fn=None, plot_confi
cmap_lim
=
specific_config
[
'cmap_lim'
]
subset_order
=
specific_config
[
'subset_order'
]
transparency
=
specific_config
[
'transparency'
]
show_legend
=
True
show_legend
=
specific_config
[
'show_legend'
]
# get info
info
=
tpr
.
get_info
(
data_dir
)
...
...
track_analyzer/prepare.py
View file @
babd627c
...
...
@@ -1347,6 +1347,7 @@ def make_traj_config(data_dir=None, export_config=True):
'cmap_lim'
:
None
,
# pass custom colormap limits
'subset_order'
:
None
,
# if color_code is group, order of group in color cycle
'transparency'
:
1
,
#plot transparency
'show_legend'
:
True
# show legend
}
# config of voronoi plot
...
...
track_analyzer/scripts/analyze_maps.py
View file @
babd627c
...
...
@@ -199,8 +199,8 @@ def map_analysis(data_dir, data=None, image=None, refresh=False, parallelize=Fal
plot_dir
=
osp
.
join
(
sub_dir
,
field
)
tpr
.
safe_mkdir
(
plot_dir
)
map_param_
=
dict
(
map_param
)
map_param_
[
'vlim'
]
=
scalar_fields_
[
field
][
'vlim'
]
map_param_
[
'cmap'
]
=
scalar_fields_
[
field
][
'cmap'
]
map_param_
[
'vlim'
]
=
scalar_fields_
[
field
][
'vlim'
]
if
'vlim'
in
scalar_fields_
[
field
].
keys
()
else
None
map_param_
[
'cmap'
]
=
scalar_fields_
[
field
][
'cmap'
]
if
'cmap'
in
scalar_fields_
[
field
].
keys
()
else
'plasma'
tpl
.
plot_all_scalar_fields
(
data_dir
,
df
,
field_data
,
field
,
image
=
image
,
map_param
=
map_param_
,
plot_dir
=
plot_dir
,
plot_config
=
plot_config
,
dont_print_count
=
False
)
for
field
in
vector_fields
.
keys
():
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment