Sahifa 1 sahifa


Shakl 16.13 - Boshlang'ich model


Download 341.46 Kb.
bet234/240
Sana02.01.2022
Hajmi341.46 Kb.
#189729
1   ...   230   231   232   233   234   235   236   237   ...   240
Bog'liq
Python. Ma'lumotlarni vizuallashtirish - 2020 yil

Shakl 16.13 - Boshlang'ich model

394




396-bet

Bunday holda, biz faqat vektorlarning yo'nalishlarini ko'ramiz. Qo'shaylik

vektor uzunligini hisoblash:

src = mlab.pipeline.vector_scatter (u, v, w)

normalar = mlab.pipeline.extract_vector_norm (src)

mlab.pipeline.glyph (normalar, rejim = "2darrow" )

mlab.show ()



16.14-rasm - ExtractVectorNorm filtrini namoyish etish

ExtractVectorComponentlari

Vektorlarning tarkibiy qismlarini oladi:



Y- komponentlarini uzatilgan vektorlardan ajratib oling :

x, y, z = np.mgrid [ 0 : 3 , 0 : 3 , 0 : 3 ]

u = x * x

v = y


w = z

src = mlab.pipeline.vector_scatter (u, v, w)

comps = mlab.pipeline.extract_vector_components (src)

comps.component = 'y-komponent'

mlab.pipeline.glyph (komps, mode = "2darrow" )

mlab.show ()

395



397-bet


Download 341.46 Kb.

Do'stlaringiz bilan baham:
1   ...   230   231   232   233   234   235   236   237   ...   240




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