MathGroup Archive 2007

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

Search the Archive

Re: Text Function with Graphic

  • To: mathgroup at
  • Subject: [mg73155] Re: Text Function with Graphic
  • From: "dimitris" <dimmechan at>
  • Date: Mon, 5 Feb 2007 00:05:49 -0500 (EST)
  • References: <eq1j4c$341$>

On Feb 3, 11:03 am, "WetBlanket" <Wyvern... at> wrote:
> I can not find a way to enter text on a graph, to the left to the axis
> without the text block extending well past the actual text entered.
> This block then erases part of the axis, or other graph items. How can
> this be avoided.

Hmmm, the problem you stated seems quite elementary and I hope I don't
miss something.

Anyway let do a try!

First here is your original example

Plot[x^2, {x, -5, 5}, Prolog -> Text["HelloWorld", {-2, 10}]]

Your problem if I understood well is that "HelloWorld" appears to
"hit" the graph.

Among many alternatives you could try:

Plot[x^2, {x, -5, 5}, Prolog -> Text["HelloWorld", {-2, 13}]]
Plot[x^2, {x, -5, 5}, Prolog -> Text["Hello\nWorld", {-2, 10}],
PlotRange -> {Automatic, {-0.5, Automatic}}]
Plot[x^2, {x, -5, 5}, Prolog -> Text["HelloWorld", {-2, 10}],
ImageSize -> 400]

Hope that this helps!

Contact me if there is problem.


Gary Boswell <wyvern864 at> wrote:
Any example will do.  I think the problem is in a setting of the
Option Inspector. But I can not determine what setting controls the
text block of a gaph.

An explicit example is:
 Plot[x^2, {x,-5,5},Prolog->Text["HelloWorld",{-2,10}]]


  • Prev by Date: LinearSolve for underdetermined sparse systems
  • Next by Date: Re: Re: Problem with new Mathematica Installation on Linux
  • Previous by thread: Re: Text Function with Graphic
  • Next by thread: NIntegrate - problems with HoldAll property(?)