Como arrumar a visualização no eixo y?
import matplotlib.pyplot as plt
with open("text.txt") as f:
data=f.read()
data=data.split('\n')
x=[row.split(' ')[0] for row in data]
y=[row.split(' ')[1] for row in data]
plt.plot(x,y)
plt.show()
text.txt
1 2
2 4
3 1
text.txt
?