Re: [Matplotlib-users] Pixel Position of X/Y Axis

2009-04-30 Thread Mark Larsen
You may use the bbox attribute of the axes. For example,  ax.bbox.extents gives you the x,y coordinates of the lowerleft and topright corners. Perfect, thanks so much. -- Register Now Save for Velocity, the Web

Re: [Matplotlib-users] fill_between and masked array

2009-04-30 Thread Andres Luhamaa
John, that's exactly what I wanted, thanks. Andres John Hunter wrote: On Wed, Apr 29, 2009 at 10:54 AM, John Hunter jdh2...@gmail.com mailto:jdh2...@gmail.com wrote: fill_between does not currently support masked arrays, but I think we could easily extend it to support the mask

[Matplotlib-users] Problem assigning labels in legends

2009-04-30 Thread Andrew Romero
Hi In one part of my script I plot some lines and assign labels to the lines. Later in the script I create a figure legend. How do I get the labels, that I assigned at plot-time, to be used in the legend?  Currently I am manually specifying the legend labels. # Plot some lines ... set values

[Matplotlib-users] mathtext and py2exe

2009-04-30 Thread sordnay
hello, I have written a program which uses matplotlib to plot some figures, it uses mathtext to add some special chars (basically just the square on acceleration units), and the program works just fine, but using py2exe to build a windows executable, it fails somewhere drawing that square symbol.

Re: [Matplotlib-users] mathtext and py2exe

2009-04-30 Thread Michael Droettboom
It sounds like it is not finding the appropriate fonts. Have you tried installing (in C:\Windows\Fonts) all of the ttf files included with matplotlib? If that's not it, can you provide a complete traceback with the exact error message? Mike sordnay wrote: hello, I have written a program

Re: [Matplotlib-users] Font size and savefig

2009-04-30 Thread Jae-Joon Lee
Thomas, As John suggested before, please check if the size differences go away if you use the same dpi, actually dpi=72. After some quick look, it seems that the osx backend does not scale the font size correctly respecting the dpi. At line 124 of bacend_macosx.py, size =

Re: [Matplotlib-users] Problem assigning labels in legends

2009-04-30 Thread Jae-Joon Lee
Is there any specific reason that you have to use figlegend, instead of legend? I'm asking this because the legend command automatically collect all the relevant information for you, i.e., you can just do legend() Of course the legend is displayed inside the axes unlike the figlegend. If

Re: [Matplotlib-users] mathtext and py2exe

2009-04-30 Thread sordnay
Thanks for the quick answer, I cant check now, it's also the reason why i didn't post the exact error code, but the program is supposed to use only Tahoma ttf font which I included on the data files. Michael Droettboom-3 wrote: It sounds like it is not finding the appropriate fonts. Have

Re: [Matplotlib-users] mathtext and py2exe

2009-04-30 Thread Michael Droettboom
The mathtext engine (by default at least) uses the Computer Modern fonts. Using a custom font, such as Tahoma, requires manual configuration. Mike sordnay wrote: Thanks for the quick answer, I cant check now, it's also the reason why i didn't post the exact error code, but the program is

[Matplotlib-users] Manually enable export as EMF

2009-04-30 Thread Gert-Jan
Hey there, In my application I'd like to export plots as Enhanced Metafiles (.emf). After finding out that saving created plots as EMF generates an error, I http://www.nabble.com/EMF-export-doesn%27t-work-td22618867.html read that emf is no longer supported . Then I tried to

Re: [Matplotlib-users] Manually enable export as EMF

2009-04-30 Thread John Hunter
On Wed, Apr 29, 2009 at 3:51 AM, Gert-Jan gj_den_hei...@hotmail.com wrote: Hey there, In my application I'd like to export plots as Enhanced Metafiles (.emf). After finding out that saving created plots as EMF generates an error, I

[Matplotlib-users] margins in figures

2009-04-30 Thread Juan Fiol
Hi, I am trying to control the amount of margin (white space) around the figures (mainly for savefig) but could not find any information. Any tips? Thanks, Juan -- Register Now Save for Velocity, the Web

[Matplotlib-users] Fwd: margins in figures

2009-04-30 Thread Ryan May
On Thu, Apr 30, 2009 at 3:46 PM, Juan Fiol fi...@yahoo.com wrote: Hi, I am trying to control the amount of margin (white space) around the figures (mainly for savefig) but could not find any information. Any tips? Look at pyplot.subplots_adjust() Ryan -- Ryan May Graduate Research

[Matplotlib-users] fill_between

2009-04-30 Thread T J
Fill between is for filling between two y-values over a range of x-values. Is there anything which fills between to x-values over a range of y-values? -- Register Now Save for Velocity, the Web Performance Operations

Re: [Matplotlib-users] fill_between

2009-04-30 Thread John Hunter
On Thu, Apr 30, 2009 at 4:14 PM, T J tjhn...@gmail.com wrote: Fill between is for filling between two y-values over a range of x-values. Is there anything which fills between to x-values over a range of y-values? Nothing with the ease of use of fill_between, but you can always write your

Re: [Matplotlib-users] Polar plotting clockwise and rotated

2009-04-30 Thread Ng, Enrico
The rotation and resetting of the labels isn't a big issue. The issues is when I reverse the direction. Matplotlib seems to only want to plot in an anti-clockwise direction. I can transform the data to be backwards so that it looks ok, however when it tries to connect the start and end points,

Re: [Matplotlib-users] Polar plotting clockwise and rotated

2009-04-30 Thread Eric Firing
Ng, Enrico wrote: The rotation and resetting of the labels isn't a big issue. The issues is when I reverse the direction. Matplotlib seems to only want to plot in an anti-clockwise direction. I can transform the data to be backwards so that it looks ok, however when it tries to connect the

Re: [Matplotlib-users] Fixed patch relative to axes

2009-04-30 Thread Christopher Barker
Eric Firing wrote: Split the command up: p = Circle(...) ax.add_patch(p, ...) (add_* could be modified to return the reference; maybe this would be worthwhile.) +1 -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice

Re: [Matplotlib-users] margins in figures

2009-04-30 Thread Juan Fiol
Thanks Ryan, just what I needed. Juan --- On Thu, 4/30/09, Ryan May rma...@gmail.com wrote: From: Ryan May rma...@gmail.com Subject: Re: [Matplotlib-users] margins in figures To: fi...@yahoo.com Date: Thursday, April 30, 2009, 9:59 PM On Thu, Apr 30, 2009 at 3:46 PM, Juan Fiol