6

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,418
  • 2
  • 19
  • 31

2 Answers2

9

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

ml4294
  • 2,499
  • 5
  • 22
  • 22
1

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

Vinícius Figueiredo
  • 5,942
  • 3
  • 21
  • 41