python - PyCharm show graphics -
i trying have pycharm show graphics, when run script nothing appears on screen.
from pylab import *  def main():     ion()     t = arange(0.0, 2.0, 0.01)     s = sin(2*pi*t)     plot(t, s)      xlabel('time (s)')     ylabel('voltage (mv)')     title('about simple gets, folks')     grid(true)         show() i using python 2.7.6, pycharm 3.4 , windows 7 x64.
d:\python27\python.exe "d:/sletmig/python tests/pandas/chart.py"  process finished exit code 0 i new python!
add end of script:
if __name__ == "__main__":     main() 
Comments
Post a Comment