1
$\begingroup$

I try to add a Style to my Labled plot. However, when I combine Labled with Label Style, I do not succeed.

Plot[Labeled[x, "G", .3, LabelStyle -> Bold], {x, 0, 1}]

Gives me

Helpless try

As I need to combine different curves I have to use Labled.

Is there a common solution to this problem?

$\endgroup$
  • $\begingroup$ Which version of Mathematica? It works in 12.0. $\endgroup$ – Szabolcs Jan 17 at 16:08
  • $\begingroup$ I am using 11.0. Thanks a lot though! I was getting crazy because the documentation suggested LabelStlye $\endgroup$ – Karl A Jan 17 at 16:19
2
$\begingroup$

Your command works in Mathematica 12.0.

If it does not work in an older version, you can try

Plot[Labeled[x, Style["G", Bold], .3], {x, 0, 1}]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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