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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -