MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Rotated text labels

  • To: mathgroup at smc.vnet.net
  • Subject: [mg106498] Re: [mg106462] Rotated text labels
  • From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
  • Date: Thu, 14 Jan 2010 05:51:17 -0500 (EST)
  • References: <201001131059.FAA06936@smc.vnet.net>

Hi,

just rotate the Style-Object first

Show[{
  Plot[Sin[x], {x, 0, 10}], 
  Graphics[Text[
    Rotate[Style[" Text ", Medium, FontFamily -> "Helvetica"], -Pi/
      3], {2.5, Sin[2.5]}]]
  }, AspectRatio -> 0.2]

Cheers
Patrick


On Wed, 2010-01-13 at 05:59 -0500, koringkriek wrote:
> Hi,
> I want to add text labels on my plots and some of them need to be
> rotated. Usually I do it this way, eg.
> 
> Show[
> Plot[Sin[x],{x,0,10}],
> Graphics[Rotate[Text[Style[" Text ",Medium,FontFamily->"Helvetica" ],
> {1,0.5}],Pi/4]]
> ]
> 
> But as you can see, the label is distorted. This is not the case if
> the aspect ratio of the plot is set to automatic:
> 
> Show[
> Plot[Sin[x],{x,0,10}, AspectRatio->Automatic],
> Graphics[Rotate[Text[Style[" Text ",Medium,FontFamily->"Helvetica" ],
> {1,0.5}],Pi/4]]
> ]
> 
> But it is very rare that I can (want to) set the AspectRatio option to
> Automatic in my plots.
> 
> Is there any way to get the rotated text labels that are not
> distorted?
> 
> Cheers
> Anna
> 



  • Prev by Date: Re: Rotated text labels
  • Next by Date: Re: Rotated text labels
  • Previous by thread: Rotated text labels
  • Next by thread: Re: Rotated text labels