We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exporting a dashed line
import tikzplotlib import matplotlib.pyplot as plt plt.figure() plt.plot([0, 1], [0, 1], 'k--') tikzplotlib.get_tikz_code()
results in an error:
AttributeError: 'Line2D' object has no attribute '_us_dashSeq'
This happens because matplotlib v3.6.2 (commit-link) changed the way it handles the dash-patterns in its internal code.
The text was updated successfully, but these errors were encountered:
A quick fix can be implemented by Monkey-patching MPL:
from matplotlib.lines import Line2D from matplotlib.legend import Legend Line2D._us_dashSeq = property(lambda self: self._dash_pattern[1]) Line2D._us_dashOffset = property(lambda self: self._dash_pattern[0]) Legend._ncol = property(lambda self: self._ncols)
The Legend-patch fixes #564
Sorry, something went wrong.
Had the same issue.
No branches or pull requests
Exporting a dashed line
results in an error:
This happens because matplotlib v3.6.2 (commit-link) changed the way it handles the dash-patterns in its internal code.
The text was updated successfully, but these errors were encountered: