[Matplotlib-users] errors when plotting random vectors

2009-02-19 Thread per freem
hi all, i'm trying to do something extremely simple, namely print a scatter plot of two random arrays: import matplotlib.plt as plt from numpy.random import * x = rand(1,10) scatter(x, x) this fails with the error: ValueError: Offsets array must be Nx2 what is happening here? are arrays

Re: [Matplotlib-users] errors when plotting random vectors

2009-02-19 Thread Eric Firing
per freem wrote: hi all, i'm trying to do something extremely simple, namely print a scatter plot of two random arrays: import matplotlib.plt as plt from numpy.random import * x = rand(1,10) scatter(x, x) this fails with the error: ValueError: Offsets array must be Nx2 what