Re: [Matplotlib-users] minus sign instead of hyphen in negative axes labels

2008-05-13 Thread Michael Droettboom
Presently, there's no direct way to do this. matplotlib uses the standard Python (derived from C) number formatting which uses a hyphen. There are a couple of workarounds, however. You can set a custom tick formatter by providing a function and wrapping it in a FuncFormatter object. (See att

Re: [Matplotlib-users] minus sign instead of hyphen in negative axes labels

2008-05-13 Thread Michael Droettboom
Forgot to attach example. Sorry. Michael Droettboom wrote: Presently, there's no direct way to do this. matplotlib uses the standard Python (derived from C) number formatting which uses a hyphen. There are a couple of workarounds, however. You can set a custom tick formatter by providing a

[Matplotlib-users] minus sign instead of hyphen in negative axes labels

2008-05-10 Thread Markus Kuhn
Matplotlib currently uses the "hyphen" character instead of a "minus sign" when printing negative numbers in plots. While these two characters are traditionally not distinguished in monospaced fonts, there is a big difference in proportional fonts. A hyphen (Unicode character 0x002d) is very short