Estou com dificuldade no Matplotlib, ao usar o código abaixo.
''' import matplotlib.pyplot as plt
x = list(range(1, 9)) y = notas_matematica
plt.plot(x, y)
'''
Aparece a mensagem de erro:
'''
ValueError Traceback (most recent call last) in 4 y = notas_matematica 5 ----> 6 plt.plot(x, y)
3 frames /usr/local/lib/python3.8/dist-packages/matplotlib/axes/base.py in _plotargs(self, tup, kwargs) 340 341 if x.shape[0] != y.shape[0]: --> 342 raise ValueError(f"x and y must have same first dimension, but " 343 f"have shapes {x.shape} and {y.shape}") 344 if x.ndim > 2 or y.ndim > 2:
ValueError: x and y must have same first dimension, but have shapes (8,) and (16, 1)
'''
Alguém pode me ajudar?