Skip to content

[Bug]: Star marker (using mathtext) is not center-aligned #26083

@timegate

Description

@timegate

Bug summary

Is there any other way to center-align mathtext markers?
image

Code for reproduction

from matplotlib import pyplot as plt
plt.plot(10, 10, color='b', alpha=1.0, marker="*", markersize=25)
plt.plot(10, 10, color='g', alpha=1.0, marker="$\star$", markersize=25)
plt.plot(10, 10, color='r', alpha=1.0, marker=".")

Actual outcome

All markers using mathtext were not center-aligned

Expected outcome

center-aligned markers (whether mathtext is used or not)

Additional information

No response

Operating system

No response

Matplotlib Version

3.7.1

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions