Re: [Matplotlib-users] subplot layout

2016-04-25 Thread Paul Hobson
Your basemap plot is likely setting the aspect of the axes to "equal", so it resizes the plot accordingly. Otherwise you'd have a pretty nasty amount of vertical distortion. When you save the figure, using bbox_inches='tight' will trim the excess white space from the margins: fig.savefig('map_and_

Re: [Matplotlib-users] subplot layout

2016-04-25 Thread Jody Klymak
Yes, the left hand axis is shrinking in the vertical because it is applying the aspect ratio appropriate for 15 N and the N/S extent of your data. Either make the N/S extent of the map larger; make the left hand column wider; or make the figure shorter. Cheers, Jody > On 25 Apr 2016, at 9:

Re: [Matplotlib-users] subplot layout

2016-04-25 Thread Sudheer Joseph
Thank you Paul, Thanks for the tips related to margins and also about colormaps. Is there a way to stop the automatic aspect ratio setting ( though it it distors map in present case ) if I wanted to use that for other plots? With best regards, Sudheer **

Re: [Matplotlib-users] subplot layout

2016-04-25 Thread Sudheer Joseph
Hi Paul, I tried to get the new colormap suggestion from you but could not get the colormap package. Where can I get it? google search did not took me to the package/ Is it a development package? May I know how to use viridis color map with an example plot? Below is an example code from th

Re: [Matplotlib-users] subplot layout

2016-04-25 Thread Paul Hobson
Viridis is in the `cm` submodule. from matplotlib import cm cmap = cm.viridis On Mon, Apr 25, 2016 at 6:24 PM, Sudheer Joseph wrote: > Hi Paul, > > I tried to get the new colormap suggestion from you but could not get the > colormap package. Where can I get it? google search did not took me to