Ask Your Question

plotting in a script file

asked 2012-03-12 18:52:44 +0200

anonymous user


updated 2012-03-12 19:01:40 +0200

Shashank gravatar image

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"


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

$ sage test.sage

it isnt right.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-03-12 19:03:11 +0200

Shashank gravatar image

updated 2012-03-13 00:25:01 +0200

If you have the following content in test.sage

v = [(1,10),(2,20)]

and you run the command

$sage test.sage

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

edit flag offensive delete link more


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 gravatar imagebhdrymn ( 2012-03-13 15:45:34 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-03-12 18:52:44 +0200

Seen: 620 times

Last updated: Mar 13 '12