8000 Math text with path effects is rendered as plain text · Issue #2339 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Math text with path effects is rendered as plain text #2339
Closed
@lpsinger

Description

@lpsinger

If path effects are used with math text, then the math text is rendered as plain text, i.e., TeX expressions are rendered verbatim. For example, the test script:

#!/usr/bin/env python
from matplotlib import pyplot as plt
from matplotlib import text, patheffects
plt.title('foo^\mathrm{bar}',
    path_effects=[patheffects.withStroke(linewidth=1, foreground='r')])
plt.savefig('test.png')

results in this image:

test_bad

However, in earlier versions (v1.2.1) the text is rendered correctly as math text:

test_good

This issue was not present in v1.2.1. git bisect reveals that 4c61dc7 is the first bad commit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0