Re: Text Function with Graphic
- To: mathgroup at smc.vnet.net
 - Subject: [mg73155] Re: Text Function with Graphic
 - From: "dimitris" <dimmechan at yahoo.com>
 - Date: Mon, 5 Feb 2007 00:05:49 -0500 (EST)
 - References: <eq1j4c$341$1@smc.vnet.net>
 
On Feb 3, 11:03 am, "WetBlanket" <Wyvern... at gmail.com> 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.
Regards
Dimitris
Gary Boswell <wyvern864 at gmail.com> 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}]]
 Thanks,
WetBlanket