~$ pip install numpy --break-system-packages |
Arquivo: grafico1.py |
import matplotlib.pyplot as plt import numpy as np x = np.array([1, 2, 3, 4, 5]) y = np.array([1, 2, 3, 4, 5]) plt.scatter(x, y, color = 'hotpink') plt.savefig("grafico.png", dpi=150) |
Arquivo: grafico2.py |
import matplotlib.pyplot as plt x = np.array([1, 2, 3, 4, 5]) |
Arquivo: grafico3.py |
import matplotlib.pyplot as plt x = np.array([1, 2, 3, 4, 5]) |
Arquivo: grafico4.py |
import matplotlib.pyplot as plt x = np.array(["A", "B", "C", "D"]) |
Arquivo: grafico5.py |
import matplotlib.pyplot as plt y = np.array([35, 25, 25, 15]) |
Arquivo: grafico6.py |
import matplotlib.pyplot as plt x1 = np.array([0, 1, 2, 3]) |
Arquivo: grafico7.py |
import matplotlib.pyplot as plt plt.plot(x1, x1**2) |
Arquivo: grafico8.py |
import matplotlib.pyplot as plt plt.plot(x1, -x1**3+4) |