I am getting this error:
/sw/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py:235: UserWarning: Python is not installed as a framework. The MacOSX backend may not work correctly if Python is not installed as a framework. Please see the Python documentation for more information on installing Python as a framework on Mac OS X
I installed python27 using fink and it's using the default matplotlib is using macosx framework.
Dependencies. Matplotlib requires the following dependencies: Python (>= 3.6) NumPy (>= 1.15)
Some users may not want to change the backend for all of their scripts. This page -- http://matplotlib.org/faq/usage_faq.html#what-is-a-backend -- tells another way:
import matplotlib matplotlib.use('TkAgg')
You have to do this before importing a subpackage of matplotlib
or a third-party package that depends on matplotlib
.
Optionally you could use the Agg
backend which requires no extra installation of anything. Just put backend : Agg
into ~/.matplotlib/matplotlibrc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With