chipmuenk / pyfda

Python Filter Design Analysis Tool
http://chipmuenk.github.io/
MIT License
655 stars 94 forks source link

Crash when trying to open inset plot in H(f) #234

Closed sa425316543 closed 1 year ago

sa425316543 commented 1 year ago

Python version: 3.9.13 pyfda version 0.7.1 installed from PyPI.

[ INFO] [pyfda.plot_widgets.plot_impz:654] [ 0 ms]: Calculated transient fixpoint response [ INFO] [pyfda.plot_widgets.plot_impz:660] [171.9 ms]: Plotted transient fixpoint response Traceback (most recent call last): File "C:\Projects\Misc\venv\lib\site-packages\pyfda\plot_widgets\plot_hf.py", line 489, in draw_inset self.ax_i.patches.append(rect) AttributeError: 'ArtistList' object has no attribute 'append'

chipmuenk commented 1 year ago

The error occurs when trying to use an inset plot in the H(f) tab (draw_inset() method), no need to start a fixpoint simulation. I can reproduce the error with python 3.10.10 and matplotlib 3.7.1, everything runs smooth with Python 3.9.16 and Matplotlib 3.6.0.

Could you be so kind to check your Matplotlib version?

chipmuenk commented 1 year ago

From the Matplotlib reference for matplotlib.axes.Axes.ArtistList():

The type-specific children sublists were made immutable in Matplotlib 3.7. In the future these artist lists may be replaced by tuples. Use as if this is a tuple already.