<div dir="ltr">Great, Sounds like that is every backend then<div><br></div><div>Jens</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, 5 Jan 2016 at 14:26 Antony Lee <<a href="mailto:antony.lee@berkeley.edu">antony.lee@berkeley.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Works with PySide Py2/Py3 (on Linux).<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-05 6:11 GMT-08:00 Jens Nielsen <span dir="ltr"><<a href="mailto:jenshnielsen@gmail.com" target="_blank">jenshnielsen@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">We should be careful about the PySide QT4 backend and unicode. See <a href="https://github.com/matplotlib/matplotlib/pull/5690" target="_blank">https://github.com/matplotlib/matplotlib/pull/5690</a><div><br></div><div>best</div><span><font color="#888888"><div>Jens</div></font></span></div><div><div><br><div class="gmail_quote"><div dir="ltr">On Tue, 5 Jan 2016 at 14:06 Michael Droettboom <<a href="mailto:mdroettboom@continuum.io" target="_blank">mdroettboom@continuum.io</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The Mac OSX backend seems to work just fine.<div><br></div><div>That docstring comment goes back to 2008, and the OSS GUI frameworks and Python 3 etc. have made great strides with Unicode support since then.  We should probably just remove it along with your proposed change.<br></div><div><br></div><div>Mike</div></div><div class="gmail_extra"></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 4, 2016 at 6:48 PM, Antony Lee <span dir="ltr"><<a href="mailto:antony.lee@berkeley.edu" target="_blank">antony.lee@berkeley.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<br><br>As part of my rewrite of the Formatter classes (#5787), I am planning to switch to always use `fix_minus` in the statusbar text (i.e., use a typographically correct unicode "MINUS SIGN" rather than a dash for negative numbers).<br><br>The original docstring on the topic was<br><br>    Some classes may want to replace a hyphen for minus with the<br>    proper unicode symbol (U+2212) for typographical correctness.<br>    The default is to not replace it.<br><br>    Note, if you use this method, e.g., in :meth:`format_data` or<br>    call, you probably don't want to use it for<br>    :meth:`format_data_short` since the toolbar uses this for<br>    interactive coord reporting and I doubt we can expect GUIs<br>    across platforms will handle the unicode correctly.  So for<br>    now the classes that override :meth:`fix_minus` should have an<br>    explicit :meth:`format_data_short` method<br><br>I have tried the Tk, Qt4, Qt5 (Python2/3), Gtk (Python2) and Gtk3 (Python3) backends on Linux, as well as Tk and Qt4 (Python2) on Windows and they all handle unicode fine.  Can someone try the MacOS backend for me?  You basically need to patch ScalarFormatter.format_data_short (in ticker.py) to wrap the returned values in `self.fix_minus`<br><br>    def format_data_short(self, value):<br>        """return a short formatted string representation of a number"""<br>        if self._useLocale:<br>            return self.fix_minus(locale.format_string('%-12g', (value,)))<br>        else:<br>            return self.fix_minus('%-12g' % value)<br><br>plot e.g. `plot([-1, 1])`, and check that the statusbar displays negative x values properly (with a minus sign that's actually much more readable IMO).<br><br>Thanks,<br><br>Antony<br></div>
<br>_______________________________________________<br>
Matplotlib-devel mailing list<br>
<a href="mailto:Matplotlib-devel@python.org" target="_blank">Matplotlib-devel@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-devel" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div></div><div class="gmail_extra">-- <br><div><div dir="ltr">Michael Droettboom<div>Continuum Analytics</div></div></div>
</div>
_______________________________________________<br>
Matplotlib-devel mailing list<br>
<a href="mailto:Matplotlib-devel@python.org" target="_blank">Matplotlib-devel@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-devel" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-devel</a><br>
</blockquote></div>
</div></div></blockquote></div><br></div>
</blockquote></div>