ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 25 Nov 2014 07:41:05 -0600Is there the way to close previous plotting window when I input the second plotting command.https://ask.sagemath.org/question/24990/is-there-the-way-to-close-previous-plotting-window-when-i-input-the-second-plotting-command/ Hello.
The title is my question.
I am using SAGE in terminal of Mac OSX.
When I input the latter plotting command NEW plotting window opens.
For example,
sage: G=graphs.CompleteGraph(2)
sage: G.plot() <--------- the first window open
sage: G.add_vertex(3)
sage: G.plot() <--------- the second window open
I want to view only one plotting window.
How can I do?Tue, 25 Nov 2014 04:26:42 -0600https://ask.sagemath.org/question/24990/is-there-the-way-to-close-previous-plotting-window-when-i-input-the-second-plotting-command/Comment by kcrisman for <p>Hello. </p>
<p>The title is my question.</p>
<p>I am using SAGE in terminal of Mac OSX.</p>
<p>When I input the latter plotting command NEW plotting window opens.</p>
<p>For example,</p>
<pre><code>sage: G=graphs.CompleteGraph(2)
sage: G.plot() <--------- the first window open
sage: G.add_vertex(3)
sage: G.plot() <--------- the second window open
</code></pre>
<p>I want to view only one plotting window.</p>
<p>How can I do?</p>
https://ask.sagemath.org/question/24990/is-there-the-way-to-close-previous-plotting-window-when-i-input-the-second-plotting-command/?comment=24994#post-id-24994I don't think this is possible without changing some inner workings of how we pop up plots. For such a situation, the notebook interface is ideal.Tue, 25 Nov 2014 07:41:05 -0600https://ask.sagemath.org/question/24990/is-there-the-way-to-close-previous-plotting-window-when-i-input-the-second-plotting-command/?comment=24994#post-id-24994