I've recently started using sublimetext 3, the plt.show() function doesn't seem to work when run within sublimetext.
I have create the following script:
import matplotlib.pyplot as plt
year = [1950, 1970, 1990, 2010]
pop = [2.519, 3.692, 5.263, 6.972]
plt.plot(year, pop)
plt.show()
Running this with IDLE generates a plot, however using sublimetext no output is generated.
I use the following build system
{
"cmd": ["/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"shell": true
}
If someone can please tell me what i am doing wrong, because i don't see any build errors but i still don't see any graph.
If someone could please help in this regard - Thanks