FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Better document how to set font · Issue #5941 · matplotlib/matplotlib · GitHub

Repository navigation

Better document how to set font #5941

Closed

Description

Hello,

The title says it all. If you will see in this Jupyter notebook, the text in the axes appears as undefined squares, whereas the string is accurately displayed elsewhere.

I'm using the latest release of matplotlib, installed today, on Python 3.4.3 on Windows 7.

Activity

  1. mdboom commented on Jan 28, 2016

    Member

    Matplotlib uses its own basic text layout algorithm, rather than something like Pango, which can handle internationalized text. This is the main purpose of MEP14 -- to get this working properly, but it will be a great deal of work.

    The other issue you are running into is that the default font that ships with matplotlib, "Bitstream Vera" does not have any non-European characters. matplotlib 2.0 will replace this font with "Deja Vu", which has a much broader character set, but that still won't help if the language requires specialized layout.

    One possible workaround is to set the rcParam usetex=True if you have a working xetex or luatex installation.

    In the meantime, this is a long-known bug that we haven't been able to find the time or resources to resolve.

  2. shirish93 commented on Jan 28, 2016

    Author

    Thank you for the quick turnaround! Is there something I can do to help?

  3. tacaswell commented on Jan 29, 2016

    Member

    I think you can change the default font to one that contains the code-points you need.

  4. modified the milestones: , on Feb 15, 2016
  5. changed the title [-]Unicode characters not formatting well in Pyplot axis labels[/-] [+]Better document how to set font[/+] on Feb 15, 2016
  6. modified the milestones: , on Apr 11, 2016
  7. modified the milestones: , on Apr 11, 2016
  8. mdboom commented on Apr 11, 2016

    Member

    With 2.0 we have more character coverage -- we're not doing any fancy text layout, but that's hopefully coming in the future.

  9. modified the milestones: , on May 3, 2017
  10. modified the milestones: , on Oct 9, 2017
  11. github-actions commented on Mar 21, 2023

    This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!

  12. jklymak commented on Mar 21, 2023

    Member

    I think it's safe to close this with the newer font handling documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL