Sharedsupport / 2015-06-26-125459-sage-plot.ipynbOpen in CoCalc
Examples for support purposes...
%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).
%load_ext sage
show(plot(sin))
Graphics object consisting of 1 graphics primitive
go = plot(sin)
plt.gcf()
go.matplotlib?
<matplotlib.figure.Figure object at 0x7fe91820aa50>
import matplotlib.pyplot as plt
plt.show()
plt.gcf()
plt.gcf()
<matplotlib.figure.Figure object at 0x7fe9183e0ad0>
<matplotlib.figure.Figure object at 0x7fe9183e0ad0>
plt.plot([2,3,4])
[<matplotlib.lines.Line2D object at 0x7fe91ae0cd90>]