matplotlib.pyplot nedir code example
Example 1: pyplot python
import numpy as np
import matplotlib.pyplot as plt
x = np.array([1, 3, 4, 6])
y = np.array([2, 3, 5, 1])
plt.plot(x, y)
plt.show()
Example 2: matplotlib.pyplot
plt.plot([1, 2, 3, 4], [1, 4, 9, 16]) # plot x against y