Re: [Matplotlib-users] Right-to-left longitude with Basemap

2010-09-17 Thread Scott Sinclair
On 16 September 2010 20:38, Mario Juric mju...@cfa.harvard.edu wrote:        I'm looking at Basemap as a backend for plotting maps of the sky in different projections, and so far it seems like a really good match! Excellent work!        The only problem that I don't know how to solve is that

Re: [Matplotlib-users] How to add extra ticks to colorbar

2010-09-17 Thread Scott Sinclair
On 16 September 2010 22:52, Jeremy Conlin jlcon...@gmail.com wrote: I have a colorbar which has some ticks, but I would like to add my own ticks without replacing any of the existing ones.  In addition, I would like to give the ticks a different labels like min and max. Can someone show how

Re: [Matplotlib-users] contour plot in semi-circle domain

2010-09-17 Thread Kenshi hibino
Jae-Joon Lee wrote: Another option is to use mpl_toolkits.axisartist (distributed with mpl 1.0). However, learning curve of the axisartist is also steep. You may play around with the last figure in the example below.

[Matplotlib-users] automatically change file extension when saving

2010-09-17 Thread Carlos Grohmann
Hi there, I've been looking for a way to automatically set the extension of a file when saving a plot via the navigationBar 'save' button. In my case, when I change the file type, the extension of the default filename ('image.png') won't change. I'd like it to change to the extension of the file

[Matplotlib-users] another incorrectly clipped PNG in the gallery

2010-09-17 Thread Alan G Isaac
http://matplotlib.sourceforge.net/examples/pylab_examples/accented_text.html hth, Alan Isaac -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and

Re: [Matplotlib-users] axis labels clipped

2010-09-17 Thread Tony S Yu
On Sep 17, 2010, at 8:58 AM, Erik Janssens wrote: Hi, I'm using matplotlib in a pyqt context, as described in the book 'Matplotlib for python developers'. When the window is large enough, everything works fine, but when the window is too small part of the x-axis labels get chopped.

[Matplotlib-users] colormap: values to colors

2010-09-17 Thread Martinho MA
Hello I am trying to calculate the facecolors for the Axes3D.plot_surface function, to have something similar to matlab surf 4th argument!! Something like plot_surface(x,y,z,facecolors=calc_colors(v)) So, I need to obtain the colors corresponding to the values of v! I created the function

Re: [Matplotlib-users] axis labels clipped

2010-09-17 Thread Erik Janssens
Hello Tony, thanks a lot for the code, I'll try it out ! Regards, Erik On Fri, 2010-09-17 at 09:46 -0400, Tony S Yu wrote: On Sep 17, 2010, at 8:58 AM, Erik Janssens wrote: Hi, I'm using matplotlib in a pyqt context, as described in the book 'Matplotlib for python developers'.

Re: [Matplotlib-users] colormap: values to colors

2010-09-17 Thread Benjamin Root
On Fri, Sep 17, 2010 at 8:59 AM, Martinho MA m...@ua.pt wrote: Hello I am trying to calculate the facecolors for the Axes3D.plot_surface function, to have something similar to matlab surf 4th argument!! Something like plot_surface(x,y,z,facecolors=calc_colors(v)) So, I need to obtain the

[Matplotlib-users] Plotting 3D, Irregularly Triangulated Surfaces - An Example

2010-09-17 Thread Simon S. Clift
Hi folks, I have a data set that is in the form of an irregular 2D grid with associated values, one for each node.  I would like to plot this as a raised surface, with colours that indicate the z-value.  Somehow I didn't find just quite the example I was looking for.  After digging around in the

Re: [Matplotlib-users] colormap: values to colors

2010-09-17 Thread Martinho MA
mm.to_rgba(var.flat) doesn't work as plot_surface facecolors, but mm.to_rgba(var) does! Thanks for the hint mma Benjamin Root wrote: On Fri, Sep 17, 2010 at 8:59 AM, Martinho MA m...@ua.pt mailto:m...@ua.pt wrote: Hello I am trying to calculate the facecolors for the

[Matplotlib-users] pyplot toolbar

2010-09-17 Thread teq
Has anyone ever added a print button to the pyplot toolbar? And in general how is it possible to modify that toolbar instead of creating a new one? -Tim -- Start uncovering the many advantages of virtual appliances

[Matplotlib-users] legend font color

2010-09-17 Thread musik
Is there a way to set the legend font color? I am plotting multiple sets of data using different colors. I basically want to set each legend font color the same as the corresponding data line color. Here is an example. x = arange(0,10,0.1) y1 = sin(x) y2 = cos(x) plot(x,y1,'r-',x,y2,'b--') I

Re: [Matplotlib-users] pyplot toolbar

2010-09-17 Thread butterw
teq-2 wrote: Has anyone ever added a print button to the pyplot toolbar? And in general how is it possible to modify that toolbar instead of creating a new one? -Tim The actual toolbar is defined in the backend. It is not difficult to modify it. For the Qt4agg backend on windows

[Matplotlib-users] Dashed line step plot

2010-09-17 Thread Gökhan Sever
Hello, Can someone confirm me if this creates a dashed line for a simple step plot? # this is fine plt.plot(range(10), g--) # plots solid line! plt.step(range(10), g--) Thanks, -- Gökhan -- Start uncovering the many

Re: [Matplotlib-users] Dashed line step plot

2010-09-17 Thread Jeffrey Blackburne
I get a solid line for plt.step like you do. MPL 1.0.0, SVN revision 8657. -Jeff On Sep 17, 2010, at 4:34 PM, Gökhan Sever wrote: Hello, Can someone confirm me if this creates a dashed line for a simple step plot? # this is fine plt.plot(range(10), g--) # plots solid line!

Re: [Matplotlib-users] Dashed line step plot

2010-09-17 Thread Paul Hobson
Same here. -paul h. On Fri, Sep 17, 2010 at 2:21 PM, Jeffrey Blackburne jblackbu...@gmail.com wrote: I get a solid line for plt.step like you do. MPL 1.0.0, SVN revision 8657. -Jeff On Sep 17, 2010, at 4:34 PM, Gökhan Sever wrote: Hello, Can someone confirm me if this creates a dashed

[Matplotlib-users] Axes outer position - amount of space for axes labels

2010-09-17 Thread Jeremy Lewi
HI, Is there a way to get the size of the bounding box for the axes which includes the axes labels and tick marks? It looks like Axes.get_position/set_position refers to the inner position (i.e the actual plot area). In matlab (http://www.mathworks.com/help/techdoc/ref/axes_props.html)

[Matplotlib-users] subplot and set_aspect

2010-09-17 Thread John Hutchinson
Hi: I am trying to make a 1row by 3 column plot with subplot, and I want the first plot (subplot(131)) to have equal aspect ratio, but the rest can auto scale. My code results in an empty plot for the 1st column subplot whenever I try to use the set_aspect('equal') Any ideas? Thanks John

Re: [Matplotlib-users] legend font color

2010-09-17 Thread Ted Kord
It does this automatically. ted On 17 September 2010 19:13, musik xi.xiaoxi...@gmail.com wrote: Is there a way to set the legend font color? I am plotting multiple sets of data using different colors. I basically want to set each legend font color the same as the corresponding data line

Re: [Matplotlib-users] Level surface of a function of 3 variables

2010-09-17 Thread Dale Lukas Peterson
David, I'm not sure I understand how I would make use of my function then. My function needs to be evaluated over a 3-d mesh (x, y, and z) , and then the level surfaces (not contour lines) calculated. I guess I could treat z as a parameter, then plot the zero level contour lines of my

[Matplotlib-users] unicode minus sign glyph missing with serif fonts in macosx backend

2010-09-17 Thread Joey Richards
Hello. First, let me apologize if this has been covered---I tried to search the mailing list archives but was unable to get that to work (even queries that should have returned many hits were returning nothing). When I plot with the MacOSX backend using a serif font, the negative signs on

[Matplotlib-users] how to plot contour on a regular grid with mask ?

2010-09-17 Thread Forest Yang
Hi I have a function z(x, y) on a regular grid. But some of the value z are not defined on (x,y). I want to plot the contour or contourf of z on (x,y) but exclude specific (x,y) points. How can I do it ? Right now I just draw small colored square (rectangular) around defined (x,y) the color is

Re: [Matplotlib-users] legend font color

2010-09-17 Thread Benjamin Root
On Fri, Sep 17, 2010 at 1:13 PM, musik xi.xiaoxi...@gmail.com wrote: Is there a way to set the legend font color? I am plotting multiple sets of data using different colors. I basically want to set each legend font color the same as the corresponding data line color. Here is an example. x =

Re: [Matplotlib-users] legend font color

2010-09-17 Thread Ted Kord
I misunderstood your question, musik. My apologies. Ted On 18 September 2010 02:15, Benjamin Root ben.r...@ou.edu wrote: On Fri, Sep 17, 2010 at 1:13 PM, musik xi.xiaoxi...@gmail.com wrote: Is there a way to set the legend font color? I am plotting multiple sets of data using different

Re: [Matplotlib-users] legend font color

2010-09-17 Thread Gökhan Sever
On Fri, Sep 17, 2010 at 1:13 PM, musik xi.xiaoxi...@gmail.com wrote: Is there a way to set the legend font color? I am plotting multiple sets of data using different colors. I basically want to set each legend font color the same as the corresponding data line color. Here is an example. x =

Re: [Matplotlib-users] Dashed line step plot

2010-09-17 Thread Gökhan Sever
On Fri, Sep 17, 2010 at 3:34 PM, Gökhan Sever gokhanse...@gmail.com wrote: Hello, Can someone confirm me if this creates a dashed line for a simple step plot? # this is fine plt.plot(range(10), g--) # plots solid line! plt.step(range(10), g--) Thanks, -- Gökhan My version is

Re: [Matplotlib-users] Axes outer position - amount of space for axes labels

2010-09-17 Thread Benjamin Root
On Fri, Sep 17, 2010 at 4:37 PM, Jeremy Lewi jl...@intellisis.com wrote: HI, Is there a way to get the size of the bounding box for the axes which includes the axes labels and tick marks? It looks like Axes.get_position/set_position refers to the inner position (i.e the actual plot

Re: [Matplotlib-users] Dashed line step plot

2010-09-17 Thread Benjamin Root
On Fri, Sep 17, 2010 at 8:43 PM, Gökhan Sever gokhanse...@gmail.com wrote: On Fri, Sep 17, 2010 at 3:34 PM, Gökhan Sever gokhanse...@gmail.comwrote: Hello, Can someone confirm me if this creates a dashed line for a simple step plot? # this is fine plt.plot(range(10), g--) # plots solid

Re: [Matplotlib-users] Level surface of a function of 3 variables

2010-09-17 Thread Fernando Perez
Hi Luke, On Fri, Sep 17, 2010 at 5:49 PM, Dale Lukas Peterson hazelnu...@gmail.com wrote:  I'm not sure I understand how I would make use of my function then.  My function needs to be evaluated over a 3-d mesh (x, y, and z) , and then the  level surfaces (not contour lines) calculated.  I

Re: [Matplotlib-users] Level surface of a function of 3 variables

2010-09-17 Thread Jason Grout
On 9/17/10 9:08 PM, Fernando Perez wrote: Hi Luke, On Fri, Sep 17, 2010 at 5:49 PM, Dale Lukas Peterson hazelnu...@gmail.com wrote: I'm not sure I understand how I would make use of my function then. My function needs to be evaluated over a 3-d mesh (x, y, and z) , and then the

Re: [Matplotlib-users] How to add extra ticks to colorbar

2010-09-17 Thread Jeremy Conlin
On Fri, Sep 17, 2010 at 12:44 AM, Scott Sinclair scott.sinclair...@gmail.com wrote: On 16 September 2010 22:52, Jeremy Conlin jlcon...@gmail.com wrote: I have a colorbar which has some ticks, but I would like to add my own ticks without replacing any of the existing ones.  In addition, I would