Qui posto dal tutorial, un paio si screenshots(correlato dal codice) semplici, semplici, di cosa si riesca a fare tramite una funzione pyplot() del modulo matplotlib.
import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel('some numbers')
plt.show()
1°
import numpy as np
import matplotlib.pyplot as plt
ax = plt.subplot(111)
t = np.arange(0.0, 5.0, 0.01)
s = np.cos(2*np.pi*t)
line, = plt.plot(t, s, lw=2)
plt.annotate('local max', xy=(2, 1), xytext=(3, 1.5),arrowprops=dict(facecolor='black', shrink=0.05),)
plt.ylim(-2,2)
plt.show()
2°

1°

2°
non resta che dire, più semplice di così si muore.




0 commenti:
Posta un commento