-
-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
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
Matplotlib version >> 3.6.2, gives AttributeError: 'Line2D' object has no attribute '_us_dashSeq' #580
Comments
After downgrading to Matplotlib version 3.5.1, the problem has been resolved. But is there any other way? Please let me know. Thank you.. |
This has been changed in matplotlib version 3.6.0 and needs a corresponding fix/PR. Upstream change: matplotlib/matplotlib#21050 |
@FriedrichFroebel Is there any workaround for this? |
I have not tested this, but replacing tikzplotlib/src/tikzplotlib/_path.py Lines 472 to 473 in 450712b
dashOffset, dashSeq = line._unscaled_dash_pattern might work given https://github.com/matplotlib/matplotlib/pull/21050/files#diff-be677869a88f58790f2387fb2ac0ae12e2e9610d7c7096e25d3087d5ed9645c8L1133-R1121 |
Solution presented by @FriedrichFroebel works just fine, I've just tested it successfully. |
Thanks @FriedrichFroebel , its working for me as well! I hope it will be incorporated in next release. |
@VijayN10 I do not think that it really makes sense to close this issue while there is no upstream solution for it. For now, there is no corresponding PR to ensure that once this library is finally receiving some more maintenance again this will have an official fix. |
@nschloe , @FriedrichFroebel - Okay. Thanks. |
Since it is next to impossible to install matplotlib <=3.6, the tikzplotlib package is useless. It would only be fair to remove it from the package list on PyPI. |
I do not consider it impossible to install |
I tried to install I started using |
I was unable to save the plot as a TikZ file after upgrading to latest version of matplotlib. It was giving an error of
AttributeError: 'Line2D' object has no attribute '_us_dashSeq'
For plotting, I was using the following code. The error was identified with line style and markevery function.
The text was updated successfully, but these errors were encountered: