tvaLib
Public Member Functions | Public Attributes | List of all members
lib.vis.overheadPlot Class Reference
Inheritance diagram for lib.vis.overheadPlot:
lib.vis.basicPlot lib.vis.trajSample lib.vis.visualiseOD

Public Member Functions

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)
 

Public Attributes

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

Detailed Description

Definition at line 678 of file vis.py.

Constructor & Destructor Documentation

◆ __init__()

def lib.vis.overheadPlot.__init__ (   self,
  alignments = None,
  bounding_box = None,
  xy_bounds = None,
  sateliteImage = None,
  sateliteResolution = None,
  draw_connectors = True,
  kwargs 
)

Definition at line 679 of file vis.py.

679  def __init__(self, alignments=None, bounding_box=None, xy_bounds=None, sateliteImage=None, sateliteResolution=None, draw_connectors=True, **kwargs):
680  basicPlot.__init__(self, **kwargs)
681  self.xy_bounds = xy_bounds
682  self.alignments = alignments
683  self.bounding_box=None,
684 
685  if(plotSatellite(sateliteImage, sateliteResolution, color=True)):
686  self.fig.forceDPI = 150
687  self.fig.forceFormat = 'jpg'
688  draw_connectors = False #Disable for satellite images or else image is too busy
689  plotBB(bounding_box)
690  plotAlign(alignments, draw_connectors=draw_connectors)
691 
692 
def plotBB(bounding_boxes, labels=False, legacyLabels=False, boxLabel=None, outlineOnly=False, alpha=1.00, zorder=1, zone_bgcolour='0.66', plotSettings=None, kwargs)
Definition: vis.py:422
def plotAlign(alignments, custom_colours=None, draw_connectors=True, draw_corridors=True, labels=False, legacyLabels=False, distanceBetweenLabels=20.0, highContrastLabels=False, lineAlpha=1.0, annotateAlpha=0.2, corridorAlpha=0.5, zorder=20, plotSettings=None)
Definition: vis.py:477
def plotSatellite(sateliteImage, sateliteResolution, color=False, zorder=0, origin=[0, zoomTo=False)
Definition: vis.py:551

Member Function Documentation

◆ setAxes()

def lib.vis.overheadPlot.setAxes (   self)

Definition at line 693 of file vis.py.

693  def setAxes(self):
694  self.axes.set_xlabel(self.local['vis_gen_x_coords_m'])
695  self.axes.set_ylabel(self.local['vis_gen_y_coords_m'])
696  self.axes.set_aspect('equal')
697  if(self.xy_bounds):
698  self.axes.set_xlim([self.xy_bounds[0].lower,self.xy_bounds[0].upper])
699  self.axes.set_ylim([self.xy_bounds[1].lower,self.xy_bounds[1].upper])
700  self.axes.set_ylim(self.axes.get_ylim()[::-1]) #Reversal is done here, in case xy_bounds is not set
701 
702 
703 
704 

Member Data Documentation

◆ alignments

lib.vis.overheadPlot.alignments

Definition at line 682 of file vis.py.

◆ bounding_box

lib.vis.overheadPlot.bounding_box

Definition at line 683 of file vis.py.

◆ xy_bounds

lib.vis.overheadPlot.xy_bounds

Definition at line 681 of file vis.py.


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