Closed davidzanger closed 3 months ago
Yeah, that's because you are using latex and supporting those glyphs depends on encoding/font.
The following code works, with the latex commands instead. Note it is enclosed in a raw string.
import scienceplots
import matplotlib.pyplot as plt
plt.style.use('science')
plt.plot(1, 2, label=r'>test \textgreater \textless')
plt.legend()
plt.show()
Environment
Affected styles
Describe the issue here
When trying to display the greater symbol in the legend, it is not displayed correctly.
How can we replicate it? What have you tried? Please, add a reproducible example
Here is a minimal example:
Output is:![grafik](https://github.com/garrettj403/SciencePlots/assets/54279486/b961f51b-8f40-426d-be2a-94349c73f3aa)
Extra info
No response