Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'adding text outside the frame' topicStudent Support Forum > General > Archives > "adding text outside the frame"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Michael
08/02/12 10:08pm

In Response To 'Re: Re: adding text outside the frame'
---------
You can specify a label for each tick. Here the labels are successively longer columns:

Graphics[{
Inset[ListPlot[{{1, 2, 3}, {10, 20, 30}}, Frame -> True,
FrameTicks -> {{{{1, "1"}, {2, Column[{"2", ""}]}, {3,
Column[{"3", "", ""}]}}, {10, 20, 30}}, {All, None}}], {0,
0}, {0, 0}, 3.45],
Text[Style["A rather long comment at (2.5, 25)", 16], {2.5,
25/30*3/GoldenRatio}, {-1, 0}]
}, PlotRange -> {{-0.25, 7.5}, {-0.4, 3./GoldenRatio}},
Frame -> None]

You can also mislabel the ticks, but that seems bad to me:

Graphics[{
Inset[ListPlot[{{1, 2, 3}, {10, 20, 30}}, Frame -> True,
FrameTicks -> {{{{1, "1"}, {5, "2"}, {9, "3"}}, {10, 20,
30}}, {All, None}}], {0, 0}, {0, 0}, 3.45],
Text[Style["A rather long comment at (2.5, 25)", 16], {2.5,
25/30*3/GoldenRatio}, {-1, 0}]
}, PlotRange -> {{-0.25, 7.5}, {-0.4, 3./GoldenRatio}},
Frame -> None]

Something like this seems best to me, but it is not what you asked for. It's yet another way to put a comment in graphics. You'll be the best judge of what you want:

ListPlot[{{1, 2, 3}, {10, 20, 30}}, Frame -> True,
FrameTicks -> {{{{1, ""}, {2, ""}, {3, "3", {0.01, 0.01}}}, {10, 20,
30}}, {All, None}},
ImagePadding -> {{Automatic, Scaled[0.05]}, {Automatic, Automatic}},
PlotRangeClipping -> False,
Epilog -> {Inset[
Pane[Style["Some rather lengthy comment.",
FontFamily -> "Helvetica"], ImageSize -> {100, Full},
Alignment -> Left], {2.95, 25}]}]

URL: ,

Subject (listing for 'adding text outside the frame')
Author Date Posted
adding text outside the frame Jinkang 07/29/12 8:21pm
Re: adding text outside the frame Michael 07/31/12 4:46pm
Re: Re: adding text outside the frame jinkang 08/01/12 3:05pm
Re: Re: adding text outside the frame jinkang 08/01/12 8:15pm
Re: Re: Re: adding text outside the frame Michael 08/02/12 10:08pm
Re: adding text outside the frame jinkang 08/05/12 05:29am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic