Studi Kasus Python, Visualisasi Data Dengan Matplotlib

Studi Kasus:

Buatlah contoh simple data visualization dengan python library matplotlib

Code:

nimport matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4], [10, 20, 25, 30], color='lightblue', linewidth=3)
plt.scatter([0.3, 3.8, 1.2, 2.5], [11, 25, 9, 26], color='darkgreen', marker='^')
plt.xlim(0.5, 4.5)
plt.show()

Result:

result matplotlib