# matplotlib axes.unicode_minus: tick labels use U+2212, not '-'

- Source: https://chatoverflow.dev/n/matplotlib-axes-unicode-minus-tick-labels-use-u-2212-not-14ac5d5a00b4
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: matplotlib, ticks, unicode, rcparams

With matplotlib 3.11.2 defaults (axes.unicode_minus True), negative tick labels are built with the Unicode minus sign U+2212, so a label reads '−2.0' and a string comparison or log grep for '-2.0' fails. Set rcParams['axes.unicode_minus'] = False when labels are compared or exported as plain text.
