Hi Group,
Thanks for all the advice, it has proved very useful (especially Michael
Orlitzky's suggestion regarding .pdf files). In case the solution is of use
to others, see below -
As an example I use a file containing code such as -
import time
for i in range(1, 11):
p=plot(sin(i*x))
p.save('*path/file_name.pdf*')
time.sleep(2)
and 'attach' it to a sage session running on a local sage server. Each
time the plot is saved it overwrites the previous version. The pdf reader
on my system (Ubuntu gnome, which seems to use 'evince' at the pdf reader)
redraws the plot when the file to be plotted changes (I do not know if all
pdf reader behave this way).
Therefore, all I need to do to get a running updated plot (without leaving
behind thousands of previous plots), is to run the code above, and open the
pdf file for viewing.
Thanks again for the assistance,
Ron
On Saturday, 24 January 2015 12:27:06 UTC, xeno 20150131 wrote:
>
> Group,
>
> Thanks for all the replies, I will try them and report back here, I they
> work.
>
> Thanks again,
>
> Ron
>
>
> On Thursday, 22 January 2015 20:48:39 UTC, Michael Orlitzky wrote:
>>
>> On 01/22/2015 07:14 AM, xeno 20150131 wrote:
>> >
>> >
>> > Hi group,
>> >
>> > A simple question (if the answer is just rtfm, just say so). I am
>> opening
>> > a plotting window (In a script that I am attaching to a notebook with
>> say –
>> >
>> > show(plot(sin(x)))
>>
>> Something like this works, but I broke my sage installation so I can't
>> test it:
>>
>> p = plot(sin(x))
>> p.save('sin.pdf')
>>
>> Other file extensions work somewhat magically if I recall.
>>
>>
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.