-
Notifications
You must be signed in to change notification settings - Fork 314
unpin mpl #3468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unpin mpl #3468
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,15 +103,15 @@ def main(): | |
|
|
||
| # Add the first subplot showing the E1 scenario | ||
| plt.subplot(121) | ||
| plt.title('HadGEM2 E1 Scenario', fontsize=10) | ||
| plt.title('HadGEM2 E1 Scenario', fontsize=10) | ||
| iplt.contourf(delta_e1, levels, colors=colors, extend='both') | ||
| plt.gca().coastlines() | ||
| # get the current axes' subplot for use later on | ||
| plt1_ax = plt.gca() | ||
|
|
||
| # Add the second subplot showing the A1B scenario | ||
| plt.subplot(122) | ||
| plt.title('HadGEM2 A1B-Image Scenario', fontsize=10) | ||
| plt.title('HadGEM2 A1B-Image Scenario', fontsize=10) | ||
| contour_result = iplt.contourf(delta_a1b, levels, colors=colors, | ||
| extend='both') | ||
| plt.gca().coastlines() | ||
|
|
@@ -131,8 +131,7 @@ def main(): | |
| width = left - first_plot_left + width | ||
|
|
||
| # Add axes to the figure, to place the colour bar | ||
| colorbar_axes = fig.add_axes([first_plot_left, bottom + 0.07, | ||
| width, 0.03]) | ||
| colorbar_axes = fig.add_axes([first_plot_left, 0.18, width, 0.03]) | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The The fix here is to explicitly set the bottom of the |
||
|
|
||
| # Add the colour bar | ||
| cbar = plt.colorbar(contour_result, colorbar_axes, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,7 +64,6 @@ | |
| 'sphinx.ext.imgmath', | ||
| 'sphinx.ext.intersphinx', | ||
| 'matplotlib.sphinxext.mathmpl', | ||
| 'matplotlib.sphinxext.only_directives', | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After a little bit of investigation, I happened across matplotlib/matplotlib#11295... In a nutshell, ditch the
|
||
| 'matplotlib.sphinxext.plot_directive', | ||
|
|
||
| # better class documentation | ||
|
|
||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,7 @@ cartopy | |
| cf-units>=2 | ||
| cftime | ||
| dask[array]>=2 #conda: dask>=2 | ||
| matplotlib>=2,<3 | ||
| matplotlib | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that, we still want to enforce |
||
| netcdf4 | ||
| numpy>=1.14 | ||
| scipy | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retire this testing infrastructure - it's flaky and pre-dates the existing workflow using perceptual image hashing.
If there are graphical failures on
travis-cithen the developer will rerun locally, which is an acceptable workflow now that we have the necessaryidiffcapability and repeatabletravis-cienvironments locally. So this--print-failed-imagescapability is really no longer needed... so let's take the opportunity to purge old technical debt 😜