matplotlib - IPython: save inline graphics to a file? -


now question has been asked , answered numerous times before, i've tried answers (except, seem, correct one), no success. i'm running ipython inline graphics, having used command

ipython qtconsole --matplotlib inline&  

within linux (ubuntu 14.04) start it. , want save graphics file. example:

import numpy np import matplotlib.pyplot plt x = np.arange(0,2*np.pi,0.1) plt.plot(x,np.sin(x)) plt.savefig('myplot.png') 

however, file generated empty. i've tried entering

plt.ioff() 

but has no effect: plot displayed inline anyway. i'm not quite sure whether issue python, ipython, matplotlib, qt, or else...

i can non-inline graphics; if start with

ipython qtconsole --matplotlib qt& 

but inline graphics. possible save inline graphics in ipython?

you can save ipython notebook html menu, saves pictures separately you:

file -> download -> html


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -