Re: [sage-support] Displaying graphics from a Sage script

2017-01-13 Thread Michael Orlitzky
On 01/13/2017 06:50 PM, John H Palmieri wrote: > This question comes from > http://stackoverflow.com/questions/41638257/graphics-in-sage-script: if I > have a file "foo.sage" and I want to run "sage foo.sage" and have it pop up > a window displaying a plot, how do I do this? > > For example,

Re: [sage-support] Displaying graphics from a Sage script

2017-01-13 Thread William Stein
On Fri, Jan 13, 2017 at 5:23 PM, John H Palmieri wrote: [...] >> >> I fixed this by adding "sleep(1)" at the end of the file. > > > Also, I should add that %load doesn't work for me. I don't know what it's > supposed to do. I used %attach instead. That's strange and

Re: [sage-support] Displaying graphics from a Sage script

2017-01-13 Thread John H Palmieri
On Friday, January 13, 2017 at 4:12:44 PM UTC-8, John H Palmieri wrote: > > > > On Friday, January 13, 2017 at 4:05:59 PM UTC-8, John H Palmieri wrote: >> >> >> >> On Friday, January 13, 2017 at 3:55:24 PM UTC-8, William wrote: >>> >>> On Fri, Jan 13, 2017 at 3:50 PM, John H Palmieri

Re: [sage-support] Displaying graphics from a Sage script

2017-01-13 Thread John H Palmieri
On Friday, January 13, 2017 at 4:05:59 PM UTC-8, John H Palmieri wrote: > > > > On Friday, January 13, 2017 at 3:55:24 PM UTC-8, William wrote: >> >> On Fri, Jan 13, 2017 at 3:50 PM, John H Palmieri >> wrote: >> > This question comes from >> >

Re: [sage-support] Displaying graphics from a Sage script

2017-01-13 Thread John H Palmieri
On Friday, January 13, 2017 at 3:55:24 PM UTC-8, William wrote: > > On Fri, Jan 13, 2017 at 3:50 PM, John H Palmieri > wrote: > > This question comes from > > http://stackoverflow.com/questions/41638257/graphics-in-sage-script: if > I > > have a file "foo.sage" and I

Re: [sage-support] Displaying graphics from a Sage script

2017-01-13 Thread William Stein
On Fri, Jan 13, 2017 at 3:50 PM, John H Palmieri wrote: > This question comes from > http://stackoverflow.com/questions/41638257/graphics-in-sage-script: if I > have a file "foo.sage" and I want to run "sage foo.sage" and have it pop up > a window displaying a plot, how do

[sage-support] Displaying graphics from a Sage script

2017-01-13 Thread John H Palmieri
This question comes from http://stackoverflow.com/questions/41638257/graphics-in-sage-script: if I have a file "foo.sage" and I want to run "sage foo.sage" and have it pop up a window displaying a plot, how do I do this? For example, if foo.sage contains P = plot(sin(x)) P.show()