Re: [Matplotlib-users] fill-between special demand

2011-06-10 Thread Johannes Radinger
Original-Nachricht > Datum: Fri, 10 Jun 2011 14:40:17 +0200 > Von: Sebastian Berg > An: Johannes Radinger > CC: matplotlib-users@lists.sourceforge.net > Betreff: Re: [Matplotlib-users] fill-between special demand > On Fri, 2011-06-10 at 14:15 +0200, Johan

[Matplotlib-users] fill-between special demand

2011-06-10 Thread Johannes Radinger
Hello, I know that it is possible to fill an area between to curves (functions) with "fill between". In my case I've got let's say 10 curves of different shape. I'd like to fill the area between the most upper lines and the most lower lines. Is that somehow possible? One work-around which appe

[Matplotlib-users] How to fit a curve/function?

2011-06-08 Thread Johannes Radinger
Hello, I've got following function describing any kind of animal dispersal kernel: def pdf(x,s1,s2): return (p/(math.sqrt(2*math.pi*s1**2))*numpy.exp(-((x-0)**(2)/(2*s1**(2)+((1-p)/(s2*math.sqrt(2*math.pi))*numpy.exp(-((x-0)**(2)/(2*s2**(2) On the other hand I've got data from liter

Re: [Matplotlib-users] use matplotlib to produce mathathematical expression only

2011-05-17 Thread Johannes Radinger
Original-Nachricht > Datum: Mon, 16 May 2011 11:36:18 -0500 > Von: Benjamin Root > An: Johannes Radinger > CC: matplotlib-users@lists.sourceforge.net > Betreff: Re: [Matplotlib-users] use matplotlib to produce mathathematical > expression only > On Mon,

Re: [Matplotlib-users] use matplotlib to produce mathathematical expression only

2011-05-16 Thread Johannes Radinger
Original-Nachricht > Datum: Mon, 16 May 2011 10:59:34 -0500 > Von: Benjamin Root > An: Johannes Radinger > CC: matplotlib-users@lists.sourceforge.net > Betreff: Re: [Matplotlib-users] use matplotlib to produce mathathematical > expression only > On Mon,

Re: [Matplotlib-users] use matplotlib to produce mathathematical expression only

2011-05-16 Thread Johannes Radinger
y > On Monday, May 16, 2011, Johannes Radinger wrote: > > > > Original-Nachricht > >> Datum: Mon, 16 May 2011 08:28:49 -0500 > >> Von: Robert Kern > >> An: SciPy Users List > >> CC: matplotlib-users@lists.sourceforge.

Re: [Matplotlib-users] use matplotlib to produce mathathematical expression only

2011-05-16 Thread Johannes Radinger
nly > On Mon, May 16, 2011 at 08:21, Johannes Radinger wrote: > > Hello, > > > > I want to produce a eps file of following mathematical expression: > > > r'$F(x)=p*\frac{1}{s1\sqrt{2\pi}}*e^{-\frac{1}{2}*(\frac{x-m}{s1})}+(1-p)*\frac{1}{s1\sqrt{2\pi}}*e^{-\fra

[Matplotlib-users] use matplotlib to produce mathathematical expression only

2011-05-16 Thread Johannes Radinger
Hello, I want to produce a eps file of following mathematical expression: r'$F(x)=p*\frac{1}{s1\sqrt{2\pi}}*e^{-\frac{1}{2}*(\frac{x-m}{s1})}+(1-p)*\frac{1}{s1\sqrt{2\pi}}*e^{-\frac{1}{2}*(\frac{x-m}{s1})}$' is it possible to somehow missuse matplotlib for that to produce only the function witho

Re: [Matplotlib-users] Text outside the graphs "box"

2011-05-15 Thread Johannes Radinger
of space? I hope it is now clearer... /johannes Am 13.05.2011 um 16:59 schrieb Michael Droettboom: > I think there's a confusion of definition here: > > figure: The entire image > > axes: A box within the figure containing a plot > > Mike > > On 05/13/

Re: [Matplotlib-users] eps output and fill_between

2011-05-13 Thread Johannes Radinger
] actually mean, what does it? 2) In which case will it fail if you say it won't work with all data? 3) Actually I have to use that [::5] only for the fill_between as the usual line plot works, or am I wrong? /johannes > > Mike > > On 05/13/2011 10:00 AM, Johannes Radinger wro

Re: [Matplotlib-users] Text outside the graphs "box"

2011-05-13 Thread Johannes Radinger
t; Von: Pauli Virtanen > An: matplotlib-users@lists.sourceforge.net > Betreff: Re: [Matplotlib-users] Text outside the graphs "box" > Fri, 13 May 2011 15:58:37 +0200, Johannes Radinger wrote: > > Hello again I tried: > > > > plt.figtext(0, 1.2, r'$F(x)=p*\fra

Re: [Matplotlib-users] eps output and fill_between

2011-05-13 Thread Johannes Radinger
Does anyone already know what causes the problem with the fill_between and the eps output? /johannes Original-Nachricht > Datum: Thu, 12 May 2011 17:10:43 +0200 > Von: Johannes Radinger > An: John Hunter > CC: matplotlib-users@lists.sourceforge.net &

Re: [Matplotlib-users] Text outside the graphs "box"

2011-05-13 Thread Johannes Radinger
otlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.figtext > > Cheers, > Mike > > On 05/13/2011 08:46 AM, Johannes Radinger wrote: > > Hej > > > > > > I want to include a mathematical expression but want to position it > > outside the graphs box. I want it a

[Matplotlib-users] Text outside the graphs "box"

2011-05-13 Thread Johannes Radinger
Hej I want to include a mathematical expression but want to position it outside the graphs box. I want it above the graph, so i tried to set it as title but there is to less space between the title and the graphs box. how can that be done? how to set a position outside the box? I tried eg: p

Re: [Matplotlib-users] eps output and fill_between

2011-05-12 Thread Johannes Radinger
, x, pdf_max, color="k") plt.fill_between(x, pdf_min, pdf_max, color='0.85') #plt.show() #plt.savefig("testplot.eps") plt.savefig("testplot.pdf") /Johannes Am 12.05.2011 um 15:28 schrieb John Hunter: > > > On Thu, May 12, 2011 at 3:42 AM, Joha

[Matplotlib-users] eps output and fill_between

2011-05-12 Thread Johannes Radinger
Hello , sofar I know how to safe a plot into a *.eps file and it works good, but there is one issue with filled areas between two functions. When I try to use: plt.fill_between(x, pdf_min, pdf_max, color='0.85') and I try to open it on my mac I fail. So far as I know is the mac converting the ep