On Wed, Nov 30, 2011 at 3:08 PM, stm atoc <stm.at...@googlemail.com> wrote:

> Hi there,
>
> I have a question regarding plotting with Python.
>
> <snip>
> ValueError: x and y must have same first dimension
>
>
It looks like  something is wrong with the data that you're trying to plot.
Specifically, the data that you're trying to plot has the wrong dimensions
(like it says).

An example:

# 2d space:
x = [(1, 1), (2, 2), (3,3)]
y = [(1,1,1), (2,2,2), (3,3,3)]

x is a series of points in 2 dimensions, and y is a series in 3. If your
data really is supposed to look like that then you'll need to pad or trim
the data so you've got the correct dimensions.

HTH,
Wayne
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to