I recently downloaded python on my new computer, however when I try to plot something in matplotlib the plot doesn't show. Even the example beneath doesn't work. I am running this in spyder via anaconda.
import matplotlib.pyplot as plt
x=[1,2,3]
y=[2,3,4]
plt.plot(x,y)
plt.show()
What can I do?
EDIT: I figured it out, it was just a simple problem. If you struggle with the same, make sure you have checked off for plots when going to View - Panes - plots or press shift + cmd + G on mac.