PySCeS / pysces

The official PySCeS project source code repository.
https://pysces.github.io
Other
34 stars 10 forks source link

PySCeS ignores non-interactive backend plotting settings and uses TkAgg instead #58

Closed jonrkarr closed 3 years ago

jonrkarr commented 3 years ago

I expected PySCeS to use the value of matplotlib_backend. However, this isn't the case for non-interactive backends. https://github.com/PySCeS/pysces/blob/94e4734824e8f0eb9cfa9489e853afd4c9a37d23/pysces/PyscesPlot2.py#L831

jonrkarr commented 3 years ago

I worked around this by setting matplotlib_backend = native and setting the environment variable MPLBACKEND=PDF (or matplotlib.rc file).