[Matplotlib-users] interp with duplicates

2008-08-13 Thread Kaushik Ghose
Hi, This is more a coding/algorithm question than a straight matplotlib question. I have x and y data based on a parameter k. x and y have noise, so that even though k increases monotonically neither x nor y are guaranteed to do so. x can have duplicates. I need to find the area under the curv

Re: [Matplotlib-users] Figure existence test

2008-08-13 Thread nobody
Thank you -- this is what I was looking for. The only issue is that my "fig" objects have no "num" attribute -- it is called "number" instead. So if I use this, instead, it works fine: >>> somenum in [fig.number for fig in figs] -Ian - I am a BugMeNot account and postings from this us

Re: [Matplotlib-users] Automatic margins

2008-08-13 Thread John Hunter
On Wed, Aug 13, 2008 at 12:40 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > Mathieu Leplatre wrote: >> Is there a way to automatically guess margins according to chart content ? > > There is nothing like that built into mpl. It is not an easy thing to > do in general--that is, for an arbitrary set

Re: [Matplotlib-users] Automatic margins

2008-08-13 Thread Eric Firing
Mathieu Leplatre wrote: > Is there a way to automatically guess margins according to chart content ? There is nothing like that built into mpl. It is not an easy thing to do in general--that is, for an arbitrary set of axes, labels, widgets, etc. Eric > > Like, in this small example : > > im

[Matplotlib-users] Automatic margins

2008-08-13 Thread Mathieu Leplatre
Is there a way to automatically guess margins according to chart content ? Like, in this small example : import pylab fig = pylab.figure() pylab.plot([1,2,3]) pylab.title('Big One', fontsize=72) topmargin = 0.2 # Auto ? fig.subplots_adjust(top=1.0-topmargin) pylab.show() --

[Matplotlib-users] Control space between bars

2008-08-13 Thread Mathieu Leplatre
Hi all, I've searched in examples and archives and could not find anything about manual control of space between bars. By default, the bars in the following script overlap. So I guess the behaviour is : specify chart width (8in) + bar width (0.8) => auto bar space And I would like to know how t

[Matplotlib-users] Label baseline not aligned

2008-08-13 Thread Jochen Schaab
Hello I have a problem with manually set plot labels. The baseline of the labels is not aligned when using the PDF output. It works fine for PS or PNG. Attached is a script which demonstrates my problem. Running python test_baseline.py -dPDF gives me a corrupted baseline for the x-labels. I