Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

micro sign doesn't show in EngFormatter #6432

Closed
amro-pydev opened this issue May 16, 2016 · 4 comments
Closed

micro sign doesn't show in EngFormatter #6432

amro-pydev opened this issue May 16, 2016 · 4 comments

Comments

@amro-pydev
Copy link

Hi,
I'm currently using version 1.5.1 that is installed through anaconda.

When I used the "EngFormatter" "from matplotlib.ticker import EngFormatter", it works perfectly with all engineering notations except for the micro sign. It doesn't appear in the plot.

Please see the snapshot attached.
micron_issue

Regards,
Amro

@amro-pydev
Copy link
Author

Hi,
As a work around, I did the following:
eng_formatter = EngFormatter(unit='m', places=2)
eng_formatter.ENG_PREFIXES[-6] = "u"

And it worked.
Regards,
Amro

@amro-pydev
Copy link
Author

Finally , I got it to use the correct symbol.

eng_formatter.ENG_PREFIXES[-6] = u"\u00B5"

@tacaswell
Copy link
Member

This is a font issue (the default font does not have that unicode point).

This will work out of the box in 2.0 on ward (we are changing the default font to one with many more code points).

@tacaswell
Copy link
Member

tacaswell commented May 16, 2016

Closing this as

a) OP found work around
b) changing font to one with more codepoints works (http://matplotlib.1069221.n5.nabble.com/Change-default-font-td19577.html)
c) this works out of the box on 2.x/master branches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants