Skip to content

Commit

Permalink
Fix cirrus ci and mpl (#4087)
Browse files Browse the repository at this point in the history
* fix mpl SymLogNorm

* update graphics tests phashes

* add whatsnew entries

* gallery image phash update
  • Loading branch information
bjlittle authored Apr 9, 2021
1 parent 7fd7960 commit 148edc3
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 39 deletions.
6 changes: 3 additions & 3 deletions docs/gallery_code/general/plot_anomaly_log_colouring.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ def main():
# Create a 'logarithmic' data normalization.
anom_norm = mcols.SymLogNorm(
linthresh=minimum_log_level,
linscale=0,
linscale=1,
vmin=-maximum_scale_level,
vmax=maximum_scale_level,
)
# Setting "linthresh=minimum_log_level" makes its non-logarithmic
# data range equal to our 'zero band'.
# Setting "linscale=0" maps the whole zero band to the middle colour value
# (i.e. 0.5), which is the neutral point of a "diverging" style colormap.
# Setting "linscale=1" maps the whole zero band to the middle colour value
# (i.e., 0.5), which is the neutral point of a "diverging" style colormap.

# Create an Axes, specifying the map projection.
plt.axes(projection=ccrs.LambertConformal())
Expand Down
6 changes: 6 additions & 0 deletions docs/src/whatsnew/latest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ This document explains the changes made to Iris for this release
developers to easily disable `cirrus-ci`_ tasks. See
:ref:`skipping Cirrus-CI tasks`. (:pull:`4019`)

#. `@bjlittle`_ and `@jamesp`_ addressed a regression in behaviour when using
`conda`_ 4.10.0 within `cirrus-ci`_. (:pull:`4084`)

#. `@bjlittle`_ updated the perceptual imagehash graphical test support for
`matplotlib`_ 3.4.1. (:pull:`4087`)


.. comment
Whatsnew author names (@github name) in alphabetical order. Note that,
Expand Down
Loading

0 comments on commit 148edc3

Please sign in to comment.