Sahifa 1 sahifa


-rasm - PairGrid klassi bilan ishlashni namoyish etish


Download 341.46 Kb.
bet181/240
Sana02.01.2022
Hajmi341.46 Kb.
#189729
1   ...   177   178   179   180   181   182   183   184   ...   240
Bog'liq
Python. Ma'lumotlarni vizuallashtirish - 2020 yil

12.19-rasm - PairGrid klassi bilan ishlashni namoyish etish

303




Sahifa 305

Keling, kelib chiqishiga qarab ajratishni qo'shaylik :

pg = sns.PairGrid (mpg_mod, hue = 'origin' )

pg.map (plt.scatter)

Shakl 12.20 - Hue class parametri bilan ishlashni namoyish etish

PairGrid

O'rnatish uchun map_diag () va map_offdiag () funktsiyalaridan foydalanamiz

asosiy diagonal va uning tashqarisidagi diagrammalar turlari:

pg = sns.PairGrid (mpg_mod)

pg.map_diag (sns.kdeplot)

pg.map_offdiag (plt.scatter)

304



Sahifa 306

12.21-rasm - map_diag () va funktsiyalari bilan ishlashni namoyish etish

map_offdiag () PairGrid sinfining

Map_diag (), map_lower () va map_upper () bilan ishlash variantlari:

pg = sns.PairGrid (mpg_mod)

pg.map_diag (plt.hist)

pg.map_lower (plt.scatter)

pg.map_upper (sns.kdeplot)

305



307-bet


Download 341.46 Kb.

Do'stlaringiz bilan baham:
1   ...   177   178   179   180   181   182   183   184   ...   240




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling