[Matplotlib-users] Fwd: making publication quality plots

2009-06-05 Thread Paul Anton Letnes
Hi Chaitanya (and everyone else), thanks for some nice advice! The font and legend frame tips worked quite well. I would appreciate it if it was possible to remove the legend frame by default, i.e. in the matplotlibrc file, if possible. In my opinion, this frame clutters the plot

Re: [Matplotlib-users] matplotlib and qtdesigner

2009-06-05 Thread Christophe Dupre
When I started using PyQt and matplotlib, I look at these 2 examples: http://eli.thegreenplace.net/2009/01/20/matplotlib-with-pyqt-guis/ http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_qt4.html Regards, Christophe -Original Message- From: projetmbc

Re: [Matplotlib-users] matplotlib and qtdesigner

2009-06-05 Thread Christophe Dupre
That's great, Pierre. Merci. Christophe -Original Message- From: Pierre Raybaut [mailto:cont...@pythonxy.com] Sent: 04 June 2009 18:36 To: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] matplotlib and qtdesigner matplotlib-users-requ...@lists.sourceforge.net a

[Matplotlib-users] changing x axis to y and y axis to x in colorbar Object

2009-06-05 Thread Markus Feldmann
Hi All, i try to get a colorbar to work with: if not hasattr(self, 'subplot3'): self.subplot3 = self.figure.add_subplot(111) self.subplot3.grid(True) x,y,z = self.computehistogramm(min,min+self.maxitems) X,Y = meshgrid(x,y) plot =

Re: [Matplotlib-users] Fwd: making publication quality plots

2009-06-05 Thread John Hunter
On Fri, Jun 5, 2009 at 4:56 AM, Paul Anton Letnespaul.anton.let...@gmail.com wrote: Hi Chaitanya (and everyone else), thanks for some nice advice! The font and legend frame tips worked quite well. I would appreciate it if it was possible to remove the legend frame by default, i.e. in the

[Matplotlib-users] consistent colors between imshow and scatter

2009-06-05 Thread Karl Young
I have 2 float arrays of the same dimension which I use to generate a 3rd array, again of the same dimension, containing integers from a small set (I obtain the 3rd array via clustering in the 2 dimensional space of points obtained as values from the same location in the initial 2 arrays).

Re: [Matplotlib-users] Setting axis range so it is not rescaled

2009-06-05 Thread John Hunter
On Thu, Jun 4, 2009 at 5:33 PM, Sandro Tosi matrixh...@gmail.com wrote: Hi, On Thu, Jun 4, 2009 at 23:26, citronade ricit...@mac.com wrote: I am trying to set the x and y axis range on a log-log plot. The ranges I give are automatically adjusted to the nearest power of 10, but I would like

Re: [Matplotlib-users] consistent colors between imshow and scatter

2009-06-05 Thread John Hunter
On Thu, Jun 4, 2009 at 6:38 PM, Karl Youngkarl.yo...@ucsf.edu wrote: I have 2 float arrays of the same dimension which I use to generate a 3rd array, again of the same dimension, containing integers from a small set (I obtain the 3rd array via clustering in the 2 dimensional space of points

Re: [Matplotlib-users] one data set, two y axis scales

2009-06-05 Thread John Hunter
On Thu, Jun 4, 2009 at 12:16 PM, Jae-Joon Leelee.j.j...@gmail.com wrote: I hope the code below gives you some idea. def Tc(Tf): return (5./9.)*(Tf-32) ax1 = subplot(111) # y-axis in F ax2 = twinx() # y-axis in C def update_ax2(ax1): y1, y2 = ax1.get_ylim() ax2.set_ylim(Tc(y1),

[Matplotlib-users] Newbie question

2009-06-05 Thread jorgesmbox-ml
Hi, The matplotlib.collections.Collection documentation reads: All properties in a collection must be sequences or scalars; if scalars, they will be converted to sequences. The property of the ith element of the collection is: prop[i % len(props)]. I had a look at the docstring documentation

Re: [Matplotlib-users] Open file dialog?

2009-06-05 Thread Jorge Scandaliaris
Alan G Isaac alan.is...@... writes: snip That's all, as long as you don't mind destroying the Window manually. (Otherwise, you need just a couple more lines.) Thanks, I'll give this a try. Jorge -- OpenSolaris

Re: [Matplotlib-users] consistent colors between imshow and scatter

2009-06-05 Thread Young, Karl
Thanks for the tip and sorry I didn't include a complete code snippet; the current code involves images (scipy.ndimage) and clustering code and I thought that was a little too much too include; I'll try to extract something simpler. I guess the main question is how to use a set of integers to

Re: [Matplotlib-users] one data set, two y axis scales

2009-06-05 Thread Andrew Straw
John Hunter wrote: On Thu, Jun 4, 2009 at 12:16 PM, Jae-Joon Leelee.j.j...@gmail.com wrote: I hope the code below gives you some idea. def Tc(Tf): return (5./9.)*(Tf-32) ax1 = subplot(111) # y-axis in F ax2 = twinx() # y-axis in C def update_ax2(ax1): y1, y2 = ax1.get_ylim()

Re: [Matplotlib-users] one data set, two y axis scales

2009-06-05 Thread John Hunter
On Fri, Jun 5, 2009 at 11:44 AM, Andrew Strawstraw...@astraw.com wrote: I think this would be a good direction, as well. It would also allow disabling the tick mark labels in some axes that share the same axis -- because the ticks/labels would belong to the spine, which itself wouldn't

Re: [Matplotlib-users] changing x axis to y and y axis to x in colorbar Object

2009-06-05 Thread Eric Firing
Markus Feldmann wrote: Hi All, i try to get a colorbar to work with: if not hasattr(self, 'subplot3'): self.subplot3 = self.figure.add_subplot(111) self.subplot3.grid(True) x,y,z = self.computehistogramm(min,min+self.maxitems) X,Y =

Re: [Matplotlib-users] consistent colors between imshow and scatter

2009-06-05 Thread Eric Firing
Young, Karl wrote: Thanks for the tip and sorry I didn't include a complete code snippet; the current code involves images (scipy.ndimage) and clustering code and I thought that was a little too much too include; I'll try to extract something simpler. I guess the main question is how to use a

Re: [Matplotlib-users] consistent colors between imshow and scatter

2009-06-05 Thread Young, Karl
Hi Eric, Thanks much - I'll try that. From: Eric Firing [efir...@hawaii.edu] Sent: Friday, June 05, 2009 10:43 AM To: Young, Karl Cc: John Hunter; matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] consistent colors between imshow and

[Matplotlib-users] xlabel in two lines and centered

2009-06-05 Thread Yves-Alexandre
Hi, A quick (probably easy) question: how do you do a label in two lines and with both lines centered? xlabel('first line \n second line') don't center both :( best, -Yva. -- OpenSolaris 2009.06 is a cutting edge

Re: [Matplotlib-users] xlabel in two lines and centered

2009-06-05 Thread Ryan May
On Fri, Jun 5, 2009 at 2:32 PM, Yves-Alexandre yvesalexan...@hotmail.comwrote: Hi, A quick (probably easy) question: how do you do a label in two lines and with both lines centered? xlabel('first line \n second line') don't center both :( Try removing the spaces, that makes it look good

Re: [Matplotlib-users] xlabel in two lines and centered

2009-06-05 Thread Gökhan SEVER
Hi, I sometimes create matplotlib plots without any labels on them -figures only. Then I add appropriate titles and/or labels using either MS Word or OO Writer. A few times used GIMP too to add additional texts. When I can't easily figure out things in matplotlib this method turns out helpful to

Re: [Matplotlib-users] consistent colors between imshow and scatter

2009-06-05 Thread Karl Young
hmmm... in response to John's earlier request I cobbled a simple example but that seems to work; either there's a strange error in the more complex version or my misunderstanding of color maps is messing with me. Anyway, for the record, here's an example of what I want to do (that actually

Re: [Matplotlib-users] one data set, two y axis scales

2009-06-05 Thread Jae-Joon Lee
John, These ideas have been part of motivation behind my axes_grid toolkit. In the module documentation of lib/mpl_toolkits/axes_grid/axislines.py, I tried to briefly explain what I wanted and what I implemented, although the explanation is very far from complete (also some examples are found in