-
Notifications
You must be signed in to change notification settings - Fork 200
Bode diagram plot issue #357
Copy link
Copy link
Open
Description
Hi,
Thanks for this great python module!!
Environment (OS, Python version, PySpice version, simulator)
Linux Debian 12.1 with Python 3.11.2, pyspice v1.5, installed from pip3 (using a venv)
Actual Behaviour
There is an issue with matplotlib (installed using pip3) , the example filter/low-pass-rc-filter.py does not work. It complains about 'basex' and stops the script:
Traceback (most recent call last):
File "spice/examples/filter/low-pass-rc-filter.py", line 44, in <module>
bode_diagram(axes=axes,
[...]
TypeError: LogScale.__init__() got an unexpected keyword argument 'basex'Steps to reproduce the behaviour
just run the filter/low-pass-rc-filter.py example, using Python 3.11.2 and pip3 (matplotlib, pyspice).
workaround
from semilog matplotlib doc, replacing basex with base in lines 36 and 46 of file PySpice/Plot/BodeDiagram.py fix the problem.
regards,
Mik
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels