I am preparing the course for next week, but:

sage: plot(sin x, (-1,1))
------------------------------------------------------------
   File "<ipython console>", line 1
     plot(sin x, (-Integer(1),Integer(1)))
              ^
SyntaxError: invalid syntax

sage: plot(sin(x), (-1,1))
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)

/home/martin/sage-3.1.1/<ipython console> in <module>()

/home/martin/sage-3.1.1/local/lib/python2.5/site-packages/IPython/Prompts.py in
__call__(self, arg)
    533
    534             # and now call a possibly user-defined print mechanism
--> 535             manipulated_val = self.display(arg)
    536
    537             # user display hooks can change the variable to be stored
in

/home/martin/sage-3.1.1/local/lib/python2.5/site-packages/IPython/Prompts.py in
_display(self, arg)
    559             return IPython.generics.result_display(arg)
    560         except TryNext:
--> 561             return self.shell.hooks.result_display(arg)
    562
    563     # Assign the default display method:

/home/martin/sage-3.1.1/local/lib/python2.5/site-packages/IPython/hooks.py in
__call__(self, *args, **kw)
    132             #print "prio",prio,"cmd",cmd #dbg
    133             try:
--> 134                 ret = cmd(*args, **kw)
    135                 return ret
    136             except ipapi.TryNext, exc:

/home/martin/sage-3.1.1/local/lib/python2.5/site-packages/IPython/hooks.py in
result_display(self, arg)
    160
    161     if self.rc.pprint:
--> 162         out = pformat(arg)
    163         if '\n' in out:
    164             # So that multi-line strings line up with the left column
of

/home/martin/sage-3.1.1/local/lib/python2.5/pprint.py in pformat(self, object)
    109     def pformat(self, object):
    110         sio = _StringIO()
--> 111         self._format(object, sio, 0, 0, {}, 0)
    112         return sio.getvalue()
    113

/home/martin/sage-3.1.1/local/lib/python2.5/pprint.py in _format(self, object,
stream, indent, allowance, context, level)
    127             self._readable = False
    128             return
--> 129         rep = self._repr(object, context, level - 1)
    130         typ = _type(object)
    131         sepLines = _len(rep) > (self._width - 1 - indent - allowance)

/home/martin/sage-3.1.1/local/lib/python2.5/pprint.py in _repr(self, object,
context, level)
    193     def _repr(self, object, context, level):
    194         repr, readable, recursive = self.format(object, context.copy(),
--> 195                                                 self._depth, level)
    196         if not readable:
    197             self._readable = False

/home/martin/sage-3.1.1/local/lib/python2.5/pprint.py in format(self, object,
context, maxlevels, level)
    205         and whether the object represents a recursive construct.
    206         """
--> 207         return _safe_repr(object, context, maxlevels, level)
    208
    209

/home/martin/sage-3.1.1/local/lib/python2.5/pprint.py in _safe_repr(object,
context, maxlevels, level)
    290         return format % _commajoin(components), readable, recursive
    291
--> 292     rep = repr(object)
    293     return rep, (rep and not rep.startswith('<')), False
    294

/home/martin/sage-3.1.1/sage_object.pyx in
sage.structure.sage_object.SageObject.__repr__
(sage/structure/sage_object.c:795)()

/home/martin/sage-3.1.1/local/lib/python2.5/site-packages/sage/plot/plot.py in
_repr_(self)
    739         """
    740         if SHOW_DEFAULT:
--> 741             self.show()
    742             return ''
    743         else:

/home/martin/sage-3.1.1/local/lib/python2.5/site-packages/sage/plot/plot.py in
show(self, xmin, xmax, ymin, ymax, figsize, filename, dpi, axes, axes_labels,
frame, fontsize, aspect_ratio, gridlines, gridlinesstyle, vgridlinesstyle,
hgridlinesstyle)
   1363                   gridlinesstyle=gridlinesstyle,
   1364                   vgridlinesstyle=vgridlinesstyle,
-> 1365                   hgridlinesstyle=hgridlinesstyle)
   1366         os.system('%s %s 2>/dev/null 1>/dev/null
&'%(sage.misc.viewer.browser(), filename))
   1367

/home/martin/sage-3.1.1/local/lib/python2.5/site-packages/sage/plot/plot.py in
save(self, filename, xmin, xmax, ymin, ymax, figsize, figure, sub, savenow,
dpi, axes, axes_labels, fontsize, frame, verify, aspect_ratio, gridlines,
gridlinesstyle, vgridlinesstyle, hgridlinesstyle)
   1514             if isinstance(g, GraphicPrimitive_MatrixPlot):
   1515                 matrixplot = True
-> 1516             g._render_on_subplot(subplot)
   1517
   1518         #adjust the xy limits and draw the axes:

/home/martin/sage-3.1.1/local/lib/python2.5/site-packages/sage/plot/plot.py in
_render_on_subplot(self, subplot)
   2064         del options['thickness']
   2065         del options['rgbcolor']
-> 2066         p = patches.lines.Line2D(self.xdata, self.ydata, **options)
   2067         options = self.options()
   2068         a = float(options['alpha'])

AttributeError: 'module' object has no attribute 'lines'


What am I doing wrong?

(I won't have *fast* internet connection until monday next week)

Martin


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to