[Matplotlib-users] axisGrid - blank subplots

2011-02-28 Thread Boyle, Jim
I am using AxesGrid (from mpl_toolkits.axes_grid1 import AxesGrid) to generate multi-panel plots. It does very well except I have a problem with a blank subplot. I have 5 plots to display and the geometry of nrows_ncols=(3,2) produces the plot that I want except there is a frame placed in the

[Matplotlib-users] Make the area a bit larger

2011-02-28 Thread Andrea Crotti
So since I wanted some space on the borders of my graph, I did this really extremely convoluted thing, which apparently works... I get a 10% more area on each side, but I'm quite sure there's a better way to this, right? I didn't find any function to pass an increment to the size that's why I did

Re: [Matplotlib-users] Make the area a bit larger

2011-02-28 Thread Gökhan Sever
On Mon, Feb 28, 2011 at 10:48 AM, Andrea Crotti andrea.crott...@gmail.comwrote: So since I wanted some space on the borders of my graph, I did this really extremely convoluted thing, which apparently works... I get a 10% more area on each side, but I'm quite sure there's a better way to this,

Re: [Matplotlib-users] Best way to modify plot / subplot

2011-02-28 Thread Benjamin Root
On Sun, Feb 27, 2011 at 4:49 PM, David Andrews irbda...@gmail.com wrote: Hi All, I'm looking for some suggestions about two problems: 1) I'm converting some figure generating code from IDL into Python/matplotlib. Image attached showing this figure. IDL being a functional programming

Re: [Matplotlib-users] axisGrid - blank subplots

2011-02-28 Thread Paul Ivanov
Boyle, Jim, on 2011-02-28 08:40, wrote: I am using AxesGrid (from mpl_toolkits.axes_grid1 import AxesGrid) to generate multi-panel plots. It does very well except I have a problem with a blank subplot. I have 5 plots to display and the geometry of nrows_ncols=(3,2) produces the plot that I

Re: [Matplotlib-users] Make the area a bit larger

2011-02-28 Thread Paul Ivanov
Gökhan Sever, on 2011-02-28 11:32, wrote: On Mon, Feb 28, 2011 at 10:48 AM, Andrea Crotti andrea.crott...@gmail.comwrote: So since I wanted some space on the borders of my graph, I did this really extremely convoluted thing, which apparently works... I get a 10% more area on each side,

Re: [Matplotlib-users] Best way to modify plot / subplot

2011-02-28 Thread Goyo
David, the preferred way to custom plots seems to be passing an Axes instance to the plotting function. Some tricks allow use of pylab/pyplot style: def custom_plot(x, y, axes=None): ... if axes is None: axes = pyplot.gca() axes.plot(x, y) What you don't get this way is the

[Matplotlib-users] Issue with imshow and usetex

2011-02-28 Thread Thomas Robitaille
Hi, In the following example: --- import numpy as np import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(1, 1, 1) ax.imshow(np.random.random((1024, 1024)), interpolation='nearest') fig.savefig('test_1.eps') mpl.rc('text',

Re: [Matplotlib-users] axisGrid - blank subplots

2011-02-28 Thread Jae-Joon Lee
You may use ngrids keyword parameter. i.e.,., nrows_ncols=(3,2), ngrids=5 Regards, -JJ On Tue, Mar 1, 2011 at 1:40 AM, Boyle, Jim boy...@llnl.gov wrote: I am using AxesGrid (from mpl_toolkits.axes_grid1 import AxesGrid) to generate multi-panel plots. It does very well except I have a

Re: [Matplotlib-users] savefig bbox_inches='tight' does not consider suptitle

2011-02-28 Thread Jae-Joon Lee
On Fri, Feb 25, 2011 at 9:15 PM, Yuri D'Elia wav...@users.sf.net wrote: In the following: import matplotlib as mpl import matplotlib.figure import matplotlib.backends.backend_agg fig = mpl.figure.Figure() cvs = mpl.backends.backend_agg.FigureCanvasAgg(fig) fig.set_size_inches((20,20))