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
pmall
app_OP
Commits
39411b0c
Commit
39411b0c
authored
Jan 08, 2020
by
Samuël Weber
Browse files
fix row layout contribution
parent
c6795f49
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/app_results.py
View file @
39411b0c
...
...
@@ -1454,8 +1454,8 @@ def update_op_contribution_graph(stations, species, plot_type):
category_orders
=
{
"estimator"
:
[
"50%"
,
"mean"
]},
height
=
1000
)
fig
.
update_yaxes
(
title_text
=
"Median value<br>OP {} (nmol.min⁻¹.m⁻³)"
.
format
(
species
[
0
]),
row
=
1
)
fig
.
update_yaxes
(
title_text
=
"Mean value<br>OP {} (nmol.min⁻¹.m⁻³)"
.
format
(
species
[
0
]),
row
=
2
)
fig
.
update_yaxes
(
title_text
=
"Median value<br>OP {} (nmol.min⁻¹.m⁻³)"
.
format
(
species
[
0
]),
row
=
2
,
col
=
1
)
fig
.
update_yaxes
(
title_text
=
"Mean value<br>OP {} (nmol.min⁻¹.m⁻³)"
.
format
(
species
[
0
]),
row
=
1
,
col
=
1
)
elif
plot_type
==
"seasonal"
:
data
=
contrib
.
groupby
([
"season"
,
"factor"
])
\
.
describe
()[
"OP"
][[
"mean"
,
"50%"
]]
\
...
...
@@ -1467,11 +1467,11 @@ def update_op_contribution_graph(stations, species, plot_type):
color_discrete_map
=
colors
,
barmode
=
"group"
,
facet_row
=
"estimator"
,
category_orders
=
{
"season"
:
[
"Winter"
,
"Spring"
,
"Summer"
,
"Fall"
]},
category_orders
=
{
"estimator"
:
[
"50%"
,
"mean"
],
"season"
:
[
"Winter"
,
"Spring"
,
"Summer"
,
"Fall"
]},
height
=
1000
,
#*len(stations),
)
fig
.
update_yaxes
(
title_text
=
"Median value<br>OP {} (nmol.min⁻¹.m⁻³)"
.
format
(
species
[
0
]),
row
=
1
)
fig
.
update_yaxes
(
title_text
=
"Mean value<br>OP {} (nmol.min⁻¹.m⁻³)"
.
format
(
species
[
0
]),
row
=
2
)
fig
.
update_yaxes
(
title_text
=
"Median value<br>OP {} (nmol.min⁻¹.m⁻³)"
.
format
(
species
[
0
]),
row
=
2
)
fig
.
update_yaxes
(
title_text
=
"Mean value<br>OP {} (nmol.min⁻¹.m⁻³)"
.
format
(
species
[
0
]),
row
=
1
)
elif
plot_type
==
"ts"
:
fig
=
px
.
area
(
contrib
,
x
=
"Date"
,
y
=
"OP"
,
color
=
"factor"
,
...
...
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