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

Public Member Functions

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

 local
 
 verbose
 
 axes
 

Detailed Description

Definition at line 656 of file vis.py.

Constructor & Destructor Documentation

◆ __init__()

def lib.vis.basicPlot.__init__ (   self,
  fig_rows = 1,
  fig_columns = 1,
  local = None,
  sharex = False,
  sharey = False,
  fig_name = 'Basic Figure',
  verbose = 0,
  figsize = [15.0,
  kwargs 
)

Definition at line 657 of file vis.py.

657  def __init__(self, fig_rows=1, fig_columns=1, local=None, sharex=False, sharey=False, fig_name='Basic Figure', verbose=0, figsize=[15.0,12.0], **kwargs):
658  if(not local): self.local = tvaLocal.Local()
659  else: self.local = local
660  self.verbose = verbose
661  self.fig, self.axes = plt.subplots(fig_rows, fig_columns, sharex=sharex, sharey=sharey, num=fig_name, figsize=(figsize[0], figsize[1]))
662 

Member Function Documentation

◆ compileFigure()

def lib.vis.basicPlot.compileFigure (   self)

Definition at line 670 of file vis.py.

670  def compileFigure(self): pass
671 

◆ get()

def lib.vis.basicPlot.get (   self)

Definition at line 672 of file vis.py.

672  def get(self):
673  self.compileFigure()
674  self.setAxes()
675  return self.fig
676 
677 

◆ setAxes()

def lib.vis.basicPlot.setAxes (   self,
  x_lavbel = ['x'],
  y_lavbel = ['y'] 
)

Definition at line 663 of file vis.py.

663  def setAxes(self, x_lavbel=['x'], y_lavbel=['y']):
664  cIx = 0
665  for index, ax in np.ndenumerate(self.axes):
666  ax.set_xlabel(x_lavbel[cIx])
667  ax.set_ylabel(y_lavbel[cIx])
668  if(len(x_lavbel) > cIx+1 and len(y_lavbel) > cIx+1): cIx += 1
669 

Member Data Documentation

◆ axes

lib.vis.basicPlot.axes

Definition at line 661 of file vis.py.

◆ local

lib.vis.basicPlot.local

Definition at line 658 of file vis.py.

◆ verbose

lib.vis.basicPlot.verbose

Definition at line 660 of file vis.py.


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