Order of plots in a recipe #3015
-
Hello, I'm developing a new recipe that produces 5 plots per dataset. The order in which the plots are displayed seems to be random, which is not helpful for comparing results from different datasets. Is there a way to keep the order fixed? For instance, I'm getting the following order when I run the recipe for two datasets: figure4_CERES-EBAF.png I loop over datasets, so I'd like to get this: figure1_BCC-ESM1.png Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Are you using shared diagnostic functions to select/group your input data like Example that uses this: ESMValTool/esmvaltool/diag_scripts/climate_metrics/ecs.py Lines 312 to 313 in ab888f9 |
Beta Was this translation helpful? Give feedback.
-
brilliant, cheers, mate 🍺 |
Beta Was this translation helpful? Give feedback.
Are you using shared diagnostic functions to select/group your input data like
select_metadata
orgroup_metadata
? There is also a functionsorted_metadata
which sorts your input data, which should also sort your plots. Forgroup_metadata
, there is asort
keyword.Example that uses this:
ESMValTool/esmvaltool/diag_scripts/climate_metrics/ecs.py
Lines 312 to 313 in ab888f9