Seaborn တွင် ပုံမှန်ဖြန့်ဝေနည်း (ဥပမာများဖြင့်)
Python ရှိ Seaborn data visualization library ဖြင့် ပုံမှန်ဖြန့်ဝေမှုကို ပုံဖော်ရန် အောက်ပါနည်းလမ်းများကို သင်အသုံးပြုနိုင်ပါသည်။
နည်းလမ်း 1- ပုံမှန်ဖြန့်ချီရေး histogram ကို ရေးဆွဲပါ။
sns. displot (x)
နည်းလမ်း 2- ပုံမှန်ဖြန့်ဖြူးမျဉ်းကွေးကို ဆွဲပါ။
sns. displot (x, kind=' kde ')
နည်းလမ်း 3- မျဉ်းကွေးတစ်ခုဖြင့် ပုံမှန်ဖြန့်ဝေသည့် ဟီစတိုဂရမ်ကို ဆွဲပါ။
sns. displot (x,kde= True )
အောက်ဖော်ပြပါ ဥပမာများသည် နည်းလမ်းတစ်ခုစီကို လက်တွေ့အသုံးချနည်းကို ပြသထားသည်။
ဥပမာ 1- ပုံမှန်ဖြန့်ဝေမှု Histogram တစ်ခုဆွဲခြင်း။
အောက်ဖော်ပြပါ ကုဒ်သည် Seaborn တွင် ပုံမှန်ဖြန့်ဖြူးရေး ဟီစတိုဂရမ်ကို မည်သို့ဆွဲရမည်ကို ပြသသည်-
import numpy as np import seaborn as sns #make this example reproducible n.p. random . seeds (0) #create data x = np. random . normal (size=1000) #create normal distribution histogram sns. displot (x)

ဥပမာ 2- ပုံမှန်ဖြန့်ဝေမှုမျဉ်းကြောင်းဆွဲခြင်း။
အောက်ဖော်ပြပါ ကုဒ်သည် Seaborn တွင် ပုံမှန်ဖြန့်ဝေမှုမျဉ်းကွေးကို မည်သို့ဆွဲမည်ကို ပြသသည်-
import numpy as np import seaborn as sns #make this example reproducible n.p. random . seeds (0) #createdata x = np. random . normal (size=1000) #create normal distribution curve sns. displot (x, kind=' kde ')

ဥပမာ 3- မျဉ်းကွေးဖြင့် ပုံမှန်ဖြန့်ဝေမှု ဟစ်စတိုဂရမ်ကို ဆွဲခြင်း။
အောက်ဖော်ပြပါ ကုဒ်သည် Seaborn မျဉ်းကွေးဖြင့် ပုံမှန်ဖြန့်ဖြူးရေး ဟီစတိုဂရမ်ကို မည်သို့ဆွဲရမည်ကို ပြသသည်-
import numpy as np import seaborn as sns #make this example reproducible n.p. random . seeds (0) #create data x = np. random . normal (size=1000) #create normal distribution curve sns. displot (x,kde= True )

ထပ်လောင်းအရင်းအမြစ်များ
အောက်ဖော်ပြပါ သင်ခန်းစာများသည် Seaborn တွင် အခြားသော ဘုံလုပ်ဆောင်ချက်များကို မည်သို့လုပ်ဆောင်ရမည်ကို ရှင်းပြသည်-
ပုံတစ်ပုံတည်းတွင် များစွာသော Seaborn Plots များကို ဖန်တီးနည်း
Seaborn တွင် Area Chart ဖန်တီးနည်း
Seaborn တွင် Pie Chart ဖန်တီးနည်း