Matplotlib Pyplot
Pyplot
Matplotlib utilities အများစုသည် submodule အောက်တွင် ရှိပြီး အများအားဖြင့် alias pyplot
အောက်တွင် တင်သွင်းကြသည် -plt
import matplotlib.pyplot as plt
ယခု Pyplot အထုပ်ကို plt
.
ဥပမာ
အနေအထား (0,0) မှ အနေအထား (6,250) သို့ ပုံတွင်မျဉ်းတစ်ကြောင်းဆွဲပါ-
import matplotlib.pyplot as plt
import numpy as np
xpoints = np.array([0, 6])
ypoints = np.array([0, 250])
plt.plot(xpoints,
ypoints)
plt.show()
ရလဒ်:
နောက်အခန်းများတွင် ပုံဆွဲခြင်း (plotting) အကြောင်း ပိုမိုလေ့လာနိုင်ပါမည်။