Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Rotated Text with Full AspectRatio and ImageSize

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80748] Rotated Text with Full AspectRatio and ImageSize
  • From: Cca <cca at gregosetroianos.mat.br>
  • Date: Thu, 30 Aug 2007 23:47:18 -0400 (EDT)
  • Reply-to: Cca <cca at gregosetroianos.mat.br>

Dears,

Below I want "text" to be parallel to the segment from pt1 to pt2. This really works with the default AspectRatio for Graphics but not with the new Full value (Mathematica 6) with my settings for ImageSize (width different from height). How can I make "text" paralell to the segment in such situations? Notice that AbsoluteOptions[gr, AspectRatio] does not return any value in this case.

Manipulate[
 Graphics[{Line[{pt1, pt2}], 
   Text["text", Offset[{-5, 5}, (pt1 + pt2)/2], {0, 0}, pt2 - pt1], 
   Arrow[{{0, 0}, pt2 - pt1}]}, 
AspectRatio -> Full, 
ImageSize -> {300, 100}], 
{{pt1, {-3, 3}}, Locator}, 
{{pt2, {1, 10}}, Locator}]

Any suggesttion will be appreciated.

Carlos César de Araújo
Gregos & Troianos Educacional
http://www.gregosetroianos.mat.br
Belo Horizonte, MG, Brasil
(31) 3283-1122



  • Prev by Date: Re: StringCases kills Kernel
  • Next by Date: Re: Special characters in the axis label?
  • Previous by thread: How to get Table not to return Null?
  • Next by thread: check inside a loop?