> 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)))
>
> is within a loop.  I wish to replace the plot each time the loop is 
> transversed.  So need to close the plot (otherwise I would end up with 
> thousands of plots).  I understand that the default plotting system in 
> sage is matplotlib, which closes a plot with the function “close()”.  
> However, 
> I have tried many variations of close, plot and show, but nothing seems to 
> close the plot.  I get a variety of error messages, that basically boils 
> down to, close() is not a valid option.  Apologies as I am sure the 
> solution must be very simple.
>

I'm not sure this is supported, because although we use matplotlib to plot, 
the *output* is not a mpl plotting window, but a .png graphics file which 
is not updated.  You might be able to get an mpl plotting thing if you use 
it directly, though; I haven't tried.  With the R plotting window that 
appears in the command line I believe this does work (as standard), and of 
course you could use the IPython notebook and this might work there.

-- 
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 sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to