Installation Issue with matplotlib Python [duplicate]
17
10
|
This question already has an answer here:
I have issue after installing the matplotlib package unable to import matplotlib.pyplot as plt. Any suggestion will be greatly appreciate.
|
Problem Cause In mac os image rendering back end of matplotlib (what-is-a-backend to render using the API of Cocoa by default). There is Qt4Agg and GTKAgg and as a back-end is not the default. Set the back end of macosx that is differ compare with other windows or linux os.
I resolve this issue following ways:
- I assume you have installed the pip matplotlib, there is a directory in you root called
~/.matplotlib
. - Create a file
~/.matplotlib/matplotlibrc
there and add the following code:backend: TkAgg
From this link you can try different diagram.
Comments
Post a Comment