Skip to content

Conversation

@rcomer
Copy link
Member

@rcomer rcomer commented May 23, 2021

🚀 Pull Request

Description

Fixes #4086

As noted at #4086, our antialiasing handling exposed a matplotlib bug for a pretty specific edge case. Regardless of this bug, it's a bit redundant to call pyplot.contour when the data do not span the requested levels, so we should plausibly get a tiny efficiency gain by skipping it when not needed.


Consult Iris pull request check list

@bjlittle bjlittle self-assigned this May 25, 2021
@bjlittle bjlittle self-requested a review May 25, 2021 16:13
Copy link
Member

@bjlittle bjlittle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rcomer Awesome work.

I'm loving your non-graphical graphical test 👍 🚀 😍

@bjlittle bjlittle merged commit aee4ce7 into SciTools:master May 25, 2021
@rcomer rcomer deleted the contourf-antialias-fix branch May 25, 2021 16:22
tkknight added a commit to tkknight/iris that referenced this pull request May 26, 2021
* master: (87 commits)
  Contourf Antialias Fix (SciTools#4150)
  minor tidy of cirrus and nox (SciTools#4152)
  update bug and feature templates (SciTools#4147)
  Update CI environment lockfiles + Cartopy 0.19 changes (SciTools#4125)
  separate arg types from descriptions (SciTools#4100)
  Use assertArrayAllClose for sqrt test (SciTools#4118)
  Removed branch suffix (SciTools#4117)
  Corrected plot_anomaly_log_colouring for new Matplotlib linscale rules. (SciTools#4115)
  replace most recent hashes (SciTools#4112)
  Linkcheck update (SciTools#4104)
  CI lockfiles (SciTools#4108)
  Fix bug in gallery_tests runner (SciTools#4111)
  add logo to conda and pypi badges (SciTools#4088)
  pre-commit-ci update (SciTools#4092)
  Fix cirrus ci and mpl (SciTools#4087)
  Update readme docs stable (SciTools#4089)
  linux kernel version fix for conda 4.10+ (SciTools#4084)
  update docs pypi instructions (SciTools#4077)
  update flake8 pre-commit (SciTools#4067)
  Add GitHub discussions badge (SciTools#4070)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Antialiased contourf plot shows unexpected artifacts

2 participants