質問: self._xy_from_xy(x, y) File "/anaconda3/lib/python3.6/site-packages/matplotlib/axes/_base.py", line 242, in _xy_from_xy "have shapes {} and {}".format(x.shape, y.shape)) ValueError: x and y must have same first dimension, but have shapes (34419,) and (1,)
回答: y = pyplot.figure("input") ここを y = data こうするといかがでしょう?