ASKSAGE: Sage Q&A Forum - Latest question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 25 Nov 2014 04:26:42 -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?SeminTue, 25 Nov 2014 04:26:42 -0600https://ask.sagemath.org/question/24990/matplotlib x11 windowhttps://ask.sagemath.org/question/10061/matplotlib-x11-window/In both Ipython and Python terminals I can type in the following
import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel('some numbers')
plt.show()
and a nice x11 figure will pop up (example figure is shown at http://matplotlib.org/users/pyplot_tutorial.html). In sage, the plt.show() statement just does nothing. Is there any way to make this work in sage? It is kindof neat at times that sage plotting functions just dump an image file and then launches an image viewer, but I need more primitive access to matplotlib sometimes and I also need to be able to interact with the figure sometimes. Why doesn't this work in the sage terminal?kjlvcxzoiperwqWed, 24 Apr 2013 07:28:01 -0500https://ask.sagemath.org/question/10061/