Shakl 16.13 - Boshlang'ich model
394
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
Do'stlaringiz bilan baham: |