tvaLib
Public Member Functions | List of all members
lib.vis.trajSample Class Reference

Trajectory. More...

Inheritance diagram for lib.vis.trajSample:
lib.vis.overheadPlot lib.vis.basicPlot

Public Member Functions

def __init__ (self, objects, fig_name='Sample Trajectory', kwargs)
 
def addTraj (self, objects, traj_colour='b', linestyle='-', markerstyle='o', linewidth=2, kwargs)
 
- Public Member Functions inherited from lib.vis.overheadPlot
def __init__ (self, alignments=None, bounding_box=None, xy_bounds=None, sateliteImage=None, sateliteResolution=None, draw_connectors=True, kwargs)
 
def setAxes (self)
 
- Public Member Functions inherited from lib.vis.basicPlot
def __init__ (self, fig_rows=1, fig_columns=1, local=None, sharex=False, sharey=False, fig_name='Basic Figure', verbose=0, figsize=[15.0, kwargs)
 
def setAxes (self, x_lavbel=['x'], y_lavbel=['y'])
 
def compileFigure (self)
 
def get (self)
 

Additional Inherited Members

- Public Attributes inherited from lib.vis.overheadPlot
 xy_bounds
 
 alignments
 
 bounding_box
 
- Public Attributes inherited from lib.vis.basicPlot
 local
 
 verbose
 
 axes
 

Detailed Description

Trajectory.

Definition at line 708 of file vis.py.

Constructor & Destructor Documentation

◆ __init__()

def lib.vis.trajSample.__init__ (   self,
  objects,
  fig_name = 'Sample Trajectory',
  kwargs 
)
Plot individual trajectories highlighting individual frame stops. 

Definition at line 709 of file vis.py.

709  def __init__(self, objects, fig_name='Sample Trajectory', **kwargs):
710  ''' Plot individual trajectories highlighting individual frame stops. '''
711  overheadPlot.__init__(self, fig_name=fig_name, **kwargs)
712  self.addTraj(objects, **kwargs)
713 

Member Function Documentation

◆ addTraj()

def lib.vis.trajSample.addTraj (   self,
  objects,
  traj_colour = 'b',
  linestyle = '-',
  markerstyle = 'o',
  linewidth = 2,
  kwargs 
)

Definition at line 714 of file vis.py.

714  def addTraj(self, objects, traj_colour='b', linestyle='-', markerstyle='o', linewidth=2, **kwargs):
715  if(type(objects) is not list): objects = [objects]
716  for obj in objects:
717  if(traj_colour == 'random'): traj_colour_actual = random(),random(),random()
718  else: traj_colour_actual = traj_colour
719  self.axes.plot(obj.getXCoordinates(), obj.getYCoordinates(), color=traj_colour_actual, linestyle=linestyle, marker=markerstyle, linewidth=linewidth)
720 
721 
722 

The documentation for this class was generated from the following file: