fastlmm / FaST-LMM

Python version of Factored Spectrally Transformed Linear Mixed Models
https://fastlmm.github.io/
Apache License 2.0
47 stars 11 forks source link

Error in plotp.py: 'Legend' object has no attribute 'legendHandles' #48

Open vb-iman opened 5 months ago

vb-iman commented 5 months ago

Hello! I have run into an issue when using the FastLMM plotp.qqplot() function with newer versions of pylab/matplotlib. Specifically in line 934 of plotp.py:

for lo in leg.legendHandles: lo.set_markersize(10)

I get an AttributeErrror: 'Legend' object has no attribute 'legendHandles'

I was able to fix it by changing legendHandles to legend_handles.

CarlKCarlK commented 5 months ago

Thanks! I'll fix this in the next version.