johannesring / scitools

Automatically exported from code.google.com/p/scitools
Other
0 stars 0 forks source link

problem with plot3 #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

from scitools.std import *
t=linspace(0,10*pi,100)
x=sin(t)
y=cos(t)
z=t
plot3(x,y,z)

or

t = linspace(0,10*pi,301)
plot3(sin(t), cos(t), t, title='A helix', grid='on')

What is the expected output? What do you see instead?
expected a plot, got:
Tracheback (most recent call last):
File"<stdin>", line1 in module>
file "/usr/lib/python2.7/site-packages/scitools/easyviz/common.py", line 3307, 
in plot3 format=' '))
file "/usr/lib/python2.7/site-packages/scitools/easyviz/common.py", line 380, 
in __init__ self.setp(**kwargs)
file "/usr/lib/python2.7/site-packages/scitools/easyviz/common.py", line 409, 
in stp "y is %s" % type(kwargs['y']))
TypeError: Can only plot sequence types, y is <type 'numpy.ndarray'>

What version of the product are you using? On what operating system?
installed scitools from hg clone 
https://hpl%40simula.no@code.google.com/p/scitools/
last week, so it should be up-to-date.
Using Linux

Please provide any additional information below.

Original issue reported on code.google.com by Maximili...@gmail.com on 18 Feb 2015 at 9:37

GoogleCodeExporter commented 9 years ago

Original comment by johannes...@gmail.com on 24 Feb 2015 at 8:03