You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess it was due to conflicting installations when I did "pip install mplcyberpunk". It might be nice to check if it overwrites some necessary packages for LaTeX.
I managed to correct it in a similar way then proposed in the link above, but I uninstalled mplcyberpunk to be sure I could still plot some other plots from my work.
When using uselatex=False, the code works indeed, but I would suggest you to look into that so people using LaTeX can have Figures and texts with the same font :)
Dear dhaitz,
Congratulations for the package, it's very nice!
However, it doesn't seem to be compatible with LaTeX mode. For example, when doing:
import matplotlib.pyplot as plt
import mplcyberpunk
from matplotlib import rc
rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']})
rc('text', usetex=True)
plt.style.use("cyberpunk")
plt.plot([1, 3, 9, 5, 2, 1, 1], marker='o')
plt.plot([4, 5, 5, 7, 9, 8, 6], marker='o')
plt.title(r'$\mathrm{test}$')
mplcyberpunk.add_glow_effects()
plt.show()
The code crashes. It would be nice to update it for scientific uses :)
cheers,
Eduardo
The text was updated successfully, but these errors were encountered: