[Matplotlib-users] Adjusting sub plot sizes

2014-05-12 Thread Asma Riyaz
Hi, I have generated a heat map along side a tree with gridspec. The issue is that I want the tree with smaller dimensions and heat map should be in a square dimension, adjusting height ratios and width ration only helps reduce tree and the heat map dimensions increase. Here is my code: gs=g

Re: [Matplotlib-users] Basemap: draw parallels/meridians based on rotated pole

2014-05-12 Thread Phil Elson
Hi Maik, Not entirely sure what you're after (a picture may have helped), but I know Basemap has relatively recently added rotated pole coordinate system support which may be of use. I'm not sure how well that goes with the meridian/parallel drawing within Basemap though. Alternatively, if I've u

Re: [Matplotlib-users] Re-combine different axes to make new figure in matplotlib

2014-05-12 Thread Thøger Rivera-Thorsen
I usually get around this by writing my plotting routines as functions that take Axes objects as input. That way, they don't need to know about the layout of the figure, and I can use the same code for figures with one or more axes. I am working on a project involving a sample of galaxies, and som

Re: [Matplotlib-users] Re-combine different axes to make new figure in matplotlib

2014-05-12 Thread Yuxiang Wang
Hi Eric, Thank you for your very clear explanation. -Shawn On Mon, May 12, 2014 at 3:23 AM, Eric Firing wrote: > On 2014/05/11 7:56 PM, Yuxiang Wang wrote: >> Dear all, >> >> I am curious that whether this is possible in matplotlib: >> >> I first create some figures, with subplots. >> >> import

[Matplotlib-users] Basemap: draw parallels/meridians based on rotated pole

2014-05-12 Thread Maik Riechert
Hi, I'm drawing a stereographic map, my data is in geographic latitude, longitude coordinates. But instead of drawing parallels/meridians based on the geographic poles I need to draw them based on the geomagnetic poles, that is, the poles are rotated. E.g. in 2010 the north geomagnetic pole wa

Re: [Matplotlib-users] Re-combine different axes to make new figure in matplotlib

2014-05-12 Thread Eric Firing
On 2014/05/11 7:56 PM, Yuxiang Wang wrote: > Dear all, > > I am curious that whether this is possible in matplotlib: > > I first create some figures, with subplots. > > import matplotlib.pyplot as plt > fig1, axs1 = plt.subplots(2, 2) > fig2, axs2 = plt.subplots(2, 2) > > And then, could I recombin