mpl.ticker.EngFormatter.fix_minus¶
-
EngFormatter.fix_minus(s)¶ Some classes may want to replace a hyphen for minus with the proper unicode symbol (U+2212) for typographical correctness. The default is to not replace it.
Note, if you use this method, e.g., in
format_data()or call, you probably don’t want to use it forformat_data_short()since the toolbar uses this for interactive coord reporting and I doubt we can expect GUIs across platforms will handle the unicode correctly. So for now the classes that overridefix_minus()should have an explicitformat_data_short()method