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

2009-05-01 Thread Thomas Robitaille
Thanks! Thomas On 1 May 2009, at 15:04, Eric Firing wrote: > Christopher Barker wrote: >> 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 >> >>

Re: [Matplotlib-users] Font size and savefig

2009-05-01 Thread Thomas Robitaille
The patch seems to work - the MacOSX backend now displays the same font size as the other backends. Thanks! Thomas On 1 May 2009, at 14:06, Michael Droettboom wrote: > Michiel de Hoon provided a patch for this which I just applied to > the trunk. > > As I don't have a Mac, I can't test it -

Re: [Matplotlib-users] figure width

2009-05-01 Thread Christopher Barker
Gideon Simpson wrote: > Is there a way to construct a figure to have a certain width, setting > the height proportionally, so that this will be the actual size if I > then save it as a PNG? I don't understand quite what you are after, but this may help: http://www.scipy.org/Cookbook/Matplotli

[Matplotlib-users] figure width

2009-05-01 Thread Gideon Simpson
Is there a way to construct a figure to have a certain width, setting the height proportionally, so that this will be the actual size if I then save it as a PNG? -gideon -- Register Now & Save for Velocity, the Web P

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

2009-05-01 Thread Eric Firing
Christopher Barker wrote: > 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 > > > Done in r7077. Eric ---

Re: [Matplotlib-users] Font size and savefig

2009-05-01 Thread Michael Droettboom
Michiel de Hoon provided a patch for this which I just applied to the trunk. As I don't have a Mac, I can't test it -- any feedback is welcome. Mike Jae-Joon Lee wrote: > Thomas, > As John suggested before, please check if the size differences go away > if you use the same dpi, actually dpi=72.

Re: [Matplotlib-users] imshow: large eps-files

2009-05-01 Thread Eric Firing
Peter Pippan wrote: > Hi, > > I was wondering about the eps output produced by imshow(). > > This program > -- > from pylab import * > Z = rand(10,10) > imshow(Z,interpolation='nearest',cmap=cm.bone) > savefig('bone.eps') > imshow(Z,interpolation='neare

[Matplotlib-users] Enforcing common view limits

2009-05-01 Thread Thomas Robitaille
Hello, I want to create two sets of axes for a figure that would be equivalent to ax = fig.add_subplot(111) ax2 = ax .figure .add_axes(ax.get_position(True),frameon=False,sharex=ax,sharey=ax) except that I want to be able to specify different tick locators and formatters for ax and ax2.

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

2009-05-01 Thread Ng, Enrico
I am using the 0.98.5 That works for me too but its gets messed up if I modify theta in order to rotate the graph Theta = pi/2 - theta will cause the circles to appear If I modify r, then it works ok -Original Message- From: Eric Firing [mailto:efir...@hawaii.edu] Sent: Friday, May 0

Re: [Matplotlib-users] Floating point exception

2009-05-01 Thread Michael Droettboom
Can you provide a stand along script that reproduces the problem? Mike Gideon Simpson wrote: > When I try to plot some data, I get: > > Floating point exception > > How can I track down what's wrong? > > -gideon > > > --

[Matplotlib-users] Floating point exception

2009-05-01 Thread Gideon Simpson
When I try to plot some data, I get: Floating point exception How can I track down what's wrong? -gideon -- Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity f

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

2009-05-01 Thread Gert-Jan
Michael Droettboom-3 wrote: > > Can you be more specific about why that doesn't work? > Trying to save a plot as, for example, 'image.emf' makes an error message pop up. This error dialog has the title 'Error saving file', but does not have any error message in its body. I hope that is what yo

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

2009-05-01 Thread Michael Droettboom
Gert-Jan wrote: > Hello again, > > Thanks for the reply! I did some more testing, but I couldn't get it to work > yet. However, during the testing, I got the idea that I was wrong about what > backends do; it appears they are only used for creating plots, not for > saving them. For example: > > > >

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

2009-05-01 Thread Michael Droettboom
To emulate the current behavior (which doesn't try to interpolate between points) you can pass "resolution=1" to the polar command. But I agree with Eric -- it sounds like updating my resolve this issue. Mike Eric Firing wrote: > Ng, Enrico wrote: > >> The rotation and resetting of the labe

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

2009-05-01 Thread Gert-Jan
Hello again, Thanks for the reply! I did some more testing, but I couldn't get it to work yet. However, during the testing, I got the idea that I was wrong about what backends do; it appears they are only used for creating plots, not for saving them. For example: > #!/usr/bin/env python > > i