Issue
When I run the following code, plots don't show up even though I am not getting any error messages.
import matplotlib.pyplot as plt
plt.plot = ([1,2], [1,2])
plt.show()
I tried the following 1) Change Spyder->Preferences->Graphics backend = Automatic (Reset kernel) 2) import matplotlib matplotlib.use('Agg') Got error: "no effect because the backend has already been chosen"
I am using Python 3.6 with Spyder that comes with Anaconda
Solution
there is an error in your code, it must be:
import matplotlib.pyplot as plt
plt.plot([1,2], [1,2])
plt.show()
Answered By - Eduardo López
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.