AttributeErrorTraceback (most recent call last)
/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/core/formatters.pyc in __call__(self, obj)
341 method = _safe_get_formatter_method(obj, self.print_method)
342 if method is not None:
--> 343 return method()
344 return None
345 else:
<ipython-input-11-3a5c26a1344b> in _repr_html_(self)
16
17 def _repr_html_(self):
---> 18 return _to_png(self)
<ipython-input-11-3a5c26a1344b> in _to_png(graphics)
3 def _to_png(graphics):
4 filename = os.path.join(SAGE_TMP, 'junk.png')
----> 5 graphics.save_image(filename)
6 _img = Image(filename)
7 os.remove(filename)
/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/plot/graphics.pyc in save_image(self, filename, *args, **kwds)
3062 sage: c.save_image(filename, xmin=-1, xmax=3, ymin=-1, ymax=3)
3063 """
-> 3064 self.save(filename, *args, **kwds)
3065
3066
/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/misc/decorators.pyc in wrapper(*args, **kwds)
471 kwds[self.name + "options"] = suboptions
472
--> 473 return func(*args, **kwds)
474
475 #Add the options specified by @options to the signature of the wrapped
/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/plot/graphics.pyc in save(self, filename, **kwds)
3189 rc_backup = (rcParams['ps.useafm'], rcParams['pdf.use14corefonts'],
3190 rcParams['text.usetex']) # save the rcParams
-> 3191 figure = self.matplotlib(**options)
3192 # You can output in PNG, PS, EPS, PDF, PGF, or SVG format, depending
3193 # on the file extension.
/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/plot/graphics.pyc in matplotlib(self, filename, xmin, xmax, ymin, ymax, figsize, figure, sub, axes, axes_labels, axes_labels_size, fontsize, frame, verify, aspect_ratio, gridlines, gridlinesstyle, vgridlinesstyle, hgridlinesstyle, show_legend, legend_options, axes_pad, ticks_integer, tick_formatter, ticks, title, title_pos, base, scale, typeset)
2630 old_opts = dict()
2631 for g in self._objects:
-> 2632 opts, old_opts[g] = g.options(), g.options()
2633 for k,v in opts.items():
2634 try:
AttributeError: 'Graphics' object has no attribute 'options'