BoldingBruggeman / pyncview

PyNcView is a cross-platform NetCDF viewer written in Python. It provides an easy-to-use graphical user interface to the creation of animations and publication-quality figures.
GNU General Public License v2.0
18 stars 1 forks source link

Fix issue with missing minus sign glyph #9

Open markusReinert opened 6 months ago

markusReinert commented 6 months ago

This pull request fixes the following error message that appears for me in the latest version of PyNcView: UserWarning: Glyph 8722 (\N{MINUS SIGN}) missing from current font. In consequence of this "missing glyph", minus signs in the axes labels are replaced by boxes, making the numbers hard to read.

With the here-proposed fix, minus signs are replaced by the regular dash "-", which can be displayed with no problems on my computer, making the numbers readable again.

I don't know if this problem occurs for everyone (probably not), but if you have the same problem, you may use this fix. Until the fix makes it into the official PyNcView code, you can clone the repository, check out this branch and write pip install . in the repository folder.

Thanks to mok0 for this solution.

markusReinert commented 6 months ago

I also tested the latest version of pyncview on a different computer and the problem does not occur. So, the fix is not necessary for everyone. However, if you experience minus signs cannot be displayed, you can use the solution presented in this pull request.