Python SimViz Example

说明

python simviz示例是从最受好评的开源项目中提取的实现代码,你可以参考下面示例的使用方式。

编程语言: Python

命名空间/包名称: osmvizanimation

示例#1
文件: visualizer.py项目: cbick/gps2gtfs

 def __init__(self,bt1,bt2,color,width=3,
              drawing_order = 5):
   SimViz.__init__(self,drawing_order)
   self.bt1 = bt1;
   self.bt2 = bt2;
   self.color = color;
   self.width=width

示例#2
文件: visualizer.py项目: cbick/gps2gtfs

 def __init__(self,location,label,color,width=5,
              drawing_order=0):
   SimViz.__init__(self,drawing_order)
   self.label = label;
   self.loc = location;
   self.color = color;
   self.width = width

示例#3
文件: visualizer.py项目: cbick/gps2gtfs

 def __init__(self,matchup,color,width=3,diameter=20,duration=10,
              drawing_order=10):
   """matchup should be a GPSBusSchedule object"""
   SimViz.__init__(self,drawing_order)
   self.matchup = matchup
   self.color = color
   self.width = width
   self.duration = duration
   self.diam = diameter
   self.xys = []

示例#4
文件: custom_animations.py项目: amou269/heatmap

 def __init__(self, getLocAtTime1, getLocAtTime2, 
              linecolor=red, linewidth=3,
              drawingOrder=0):
   """
   getLocAtTime 1 and 2 represent the location of the 1st and 2nd
   endpoint of this lasso, respectively. They should take a single 
   argument (time) and return the (lat,lon) of that endpoint.
   """
   SimViz.__init__(self, drawingOrder);
   self.xy1 = None
   self.xy2 = None
   self.linecolor = linecolor
   self.linewidth = linewidth
   self.getLoc1 = getLocAtTime1
   self.getLoc2 = getLocAtTime2

展开阅读全文