|
From: Michael D. <md...@st...> - 2011-05-13 15:03:59
|
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/2011 10:20 AM, Johannes Radinger wrote:
> That is not what I want, to put the text inside the figure.
>
> I want the text above the figure with some space (e.g 2 cm) to the figure
> thats why I tried 0, 1.2 but then the text is outside the margins
>
> /j
> -------- Original-Nachricht --------
>
>> Datum: Fri, 13 May 2011 14:03:16 +0000 (UTC)
>> Von: Pauli Virtanen<pa...@ik...>
>> An: mat...@li...
>> 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*\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?
>>>
>> The first two parameters are the x and y coordinates of the text,
>> in range [0, 1]. Adjust them to put the text inside the figure.
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
--
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA
|