Matplotlib throwing an error while trying to export channel output data

I'm getting the following error while trying to run the following code as mentioned in the URL: Can somebody help me to resolve the error. Google has little to no help on this error. code is from the following

Traceback (most recent call last): File "Z:\python\ACCC_Compiled\Version_11.2-DynSim\testplot.py", line 21, in <module> from matplotlib import pyplot as plt File "C:\Python37\lib\site-packages\matplotlib\__init__.py", line 107, in <module> from . import _api, cbook, docstring, rcsetup File "C:\Python37\lib\site-packages\matplotlib\cbook\__init__.py", line 31, in <module> from matplotlib import _api, _c_internal_utils ImportError: cannot import name '_c_internal_utils' from 'matplotlib' (C:\Python37\lib\site-packages\matplotlib\__init__.py)

Automation Guy's avatar
1
Automation Guy
asked 2021-07-19 17:48:46 -0500
edit flag offensive 0 remove flag close merge delete

Comments

code is from the URL: https://psspy.org/psse-help-forum/question/3611/extract-data-with-dyntools-and-plot-with-matplotlib/%3C/p%3E (https://psspy.org/psse-help-forum/question/3611/extract-data-with-dyntools-and-plot-with-matplotlib/)

Automation Guy's avatar Automation Guy (2021-07-19 17:49:01 -0500) edit

The posted code is to plot after a dynamic simulation run. It uses dyntools to extract channels data and it runs outside the PSSe GUI. Open a CMD window and run it. Also, test matplotlib installation in your system, just run any demo code found on the internet.

jconto's avatar jconto (2021-07-20 09:09:41 -0500) edit
add a comment see more comments