Message Boards Message Boards

0
|
4054 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Frame handles Text wrong

Posted 9 years ago
Show[
  Graphics@
    Text[Style["12345678901234567890123456789012345678901234567890", Medium, 
        Bold], {2, 0}],
  Graphics[{Thick, Red, Line[{{0, 0},   {1, 0}}]}],
  Frame -> True
  ]

The edge of the frame that is drawn goes through approximately the middle of the long text, and does not include the right end of the text. Seems like Mathematica looks at the midpoint of the text and doesn't try to include the whole text in the frame.

This is Mathematica 8 running on Windows 7.

Attachments:
POSTED BY: David Golber

You can adjust the PlotRange and ImageSize options to make the frame large enough:

Graphics[{Text[
   Style["12345678901234567890123456789012345678901234567890", Medium,
     Bold], {2, 0}], {Thick, Red, Line[{{0, 0}, {1, 0}}]}}, 
 Frame -> True, PlotRange -> {{0, 4}, Automatic}, ImageSize -> 600]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract