-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Inconsistent behavior of backends when rendering latex colors #6724
Copy link
Copy link
Open
Labels
Difficulty: Hardhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesDifficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!keepItems to be ignored by the “Stale” Github ActionItems to be ignored by the “Stale” Github Actiontopic: text/usetex
Metadata
Metadata
Assignees
Labels
Difficulty: Hardhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesDifficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!keepItems to be ignored by the “Stale” Github ActionItems to be ignored by the “Stale” Github Actiontopic: text/usetex
Type
Fields
Give feedbackNo fields configured for issues without a type.
MPL 1.5.1 on Python 3.5 (Anaconda) running on Red Hat 6.5.
This issue is a followup to the discussion on matplotlib-users Creating Colored Axis Labels using LaTeX in Interactive Mode, which in turn is a followup to Stack Overflow Inconsistent rendering of hdashrule in matplotlib axis labels.
In my attempts to get latex colors to show up correctly in axis labels using interactive backends with LaTeX enabled, I came across http://matplotlib.org/users/pgf.html. I expected to be able to do the following:
With the default backend, this does not work at all, and the labels are rendered as raw strings containing TeX commands. With
mpl.use('pgf'), the lines in the labels are rendered black instead of the intended color. Please see the SO question and mailing list discussion for more info.