Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 500d9028 authored by Samuël Weber's avatar Samuël Weber
Browse files

fix OP

parent e4bfe2b8
......@@ -348,21 +348,30 @@ def update_box_grah(species, stations, temporality, plots_options, groupby_var):
# ==== Plot option ========================================================
plot_type = "box" if "boxplot" in plots_options else "bar"
# X variable
if temporality == 1:
if temporality == "season":
date_var_list = ["DJF", "MAM", "JJA", "SON"]
elif temporality == 2:
elif temporality == "month":
date_var_list = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep",
"Oct", "Nov", "Dec"]
elif temporality == "year":
date_var_list = [str(x) for x in list(range(dfdt["year"].min(), dfdt['year'].max()))]
elif temporality == "all":
date_var_list = ["All date"]
elif temporality == "hot-cold":
date_var_list = ["NDJFMA (Cold)", "MJJASO (Hot)"]
else:
print("???")
x_var = groupby_var
if x_var == "Date":
x_var_col = "season" if temporality == 1 else "month"
x_var_col = temporality
x_var_list = date_var_list
hue_var_col = "Station"
hue_var_list = stations
elif x_var == "Site":
x_var_col = "Station"
x_var_list = stations
hue_var_col = "season" if temporality == 1 else "month"
hue_var_col = temporality
hue_var_list = date_var_list
xticklabels = x_var_list
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment