First time here? Check out the FAQ!

Ask Your Question
0

plotting in a script file

asked 13 years ago

anonymous user

Anonymous

updated 13 years ago

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"

or

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

$ sage test.sage

it isnt right.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 13 years ago

Shashank gravatar image

updated 13 years ago

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'.

Preview: (hide)
link

Comments

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 ( 13 years ago )

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 13 years ago

Seen: 750 times

Last updated: Mar 13 '12