saving . . . saved Ipython has been deleted. Ipython has been hidden .
IN Your tutorial 1-3,and  about saving plot like /home/fossee/file_name.png .but if i do same way not get same result . and in 2-1 tutorial it is given for prime no as/cat/home/fossee/primes.txt ,if apply same command on editor like  ipython QTC not working

Python Saving-plots 01-02 min 10-20 sec 18-02-14, 1:20 p.m. Manishakumari


Hi Manisha,

Can you please let me know the errors you are getting when you try to execute the same commands ?
Also, please make sure are specifying the proper paths when you try to save the plot or when you are trying to open the file.

The paths we have used in the tutorial for saving the plot & to open the primes.txt file are just for illustration (you have to give relative paths to your directory).
18-02-14, 2:43 p.m. hardythe1

1) i have put my ipython folder in' H ' drive and installed anacond ,and during the drawaing plot like "plot(x,cos(x))" only blank white screen page  of figure is coming ,as well as during saving , i applied like  savefig('h/file_name.png') .but it gives error like "no such file or directory: ' h/sin.png' " is coming .

2) in video 2-1 when i used /cat/home/fossee/primes.txt or /cat/h/primes.txt ,it gives error like invalid syntax.

so please tell me what is problem.
18-02-14, 6:24 p.m. Manishakumari

1. before plotting you have to define the points first as shown in the tutorial. So, the steps would be:
    -->    start ipython by typing ipython -pylab
    -->    x = linspace(-3*pi, 3*pi, 100)
    -->    plot(x, cos(x))
    -->    savefig('h:\cos.png')
    this should definitely work.

2. To open a file you have to type:
     -->    cat <full path of the directory where the file is>
     so if it is in your h drive then
     -->    cat h:\primes.txt

19-02-14, 12:20 p.m. hardythe1

Thanks Sir
20-02-14, 5:53 p.m. Manishakumari

Log-in to answer to this question.