Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hugo Chauvet-Thiry
RootStemExtractor
Commits
c4a02c77
Commit
c4a02c77
authored
Dec 02, 2021
by
Félix Hartmann
Browse files
The colormap 'viridis' is now used explicitly in the LineCollection for
organ profiles.
parent
bde01752
Changes
1
Hide whitespace changes
Inline
Side-by-side
interekt.py
View file @
c4a02c77
...
...
@@ -492,7 +492,6 @@ def load_hdf5_file(hdf5file):
# Retrieve the data on the steady state from the h5 file
steady_state
,
exclude_steady_state
=
h5store
.
get_steady_state
(
hdf5file
)
print
(
"Steady state: "
,
steady_state
,
exclude_steady_state
)
interekt
.
steady_state_image
=
steady_state
interekt
.
exclude_steady_state_from_time_series
.
set
(
exclude_steady_state
)
...
...
@@ -1450,7 +1449,7 @@ def show_time_series(tige_id=None):
# Subplot with tige profiles
axProfiles
=
fig_time
.
add_subplot
(
grid
[:,
0
])
lcollec
=
LineCollection
(
lines
,
linewidth
=
(
2
,),
c
olor
=
'gray
'
)
lcollec
=
LineCollection
(
lines
,
linewidth
=
(
2
,),
c
map
=
'viridis
'
)
lcollec
.
set_array
(
times
)
axProfiles
.
add_collection
(
lcollec
)
axProfiles
.
set_xlim
((
x
.
min
(),
x
.
max
()))
...
...
@@ -1904,7 +1903,7 @@ def show_growth_rate():
# Subplot with tige profiles
axProfiles
=
fig_growth_rate
.
add_subplot
(
grid
[:,
0
])
lcollec
=
LineCollection
(
lines
,
linewidth
=
(
2
,),
c
olor
=
'gray
'
)
lcollec
=
LineCollection
(
lines
,
linewidth
=
(
2
,),
c
map
=
'viridis
'
)
lcollec
.
set_array
(
times
)
axProfiles
.
add_collection
(
lcollec
)
xmin
,
xmax
,
ymin
,
ymax
=
x
.
min
(),
x
.
max
(),
y
.
min
(),
y
.
max
()
...
...
@@ -2483,7 +2482,7 @@ def show_beta_tilde():
# Displaying tige profiles
axProfiles
=
fig_beta
.
add_subplot
(
grid
[:,
0
])
lcollec
=
LineCollection
(
lines
,
linewidth
=
(
2
,),
c
olor
=
'gray
'
)
lcollec
=
LineCollection
(
lines
,
linewidth
=
(
2
,),
c
map
=
'viridis
'
)
lcollec
.
set_array
(
times
)
axProfiles
.
add_collection
(
lcollec
)
axProfiles
.
set_xlim
((
x
.
min
(),
x
.
max
()))
...
...
@@ -2775,7 +2774,7 @@ def show_gamma_tilde():
# Displaying tige profiles
axProfiles
=
fig_gamma
.
add_subplot
(
grid
[:,
0
])
lcollec
=
LineCollection
(
lines
,
linewidth
=
(
2
,),
c
olor
=
'gray
'
)
lcollec
=
LineCollection
(
lines
,
linewidth
=
(
2
,),
c
map
=
'viridis
'
)
lcollec
.
set_array
(
times
)
axProfiles
.
add_collection
(
lcollec
)
axProfiles
.
set_xlim
((
x
.
min
(),
x
.
max
()))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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