---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-3-7cf5be15799e> in <module>()
1 for i in range(0,5):
----> 2 graficar('prueba.csv', i)
<ipython-input-2-b6bc6c993c05> in graficar(filename, imu)
42 plt.ylabel("Aceleracion ($m/s^2$)")
43 plt.figure()
---> 44 plt.plot(t, gx, t, gy, t, gz)
45 plt.title("Giroscopio, IMU: " + str(imu))
46 plt.legend(['X', 'Y', 'Z'])
/usr/lib/pymodules/python2.7/matplotlib/pyplot.pyc in plot(*args, **kwargs)
2985 ax.hold(hold)
2986 try:
-> 2987 ret = ax.plot(*args, **kwargs)
2988 draw_if_interactive()
2989 finally:
/usr/lib/pymodules/python2.7/matplotlib/axes.pyc in plot(self, *args, **kwargs)
4135 lines = []
4136
-> 4137 for line in self._get_lines(*args, **kwargs):
4138 self.add_line(line)
4139 lines.append(line)
/usr/lib/pymodules/python2.7/matplotlib/axes.pyc in _grab_next_args(self, *args, **kwargs)
315 return
316 if len(remaining) <= 3:
--> 317 for seg in self._plot_args(remaining, kwargs):
318 yield seg
319 return
/usr/lib/pymodules/python2.7/matplotlib/axes.pyc in _plot_args(self, tup, kwargs)
293 x = np.arange(y.shape[0], dtype=float)
294
--> 295 x, y = self._xy_from_xy(x, y)
296
297 if self.command == 'plot':
/usr/lib/pymodules/python2.7/matplotlib/axes.pyc in _xy_from_xy(self, x, y)
235 y = np.atleast_1d(y)
236 if x.shape[0] != y.shape[0]:
--> 237 raise ValueError("x and y must have same first dimension")
238 if x.ndim > 2 or y.ndim > 2:
239 raise ValueError("x and y can be no greater than 2-D")
ValueError: x and y must have same first dimension