Skip to content

iris.plot does not always plot cloud base/top extent correctly #4381

@mo-avdjturp

Description

@mo-avdjturp

🐛 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:

  1. cube=iris.load(cloud_base_file)
  2. contour_levels = np.linspace(0.0, 8000.0, 9.)
  3. cf = iplt.contourf(cube[0], contour_levels)
  4. 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
![Figure_1](https://user-images.githubusercontent.com/89387305/137705611-2b6f3774-0838-4f20-a272-83ac2c43bfba.png)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions