How to use the "plot_Fkt.py" for calculation?

Dear experts,

When running the plot_Fkt.py script in the Dynasor environment with Python 3.7, I encountered the following error: mplpub.setup('natcom', width=3.3, height=4.0) AttributeError: module 'mplpub' has no attribute 'setup' .

This error suggests that the version of the mplpub module using does not support the setup function or the function was not imported correctly. It appears that the code provided on GitHub only includes this particular version.

I was wondering if anyone could give me some advice.
Thank you so much for your help!

Best,
Sally

Hi,
Is this the plotting script from dynasor-examples repo?
The mplpub package here refers to an internal package we use to do minor adjustment to figures (e.g. set fontsizes and legends-styles etc).
I think you can simply remove the import mplpub and mplpub.setup(), since it is not be necessary to plot the data