In notebook on sagemath.org, the strange behavior reported at the end
of this post occurs with parametric plots.  It isn't clear to me
whether this is some mistake of mine in trying to plot complex
parametric curves, or a bug in plot related to previous subscripting
issues.  Using C(pi/5,r) instead of C(pi/5) produced the same
results.  I hope this is useful.

By the way, if there is any better way to do complex parametric plots
I would appreciate hearing about it; somehow I feel like there must be
a way for plot to recognize complex points, but experimentation and
perusing the docs/code make me feel that it's only reals for now.  On
a related note, check out the results of
sage: plot((0,1))  (or plot([0,1]) , but not plot(0,1) )
and
sage: plot(25)
- very interesting, which somehow I find a feature, not a bug, but of
course a hard feature to use effectively!   I get the same thing with
sage: text(0,(-1,1))+text(1,(-1,1))
and
text(25,(0,0))
of course.

- kcrisman

sage: var('z,t,r')
(z, t, r)
sage: a=1+i
sage: C(theta,r)=r*exp(i*theta)
sage: P=parametric_plot( (real(a*C(pi/5)),imag(a*C(pi/5)) ), 0, 5);
show(P) [This shows up fine.]
sage: Q=parametric_plot( (real(a*C(pi/4)),imag(a*C(pi/4)) ), 0, 5);
show(Q)
verbose 0 (3576: plot.py, _call) WARNING: When plotting, failed to
evaluate function at 200 points.
verbose 0 (3576: plot.py, _call) Last error message: 'the number of
arguments must be less than or equal to 0'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/server2/sage_notebook/worksheets/kcrisman/5/code/5.py",
line 6, in <module>
    exec compile(ur'Q=parametric_plot( (real(a*C(pi/
Integer(4))),imag(a*C(pi/Integer(4))) ), Integer(0), Integer(5));
show(Q)' + '\n', '', 'single')
  File "/usr/local/sage/local/lib/python2.5/site-packages/sympy/
plotting/", line 1, in <module>

  File "/usr/local/sage/local/lib/python2.5/site-packages/sage/plot/
plot.py", line 3773, in parametric_plot
    return plot(funcs, tmin, tmax, parametric=True,
**kwargs)
  File "/usr/local/sage/local/lib/python2.5/site-packages/sage/plot/
plot.py", line 3569, in __call__
    G = self._call(funcs, (xmin, xmax), *args, **kwds)
  File "/usr/local/sage/local/lib/python2.5/site-packages/sage/plot/
plot.py", line 3668, in _call
    G = line(data, coerce=False, **options)
  File "/usr/local/sage/local/lib/python2.5/site-packages/sage/plot/
plot.py", line 2680, in __call__
    isinstance(points[0], (list,tuple))):
IndexError: list index out of range

--~--~---------~--~----~------------~-------~--~----~
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