7

Following this StackOverflow discussion, I can use raw string and latex to get μ+σ from r'$\mu$' + '+' + r'$\sigma$'. How can I write μ ± σ as a legend in a matplotlib plot?

Community
  • 1
  • 1
devautor
  • 2,506
  • 4
  • 21
  • 31

2 Answers2

12

The text is r'$\mu \pm \sigma$'.

ml4294
  • 2,559
  • 5
  • 24
  • 24
2

The plus minus sign in LaTeX is \pm. r'$\mu \pm \sigma$' should work.

Vinícius Figueiredo
  • 6,300
  • 3
  • 25
  • 44