Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Circles and Text Offset in Graphics3D

  • To: mathgroup at smc.vnet.net
  • Subject: [mg87633] Re: [mg87602] Circles and Text Offset in Graphics3D
  • From: Chris Hill <chill at wolfram.com>
  • Date: Tue, 15 Apr 2008 05:45:51 -0400 (EDT)
  • References: <200804140943.FAA08075@smc.vnet.net>

Steve Gray wrote:
>I have some Points in Graphics3D with a numeric label on
>each one. The labels obscure the points. I'd like to move the text off
>to the side of the point, but I don't see any offset that applies to
>the 2D projection of the text. I tried putting a few spaces before the
>actual label, but the spaces are dropped and the label is recentered
>around its location so it still obscures the point.

The Text primitive takes a 3rd argument that specifies how the text 
should be positioned relative to the projected reference point.  By 
default text is positioned with the reference point at its center.

This moves the text clear of the point on the right side:
Graphics3D[{Point[{0, 0, 0}], Text["My Point", {0, 0, 0}, {-2, 0}]}]

A more complete description of this 3rd argument and its coordinate 
system is found in the "More Information" section of the Text reference page.

Chris Hill
Wolfram Research 



  • Prev by Date: Re: A Problem with Simplify
  • Next by Date: Re: A Problem with Simplify
  • Previous by thread: Circles and Text Offset in Graphics3D
  • Next by thread: Re: Circles and Text Offset in Graphics3D