another incorrectly clipped PNG in the gallery

Thu, 12 May 2011 15:16:43 -0400, C M wrote:
[clip: installing Python modules]

Is there a step-by-step method on the
website that shows how to do this?

Here: http://docs.python.org/install/index.html

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:

plt.title(r'$F(x)=p*\frac{1}{s1\sqrt{2\pi}}$', fontsize=20)

thanks

/johannes

···

--
NEU: FreePhone - kostenlos mobil telefonieren und surfen!
Jetzt informieren: http://www.gmx.net/de/go/freephone

figtext will let you place text relative to the figure, not the axes:

http://matplotlib.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 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:

plt.title(r'$F(x)=p*\frac{1}{s1\sqrt{2\pi}}$', fontsize=20)

thanks

/johannes
   
--
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA

Hello again I tried:

plt.figtext(0, 1.2, r'$F(x)=p*\frac{1}{s1\sqrt{2\pi}}$', fontsize=20)

but then the text is outside the printed area and therefore not displayed.
Does that mean that the printed area has to be changed as well?

/j

-------- Original-Nachricht --------

···

Datum: Fri, 13 May 2011 09:27:24 -0400
Von: Michael Droettboom <mdroe@...86...>
An: matplotlib-users@lists.sourceforge.net
Betreff: Re: [Matplotlib-users] Text outside the graphs "box"

figtext will let you place text relative to the figure, not the axes:

http://matplotlib.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 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:
>
> plt.title(r'$F(x)=p*\frac{1}{s1\sqrt{2\pi}}$', fontsize=20)
>
> thanks
>
> /johannes
>

--
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
NEU: FreePhone - kostenlos mobil telefonieren und surfen!
Jetzt informieren: http://www.gmx.net/de/go/freephone

Thanks, but I guess I can't install matplotlib since I can't build it,
since I don't have VS2003.

···

On Fri, May 13, 2011 at 6:23 AM, Pauli Virtanen <pav@...397...> wrote:

Thu, 12 May 2011 15:16:43 -0400, C M wrote:
[clip: installing Python modules]

Is there a step-by-step method on the
website that shows how to do this?

Here: http://docs.python.org/install/index.html