python - Running a py file from cmd that contain matplotlib plot -
i trying run python file(test.py) command line in windows contain matplotlib plot. file running plot appearing fraction of second.
here content of test.py
import matplotlib.pyplot plt plt.plot(range(10))
i using following command in cmd:
ipython test.py --matplotlib
the output is
using matplotlib backend: qt4agg
the problem plot appears fraction of second
modify this:
import matplotlib.pyplot plt plt.plot(range(10)) plt.show()
and run this:
python test.py
Comments
Post a Comment