Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.9K Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How to align a text inside a plot?

Posted 5 years ago
POSTED BY: Rahul Chakrabory
3 Replies

The scaled coordinates range from 0 to 1. Left top is {0,1}, center top is {.5,1}. Then you may have to adjust the offset:

Text[Style["(b)", FontSize -> 14, Black], Scaled[{0, 1}], {-1, 1}]
Text[Style["(b)", FontSize -> 14, Black], Scaled[{.5, 1}], {0, 1}]

Confusingly enough, the offset range is from -1 to 1.

POSTED BY: Gianluca Gorni

This is a way:

Text[Style["(b)", FontSize -> 14, Black], Scaled[{1, 1}], {1, 1}]
POSTED BY: Gianluca Gorni

Thanks, the text is getting to the desired location i.e. to the right top corner of the plot. Now, I tried to scale the coordinates so as to get the text to left top, or to the centre top. I changed the coordinates to (-1,-1) or (0,1) etc. But its not going there.

POSTED BY: Rahul Chakrabory
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard