plotting in a script file

i like this post (click again to cancel)
0
i dont like this post (click again to cancel)

I have install sage in my computer and i have started testing sage examples. I dont understand sth. for example

sage: v = [(1,10),(2,20)]
sage: line(v)

it runs in shell and I can look plot screen. I try below codes

sage: load "test.sage"

or

But instead of Interactive Shell, when I try to run the file "test.sage", on terminal :

$ sage test.sage

it isnt right.

asked Mar 12 '12

bhdrymn gravatar image bhdrymn
1

updated Mar 12 '12

Shashank gravatar image Shashank flag of United States
1570 5 22 55
i like this answer (click again to cancel)
1
i dont like this answer (click again to cancel)

If you have the following content in test.sage

v = [(1,10),(2,20)]
p1=line(v)
p1.show()

and you run the command

$sage test.sage

Then it works. Notice the additional line involving 'show'.

link

posted Mar 12 '12

Shashank gravatar image Shashank flag of United States
1570 5 22 55

updated Mar 12 '12

thanks for answer, this is running but I want to look graph in screen as permant. scrip runs, later tmp_0.png can be shown and closed immediately. I use fedora 14.

bhdrymn (Mar 13 '12)

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Tags:

Stats:

Asked: Mar 12 '12

Seen: 66 times

Last updated: Mar 12 '12

powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.