1
$\begingroup$

My question is simple

How can I add text in a figure like the following?

enter image description here

In particular I want two labels: one at the top "Label text 1" ()just above the image and one at the right side (just outside), written vertically "Label text 2". Of course, I must be able to control the font family, size, etc of the labels.

Any suggestions?

$\endgroup$
5
  • $\begingroup$ Do you mean you want to label the image or you want the text to be inside the image ? $\endgroup$
    – Lotus
    May 19, 2017 at 10:00
  • $\begingroup$ @Lotus The first label should be just above the image and the second one just outside the right side. $\endgroup$
    – Vaggelis_Z
    May 19, 2017 at 10:01
  • $\begingroup$ Try the function Labeled then. $\endgroup$
    – Lotus
    May 19, 2017 at 10:10
  • 1
    $\begingroup$ Labeled[img, {"Top Text", "Right Text"}, {Top, Right}]. You can use Rotate, Style etc..to style accordingly $\endgroup$
    – Lotus
    May 19, 2017 at 10:13
  • $\begingroup$ @Lotus That's exactly what I was looking for! Thanks! Could you please post a quick answer, so as to accept it? $\endgroup$
    – Vaggelis_Z
    May 19, 2017 at 10:19

1 Answer 1

4
$\begingroup$
Labeled[img, {"Top Text", "Right Text"}, {Top, Right}]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.