Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Description
Bug summary
In Matplotlib 1.5.3, it was possible to useimshow
on geo axes (e.g. the mollweide projection defined inmatplotlib.projections.geo
. In Matplotlib 2.0.0, this produces a blank plot.
Code for reproduction
Here is an example that worked in 1.5.3.
frommatplotlibimportpyplotaspltimportnumpyasnplon=np.linspace(-np.pi,np.pi)lat=np.linspace(-np.pi/2,np.pi/2)lon,lat=np.meshgrid(lon,lat)ax=plt.axes(projection='mollweide')ax.grid()ax.imshow(lon,extent=[-np.pi,np.pi,-np.pi/2,np.pi/2],aspect=ax.get_aspect())plt.savefig('test.png')
Actual outcome
This is the output on Matplotlib 2.0.0: blank axes.
Expected outcome
This was the output in Matplotlib 1.5.3.
Matplotlib version
Installed from MacPorts on OS X 10.11.6 "El Capitan". Port versions:
py27-matplotlib @1.5.3_0+cairo
py27-matplotlib @2.0.0_0+cairo
Metadata
Metadata
Assignees
Labels
No labels