Re: [Matplotlib-users] subplots [xy]labels

2013-01-04 Thread giacomo . boffi
Alex Goodman writes: > Try using the set_ylabel() and set_xlabel() methods for each Axes instance > instead, eg: > > a[0].set_ylabel('f1') > ... works as intended, tx Alex -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Kno

Re: [Matplotlib-users] subplots [xy]labels

2013-01-04 Thread Alex Goodman
Hi Giacomo, Try using the set_ylabel() and set_xlabel() methods for each Axes instance instead, eg: a[0].set_ylabel('f1') a[0].set_xlabel('t') a[1].set_ylabel('f2') a[1].set_xlabel('t') On Fri, Jan 4, 2013 at 5:44 AM, wrote: > two plots in a figure: >

[Matplotlib-users] subplots [xy]labels

2013-01-04 Thread giacomo . boffi
two plots in a figure: from pylab import * ... f,a = subplots(nrows=2, sharex=False, sharey=False) a[0].plot(x,f0(x)) ylabel('f1') xlabel('t') ... a[1].plot(x,f1(x)) ylabel('f2') xlabel('t') ... show()

Re: [Matplotlib-users] subplots: common x and y labels

2012-11-13 Thread Benjamin Root
On Tue, Nov 13, 2012 at 6:16 AM, Francesco Montesano < franz.berges...@gmail.com> wrote: > Dear matplolibers, > > when dealing with multi-axes plot sometimes would be nice to use > figure-wide x and y labels. > On the web I've found some suggestion on how to do this, but I found > no solution vali

[Matplotlib-users] subplots: common x and y labels

2012-11-13 Thread Francesco Montesano
Dear matplolibers, when dealing with multi-axes plot sometimes would be nice to use figure-wide x and y labels. On the web I've found some suggestion on how to do this, but I found no solution valid in the general case and that integrate in the matplotlib ecosystem. The ideal would be to have a "s

Re: [Matplotlib-users] Subplots, multiple bar3d plots + titling

2009-09-30 Thread Reinier Heeres
Hi, I will have a look at mplot3d sub-plots next weekend and try to fix issues like this. I'll also add a working example. Cheers, Reinier On Tue, Sep 29, 2009 at 5:05 PM, Jae-Joon Lee wrote: > Hmm, axes3d does not seem to support it currently. I hope Reinier or > others confirm this. > Anyhow,

Re: [Matplotlib-users] Subplots, multiple bar3d plots + titling

2009-09-29 Thread Jae-Joon Lee
Hmm, axes3d does not seem to support it currently. I hope Reinier or others confirm this. Anyhow, here is a quick workaround you may try. from matplotlib.axes import subplot_class_factory class MyAxes3D(Axes3D): def _button_press(self, event): if event.inaxes == self: Axe

Re: [Matplotlib-users] Subplots, multiple bar3d plots + titling

2009-09-29 Thread qubax
Thanks, that works like a charm. final bonus question: How can i individually set the point of view/zoom level for the different 3d subplots? Currently, when i rotate/zoom (with the mouse) in one subplot, the changes are applied on all 3d subplots. Thanks again, q On Mon, Sep 28, 2009 at 11:52

Re: [Matplotlib-users] Subplots, multiple bar3d plots + titling

2009-09-28 Thread Jae-Joon Lee
Try below instead of Axes3D. Obviously, "131" is the geometry parameter for subplot command. You don't need to add "ax" to "fig" since Axes3D do that by itself. from matplotlib.axes import subplot_class_factory Subplot3D = subplot_class_factory(Axes3D) ax = Subplot3D(fig, 131) This will show yo

Re: [Matplotlib-users] Subplots, multiple bar3d plots + titling

2009-09-28 Thread Nicolas Bigaouette
I'm not sure its possible right now to do subplots with 3D. As for the title, I cannot either put titles on any 3D graphs... 2009/9/28 > Greetings, > > I would like to plot to make a figure with 3 subplots > of the form (221) to (223): > - each subplot should show a bar3d plot of a matrix >

[Matplotlib-users] Subplots, multiple bar3d plots + titling

2009-09-28 Thread qubax
Greetings, I would like to plot to make a figure with 3 subplots of the form (221) to (223): - each subplot should show a bar3d plot of a matrix - each subplot should have it's own title The problems: a) I don't see (nor did i find something) how i can use subplots combined with bar3d (f

Re: [Matplotlib-users] subplots with no space between limited to 6x6?

2009-06-29 Thread Adam
Thanks Jae-Joon, that worked. Adam On Mon, Jun 29, 2009 at 9:03 AM, Jae-Joon Lee wrote: > Yes, I can reproduce this with the current svn. > > I think what's happening is that, with larger number of grid,  there > is slight overlapping between each subplots (likely due to the > floating point erro

Re: [Matplotlib-users] subplots with no space between limited to 6x6?

2009-06-29 Thread Jae-Joon Lee
Yes, I can reproduce this with the current svn. I think what's happening is that, with larger number of grid, there is slight overlapping between each subplots (likely due to the floating point error). Note that subplot command deletes existing axes if they overlap with the new one. There would

[Matplotlib-users] subplots with no space between limited to 6x6?

2009-06-29 Thread keflavich
Hi, I'm trying to make a large grid of subplots with no spacing between. The following code fails for any grid size larger than 6x6 by skipping a row and a column. for i in xrange(1,65): subplot(8,8,i) plot( [0,1] ) subplots_adjust(hspace=0,wspace=0) Is there a way around this probl

Re: [Matplotlib-users] Subplots

2009-05-13 Thread Stefanie Lück
Thanks a lot! Problem solved! Stefanie - Original Message - From: "Matthias Michler" To: Sent: Wednesday, May 13, 2009 2:16 PM Subject: Re: [Matplotlib-users] Subplots > Hello Stefanie, > > I think the problem is that you try to initialise a subplot with > subpl

Re: [Matplotlib-users] Subplots

2009-05-13 Thread Matthias Michler
Hello Stefanie, I think the problem is that you try to initialise a subplot with subplot(112) which is not possible, because the first to numbers in 112 define the subplot structure / geometry (here 1 by 1) and the last number give the index of the subplot. In general you could use N x M (N rows

[Matplotlib-users] Subplots

2009-05-13 Thread Stefanie Lück
Hello! I'm trying to draw several plots on after the other in a wxScrolledPanel but I got the error message: Traceback (most recent call last): File "D:\Eigene Datein\Python\current\RNAiscan\Test\sample.py", line 96, in frame = MyFrame() File "D:\Eigene Datein\Python\current\RNAiscan\Te

Re: [Matplotlib-users] subplots and text?

2009-04-24 Thread granquet
Ryan May wrote: > On Fri, Apr 24, 2009 at 8:41 AM, granquet > wrote: > > Hello, > I just discovered matplotlib (and python). > I got things running pretty fast/easily (thx to the good > documentation) > but I got a problem with texts and subplots. >

Re: [Matplotlib-users] subplots and text?

2009-04-24 Thread Ryan May
On Fri, Apr 24, 2009 at 8:41 AM, granquet wrote: > Hello, > I just discovered matplotlib (and python). > I got things running pretty fast/easily (thx to the good documentation) > but I got a problem with texts and subplots. > > -text tend to overlap previous subplots. this is more annoying than a

[Matplotlib-users] subplots and text?

2009-04-24 Thread granquet
Hello, I just discovered matplotlib (and python). I got things running pretty fast/easily (thx to the good documentation) but I got a problem with texts and subplots. -text tend to overlap previous subplots. this is more annoying than a real issue ... but still, It looks blatantly dirty... I had

Re: [Matplotlib-users] Subplots from existing figures

2008-03-05 Thread Christiaan Putter
Hi guys, I've been wanting to do something similar as well. Create a figure from other figures. The function accepts a list of figures, and according to the ratio (rows to columns) creates a bigger figure of appropriate size and 'copies' the axes into the new figure. I calculate the positions a

Re: [Matplotlib-users] subplots with linked axes

2008-02-20 Thread Nick Granger-Brown
r-Brown Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] subplots with linked axes It sounds like what you want is to use the "shared axis" functionality. See the shared_axis_demo.py http://matplotlib.sourceforge.net/examples/shared_axis_demo.py Cheers, Mike Nick

Re: [Matplotlib-users] subplots with linked axes

2008-02-20 Thread Michael Droettboom
It sounds like what you want is to use the "shared axis" functionality. See the shared_axis_demo.py http://matplotlib.sourceforge.net/examples/shared_axis_demo.py Cheers, Mike Nick Granger-Brown wrote: > I would like to plot two or three graphs as subplots in a figure and > control the axes su

Re: [Matplotlib-users] subplots with linked axes

2008-02-20 Thread John Hunter
On Feb 20, 2008 6:30 AM, Nick Granger-Brown <[EMAIL PROTECTED]> wrote: > > > I would like to plot two or three graphs as subplots in a figure and control > the axes such that when one graph is zoomed the others are adjusted too. I > was hoping there would be a notification mechanism which would al

[Matplotlib-users] subplots with linked axes

2008-02-20 Thread Nick Granger-Brown
I would like to plot two or three graphs as subplots in a figure and control the axes such that when one graph is zoomed the others are adjusted too. I was hoping there would be a notification mechanism which would allow me to catch a rescaling of one subplot and redraw the others in step. Can an

Re: [Matplotlib-users] Subplots from existing figures

2008-02-18 Thread Robin
Thanks very much for all your help. On Feb 18, 2008 3:44 PM, John Hunter <[EMAIL PROTECTED]> wrote: > It's not that it isn't supported, it's just rarely used and so may > have slowly broken over time. It is useful, so It would be worthwhile > for us to fix it. Are you using 0.91.2 or svn? I am

Re: [Matplotlib-users] Subplots from existing figures

2008-02-18 Thread John Hunter
On Feb 18, 2008 9:34 AM, Robin <[EMAIL PROTECTED]> wrote: > figs = [x[0] for x in results] > oldaxs = [fig.get_children()[1] for fig in figs] > for fig, ax in zip(figs,oldaxs): > fig.delaxes(ax) > pl.close(fig) Probably better: oldaxs = [] for fig in figs: for ax in fig.axes:

Re: [Matplotlib-users] Subplots from existing figures

2008-02-18 Thread Robin
On Feb 18, 2008 2:00 PM, John Hunter <[EMAIL PROTECTED]> wrote: > You will need to remove the axes from the original figure: > > oldfig.delaxes(ax) > > > and then add it to the new figure > > ax.set_figure(newfig) > newfig.add_axes(ax) > > If you are adding several, you may want to play with

Re: [Matplotlib-users] Subplots from existing figures

2008-02-18 Thread John Hunter
On Feb 18, 2008 1:43 AM, Robin <[EMAIL PROTECTED]> wrote: > If I move the axes over as you describe, will this also bring the > plotted data, titles etc.? I will try and play around with this later > today. Would I first have to delete the existing axes created when I > create the subplot? Wouldn'

Re: [Matplotlib-users] Subplots from existing figures

2008-02-17 Thread Robin
On Feb 18, 2008 4:44 AM, Eric Firing <[EMAIL PROTECTED]> wrote: > I'm not sure I understand what you want to do; is it to recycle axes > objects that were originally in one or more figures and put them in > another figure? Hi, I have a number of figures created from functions like this: fig1 = pl

Re: [Matplotlib-users] Subplots from existing figures

2008-02-17 Thread Eric Firing
Robin, I'm not sure I understand what you want to do; is it to recycle axes objects that were originally in one or more figures and put them in another figure? It looks like that might be doable if you create the new figure, then for each axes call ax.set_figure(newfig), and then for each axe

Re: [Matplotlib-users] Subplots from existing figures

2008-02-17 Thread Robin
On Feb 15, 2008 12:04 PM, Robin <[EMAIL PROTECTED]> wrote: > Hello, > > I have some functions that produce various figures. This is usually > done by calling figure(), then the plot function (eg bar). I save the > figure object and pass it out. > > I would like to be able to collect several figure

[Matplotlib-users] Subplots from existing figures

2008-02-15 Thread Robin
Hello, I have some functions that produce various figures. This is usually done by calling figure(), then the plot function (eg bar). I save the figure object and pass it out. I would like to be able to collect several figure objects from such functions and collect them as subplots in a single fi

Re: [Matplotlib-users] subplots with the OO interface (ax.rowNum, ax.colNum)

2007-03-20 Thread Ryan Krauss
Thanks John. That will work. Ryan On 3/20/07, John Hunter <[EMAIL PROTECTED]> wrote: > On 3/20/07, Ryan Krauss <[EMAIL PROTECTED]> wrote: > > I have a figure with 2 subplots (2 rows, 1 column) created using the > > OO interface like this: > > > > ax1=fig.add_subplot(2,1,1) > > ax2=fig.add_subplo

Re: [Matplotlib-users] subplots with the OO interface (ax.rowNum, ax.colNum)

2007-03-20 Thread John Hunter
On 3/20/07, Ryan Krauss <[EMAIL PROTECTED]> wrote: > I have a figure with 2 subplots (2 rows, 1 column) created using the > OO interface like this: > > ax1=fig.add_subplot(2,1,1) > ax2=fig.add_subplot(2,1,2) > > After I have created these axes and plotted things on them, I want to > be able to set

[Matplotlib-users] subplots with the OO interface (ax.rowNum, ax.colNum)

2007-03-20 Thread Ryan Krauss
I have a figure with 2 subplots (2 rows, 1 column) created using the OO interface like this: ax1=fig.add_subplot(2,1,1) ax2=fig.add_subplot(2,1,2) After I have created these axes and plotted things on them, I want to be able to set their x and y lims. The function that creates the plot returns f

Re: [Matplotlib-users] subplots of matshow

2006-12-04 Thread TheSaint 555
That worked. Thanx a lot Eric. I just had to also add interpolation='nearest' in imshow() and it worked just like matshow did. >From: Eric Firing <[EMAIL PROTECTED]> >To: TheSaint 555 <[EMAIL PROTECTED]> >CC: matplotlib-users@lists.sourceforge.net >Subject:

Re: [Matplotlib-users] subplots of matshow

2006-12-04 Thread Eric Firing
def matshow(*args,**kw): """Display an array as a matrix in a new figure window. Matshow simply is not designed to work with subplots; it is a wrapper around imshow() that creates a new figure. You should be able to do what you want by using imshow() directly in place of matshow with som

[Matplotlib-users] subplots of matshow

2006-12-04 Thread TheSaint 555
I am trying to create subplots with matshow. However, my code seems to be displaying only the last matshow image and two blank plots in separate figures. Can someone tell me what I am doing wrong? from matplotlib.pylab import * def SliceMat(N, i): slice = zeros( (N, N) ) for j in range(