-
Notifications
You must be signed in to change notification settings - Fork 296
Description
🐛 Bug Report
iris.plot does not always plot cloud base/top extent correctly. The plotted region is sometimes less than it should be.
How To Reproduce
Steps to reproduce the behaviour:
- cube=iris.load(cloud_base_file)
- contour_levels = np.linspace(0.0, 8000.0, 9.)
- cf = iplt.contourf(cube[0], contour_levels)
- plt.show()
(Example cloud base file is in /scratch/fpdh/CB/20210819T0600Z/20210819T0000Z_T+06_CB_base_test1_as_height.pp;
example cloud top file is in /scratch/fpdh/CB/20210819T0600Z/20210819T0000Z_T+06_CB_top_test1_as_height.pp)
Expected behaviour
Cloud base field extent should be the same as cloud top field extent. (Independent testing and plotting with matplotlib.pyplot confirms that this should be the case).
Actual behaviour
Cloud base field extent is less than cloud top field extent.
When plotted with matplotlib.pyplot, the extents are the same.
(See example plots; plt=plotted with matplotlib.pyplot, iplt=plotted with iris.plot)
Screenshots
Environment
- OS & Version: [e.g., Ubuntu 20.04 LTS]
- Iris Version: [e.g., From the command line run
python -c "import iris; print(iris.__version__)"
]
RHEL7
python-3.4.10
iris-2.4.0 (from scientific software stack - default-current environment)
Additional context
Click to expand this section...
Please add additional verbose information in this section e.g., code, output, tracebacks, screenshots etc