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

Month names not set as text when using usetex · Issue #19836 · matplotlib/matplotlib · GitHub

Repository navigation

Month names not set as text when using usetex #19836

Closed

Description

Bug report

From the image in the release notes for matplotlib 3.4 here:
https://matplotlib.org/stable/users/whats_new.html#date-formatters-now-respect-usetex-rcparam

The dateformatter does not use text mode for the month names but sets them like $Aug$. Which is bad typography, since it will be typeset as the mathematical expression A * u * g, not the text Aug.

Activity

  1. anntzer commented on Mar 31, 2021

    Contributor

    Currently the formatter wraps text in \mathdefault (so things work with usetex=False), but mathdefault is a matplotlib-only thing and we just strip it out for usetex. In #18520 I argued that we should perhaps map it to amsmath's \text instead, which would fix that.

  2. smartlixx commented on Apr 1, 2021

    Contributor

    If amsmath's \text is not introduced in the near future, we can modify _wrap_in_tex function to differentiate alphabets and other characters, leaving alphabets out from \mathdefault. This way is a little clumsy, but it works. A PR can be open with this approach.

  3. added this to the v3.5.0 milestone on May 14, 2021
  4. tacaswell commented on May 14, 2021

    Member

    @maxnoe Was this a change from 3.3? silly question, it is a new feature in 3.4 🐑

  5. modified the milestones: v3.5.0, v3.4.3 on May 14, 2021
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

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL