Aprenda ciência de dados e programar em Python, de maneira simples!
Código fonte:
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
labels = [1, 2, 3, 4]
tempo = [1, 2, 3, 4]
resistencia = [2, 3, 5, 11]
ax.plot(tempo, resistencia, 'b-s', label = 'Teste')
for i in range(len(tempo)):
ax.text(tempo[i]-0.1, resistencia[i]+0.25, '{}' .format(resistencia[i]))
ax.set_title('Aula 3')
ax.set_xlabel('Tempo')
ax.set_ylabel('Resistência')
ax.legend()
ax.grid()
x = ['a', 'b', 'c', 'd']
plt.xticks([1, 2, 3, 4], x)
y = ['a', 'b', 'c', 'd', 'e', 'f']
plt.yticks([1, 3, 5, 7, 9, 11], y)
plt.show()
Sur cette page du site, vous pouvez voir la vidéo en ligne Eixos do Gráfico no Python (Matplotlib) - AULA 4 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Fala tu, Nerd! 30 août 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 71 fois et il a aimé 9 téléspectateurs. Bon visionnage!