-
I am trying to customise the label of my figure so it spans the same range regardless of the data showcased. Uniform labelling is important as I am making an animation over time of my simulation results. For the purposes of this post I am using the sample data. Here is my code:
I want to manually set the label range of the colour bar under the map, lets say from 230 to 310. I have not had any luck figuring this one out yet, any help would be very appreciated. Thank you for considering the problem. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @maczik, the Iris plotting functions are wrappers to the matplotlib plotting functions. So to find all the configuration options you can look at the Matplotlib docs. In this case I think you want to set the The |
Beta Was this translation helpful? Give feedback.
-
Looks answered. Archiving this |
Beta Was this translation helpful? Give feedback.
Hi @maczik, the Iris plotting functions are wrappers to the matplotlib plotting functions. So to find all the configuration options you can look at the Matplotlib docs. In this case I think you want to set the
levels
keyword, and/orvmin
andvmax
.The
iplt.contourf
call in this Gallery example seems similar to what you want:https://scitools-iris.readthedocs.io/en/stable/generated/gallery/meteorology/plot_lagged_ensemble.html#sphx-glr-generated-gallery-meteorology-plot-lagged-ensemble-py