endangeredoxen / fivecentplots

A Python plotting analgesic
https://endangeredoxen.github.io/fivecentplots
11 stars 6 forks source link

AttributeError: 'Line2D' object has no attribute '_legmarker' #48

Closed frecloud closed 2 years ago

frecloud commented 2 years ago

When I am passing legend parameter I am getting this error. Screenshot 2022-09-13 232651 If I don't pass legend, It works fine

endangeredoxen commented 2 years ago

What versions of fcp and matplotlib are you using?

On Tue, Sep 13, 2022, 12:13 PM frecloud @.***> wrote:

When I am using passing legend parameter I am getting this error. [image: Screenshot 2022-09-13 232651] https://user-images.githubusercontent.com/104160748/189978670-ab189a36-d1dc-4d46-bcc8-94f7555d79a3.jpg If I don't pass legend, It works fine

— Reply to this email directly, view it on GitHub https://github.com/endangeredoxen/fivecentplots/issues/48, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADMCOIN2L4X26FC7UMNVY63V6C733ANCNFSM6AAAAAAQLWAYB4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

frecloud commented 2 years ago
bokeh             2.4.3
certifi           2022.6.15
cycler            0.11.0
et-xmlfile        1.1.0
fivecentplots     0.4.3
fonttools         4.37.1
Jinja2            3.1.2
kiwisolver        1.4.4
lxml              4.9.1
MarkupSafe        2.1.1
matplotlib        3.5.3
numpy             1.23.3
openpyxl          3.0.10
packaging         21.3
pandas            1.4.4
Pillow            9.2.0
pip               22.1.2
pyparsing         3.0.9
pypng             0.20220715.0
python-dateutil   2.8.2
python-docx       0.8.11
pytz              2022.2.1
PyYAML            6.0
scipy             1.9.1
setuptools        63.4.1
six               1.16.0
tabulate          0.8.10
tornado           6.2
typing_extensions 4.3.0
wheel             0.37.1
wincertstore      0.2
xlrd              2.0.1
endangeredoxen commented 2 years ago

Ok I suspected this. It is a known bug but I haven't had time to patch it because I'm focused on releasing v0.5.0. fcp 0.4.3 doesn't support matplotlib 3.5.3.

You can either downgrade your matplotlib (don't recall exactly which version works but around 3.1 I think) or upgrade to the beta version of fcp v0.5.0 (pip install fivecentplots==0.5.0b2)

Sorry for the inconvenience!

endangeredoxen commented 2 years ago

OK I decided to patch this after all since the newer version is still beta so now you can use v0.4.4 to avoid the legmarker issue with mpl 3.5.3. pip install fivecentplots --force-reinstall should take care of the upgrade for you.

But I strongly encourage migration to v0.5.0 when released as it improves on a lot of issues with v0.4.4. Cheers!

endangeredoxen commented 1 year ago

Ok I suspected this. It is a known bug but I haven't had time to patch it because I'm focused on releasing v0.5.0. fcp 0.4.3 doesn't support matplotlib 3.5.3.

You can either downgrade your matplotlib (don't recall exactly which version works but around 3.1 I think) or upgrade to the beta version of fcp v0.5.0 (pip install fivecentplots==0.5.0b2)

Sorry for the inconvenience!

On Tue, Sep 13, 2022, 12:15 PM frecloud @.***> wrote:

bokeh 2.4.3 certifi 2022.6.15 cycler 0.11.0 et-xmlfile 1.1.0 fivecentplots 0.4.3 fonttools 4.37.1 Jinja2 3.1.2 kiwisolver 1.4.4 lxml 4.9.1 MarkupSafe 2.1.1 matplotlib 3.5.3 numpy 1.23.3 openpyxl 3.0.10 packaging 21.3 pandas 1.4.4 Pillow 9.2.0 pip 22.1.2 pyparsing 3.0.9 pypng 0.20220715.0 python-dateutil 2.8.2 python-docx 0.8.11 pytz 2022.2.1 PyYAML 6.0 scipy 1.9.1 setuptools 63.4.1 six 1.16.0 tabulate 0.8.10 tornado 6.2 typing_extensions 4.3.0 wheel 0.37.1 wincertstore 0.2 xlrd 2.0.1

— Reply to this email directly, view it on GitHub https://github.com/endangeredoxen/fivecentplots/issues/48#issuecomment-1245785541, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADMCOIL75AH4PDVHJTTS5B3V6DAEXANCNFSM6AAAAAAQLWAYB4 . You are receiving this because you commented.Message ID: @.***>