Sharedsupport / 2015-06-26-125459-sage-plot.ipynbOpen in CoCalc
Authors: Harald Schilly, ℏal Snyder, William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.
In [1]:
%matplotlib inline
/projects/sage/sage-6.7/local/lib/python2.7/site-packages/setuptools-12.4-py2.7.egg/pkg_resources/__init__.py:1224: UserWarning: /projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sage//.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
In [2]:
%load_ext sage
In [3]:
show(plot(sin))
Graphics object consisting of 1 graphics primitive
In [28]:
go = plot(sin)
In [32]:
plt.gcf() go.matplotlib?
<matplotlib.figure.Figure object at 0x7fe91820aa50>
In [20]:
import matplotlib.pyplot as plt plt.show()
In [9]:
plt.gcf()
In [19]:
plt.gcf()
<matplotlib.figure.Figure object at 0x7fe9183e0ad0>
<matplotlib.figure.Figure object at 0x7fe9183e0ad0>
In [7]:
plt.plot([2,3,4])
[<matplotlib.lines.Line2D object at 0x7fe91ae0cd90>]
In [ ]: