本文整理汇总了Python中pylayers.gis.layout.Layout._show3方法的典型用法代码示例。如果您正苦于以下问题:Python Layout._show3方法的具体用法?Python Layout._show3怎么用?Python Layout._show3使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pylayers.gis.layout.Layout
的用法示例。
在下文中一共展示了Layout._show3方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Simul
# 需要导入模块: from pylayers.gis.layout import Layout [as 别名]
# 或者: from pylayers.gis.layout.Layout import _show3 [as 别名]
#.........这里部分代码省略.........
self.L.display['NodeNum'] = True
self.L.display['EdgeNum'] = True
plt.axis('scaled')
#self.L.show(fig,ax,nodelist,seglist)
fig, ax = self.L.showGs(show=False)
gr.show(ax, iray, col='b', node=False)
if len(iray) == 1:
plt.title(str(nstr))
else:
plt.title('Tx' + str(itx) + '-Rx' + str(irx) +
' ' + str(min(iray)) + ' ' + str(max(iray)))
def show3l(self, itx, irx):
""" geomview display of a specific link
g = S.show3l(itx,irx)
Parameters
----------
itx
transmitter index
irx
receiver index
"""
filetra = self.dtra[itx][irx]
gr = GrRay3D()
gr.load(filetra, self.L)
gr.show3()
return(gr)
def _show3(self,rays=[],newfig = False,**kwargs):
""" display of the simulation configuration
using Mayavi
Parameters
----------
rays: Ray3d object :
display the rays of the simulation
newfig : boolean (default : False)
kwargs of Rays.show3()
see also
--------
pylayers.gis.layout
pylayers.antprop.antenna
pylayers.antprop.rays
"""
Atx = self.tx.A
Arx = self.rx.A
Ttx = self.tx.orientation
Trx = self.rx.orientation
ptx = self.tx.position
prx = self.rx.position
self.L._show3(newfig=False,opacity=0.7)
Atx._show3(T=Ttx.reshape(3,3),po=ptx,
title=False,colorbar=False,newfig=False)
Arx._show3(T=Trx.reshape(3,3),po=prx,
title=False,colorbar=False,newfig=False)