Re: [Matplotlib-users] Check if figure exists

2009-02-27 Thread Matthias Michler
On Thursday 26 February 2009 20:52:17 Christopher Brown wrote: > Hi, > > If I have a figure: > > h = pp.figure(num=14) > > What is the best way to check to see if Figure 14 exists? I'm writing a > function that adds plots to a figure window. I want the function to > check if the figure exists, and

[Matplotlib-users] Work directory is changed when saving a plot

2009-02-27 Thread Søren Nielsen
Hi, When I save a plot using the toolbar save function, and I save to a different directory than the one where my program is, my program can no longer locate the icons (used in my GUI) that I am using in my .\ressources directory. So saving the plot changed the working directory of my program? Ho

Re: [Matplotlib-users] Switching between different font settings

2009-02-27 Thread mochuk
Hi all, Johan Ekh-2 wrote: > > > What is the most convenient way to get Matplotlib to use the same fonts as > my main document and also to quickly switch between the > different document types? > > Take a look at: http://dtrx.de/od/tex/sfmath.html Best regards, Tobias -- View this message

Re: [Matplotlib-users] Switching between different font settings

2009-02-27 Thread mochuk
Hi all, Johan Ekh-2 wrote: > > > What is the most convenient way to get Matplotlib to use the same fonts as > my main document and also to quickly switch between the > different document types? > > Take a look at: http://dtrx.de/od/tex/sfmath.html You have to load the package in the preambe

Re: [Matplotlib-users] Mathtext + stixsans weird baseline

2009-02-27 Thread Michael Droettboom
It seems the Freetype rendering backend wasn't doing subpixel alignment on the text, but was being rounded to the nearest pixels. Taking the fractional part into account seems to resolve this. Fixed on branch and trunk. Mike Ryan May wrote: > And here's the image I promised. > > On Wed, Feb

Re: [Matplotlib-users] Bug in Fill_Between?

2009-02-27 Thread Michael Droettboom
There are obviously geometric solutions to this that wouldn't require interpolation -- though the interpolation is a good easy workaround. I think it would be great to file a bug for this in the tracker so it doesn't get forgotten. Mike Ryan Wagner wrote: > > Is this a bug in fill_between, or

Re: [Matplotlib-users] Matplotlib documentation

2009-02-27 Thread Michael Droettboom
Gökhan SEVER wrote: > Hello, > > My first message in the list. I would like to mention a few things > about the matplotlib PDF document. > > Firstly, the download link for the pdf document (@ > http://matplotlib.sourceforge.net/contents.html) is for release > 0.98.5.1, compiled on December 17, i

Re: [Matplotlib-users] Work directory is changed when saving a plot

2009-02-27 Thread Michael Droettboom
Which backend are you using? I don't see any explicit calls to chdir in matplotlib that would make this happen. It would certainly be unintentional if it is. Mike Søren Nielsen wrote: > Hi, > > When I save a plot using the toolbar save function, and I save to a > different directory than the

Re: [Matplotlib-users] Check if figure exists

2009-02-27 Thread Eric Firing
Matthias Michler wrote: > On Thursday 26 February 2009 20:52:17 Christopher Brown wrote: >> Hi, >> >> If I have a figure: >> >> h = pp.figure(num=14) >> >> What is the best way to check to see if Figure 14 exists? I'm writing a >> function that adds plots to a figure window. I want the function to

Re: [Matplotlib-users] Work directory is changed when saving a plot

2009-02-27 Thread Christopher Barker
Michael Droettboom wrote: > Which backend are you using? I don't see any explicit calls to chdir in > matplotlib that would make this happen. It would certainly be > unintentional if it is. I don't know about any other back-ends, but the wx FileDialog has an option to change the working dir w

[Matplotlib-users] using matplotlib.mathtext standalone

2009-02-27 Thread Kasper Peeters
Hi all, (A bit off-topic, hope this is ok, please redirect me if this is more appropriate on a different list). I am interested in using the mathtext rendering functionality separate from the plotting part of matplotlib. To be precise, I would like to use mathtext as a replacement mathematics ren

Re: [Matplotlib-users] polar graph

2009-02-27 Thread Jae-Joon Lee
I recommend you to use the Wedge class in matplotlib.patches. from matplotlib.patches import Wedge # draw a wedge in the axes coordinate. (0.5, 0.5) in axes coordinate corresponds to (0,0) in polar coordinate. trans = ax.transAxes center, R = (0.5, 0.5), 0.5 twopi=360. pie1 = Wedge(center, R, 0,

[Matplotlib-users] rotation=0 in clabel

2009-02-27 Thread Hansen, Dr. Jim
Hello All I'm making the transition from Matlab to Python/Pylab/matplotlib, etc. In Matlab contour plots I can specify the rotation angle of contour labels (e.g. rotation=0). I'm unable to figure out the equivalent in matplotlib's clabel. The inline documentation doesn't mention the option

Re: [Matplotlib-users] rotation=0 in clabel

2009-02-27 Thread Eric Firing
Hansen, Dr. Jim wrote: > Hello All > > I'm making the transition from Matlab to Python/Pylab/matplotlib, etc. > > In Matlab contour plots I can specify the rotation angle of contour labels > (e.g. rotation=0). I'm unable to figure out the equivalent in matplotlib's > clabel. The inline docu

Re: [Matplotlib-users] xticklabels printed twice when using twinx

2009-02-27 Thread David Huard
I'd also be interested in a workaround. I tried to remove the tick labels from the second axe, but it also removed the labels from the first axe. Thanks, David On Sun, Feb 8, 2009 at 9:14 AM, Christoffer Aberg < christoffer.ab...@fkem1.lu.se> wrote: > Hi all, > > I have noticed a funny behaviou

[Matplotlib-users] How to specify size in matplotlib.pyplot.figure(...)?

2009-02-27 Thread lionel keene
Hello all, I'd like to create a "matplotlib.pyplot.figure(...)" object and specify the size while I'm at it. I see this argument list from the matplotlib's documentation: pyplot.figure(num=None, figsize=(8, 6), dpi=80, facecolor='w', edgecolor='k') The on-screen size is being computed using inche