tvaLib
Classes | Namespaces | Functions | Variables
vis.py File Reference

Go to the source code of this file.

Classes

class  lib.vis.basicPlot
 
class  lib.vis.overheadPlot
 
class  lib.vis.trajSample
 Trajectory. More...
 
class  lib.vis.visualiseOD
 
class  lib.vis.SpeedHistograms
 
class  lib.vis.interactionTimeseries
 
class  lib.vis.Analysis
 Analysis. More...
 
class  lib.vis.DrawOther
 Other. More...
 

Namespaces

 lib.vis
 

Functions

def lib.vis.show ()
 Visualisation library. More...
 
def lib.vis.plotSettings (style='', size=16, weight='normal', family='Arial', tickLabelSize=None, tickLength=4, verbose=0)
 
def lib.vis.close (fig='all')
 
def lib.vis.Save (figures, results_path='', fig_dpi=300, fig_format='png', fig_lan_suffix='', supressClose=False, fig_resize=None, fig_bg_colour='', verbose=0)
 
def lib.vis.plots (X, Y, legend_labels=None, colours=['b', r, g, orange, k, m, y, linewidths=[1], linestyles=['-'], markers=[''], x_bounds=None, y_bounds=None, x_label='', y_label='', local=None, fig_name='Generic plots', figsize=[15.0)
 
def lib.vis.Histo (data, enableBars=True, dist_type='freq', enableHalfStepOffset=True, halfStepSign=1, legendLabels='', linewidth=2, spacing_modifier=1, x_bounds=None, y_bounds=None, x_label='', y_label='', force_one_label_per_bar=False, local=None, fig_name='Generic histogram', figsize=[15.0)
 
def lib.vis.plotWithArrows (x, y, aspace=5, color='b', alpha=1.0, zorder=1, kwargs)
 
def lib.vis.BoxPlotSeries (data, x_label='', y_label='', x_tick_labels=None, y_bounds=None, y_logScale=False, orderByMedian=False, colour=None, sperator_position=None, local=None, fig_name='Generic boxplot', figsize=[15.0, verbose=0)
 
def lib.vis.Scatter (pointList, alignments=False, mask=False, labels=False, local=None, fig_name='Generic scatter', verbose=0, figsize=[15.0)
 
def lib.vis.Map (pointList, colour='hot', xy_bounds=None, gridsize=[60, mincnt=1, sm_scale=None, alignments=False, mask=False, labels=False, local=None, fig_name='Generic Map', verbose=0, figsize=[15.0, full_plot=True)
 
def lib.vis.plotBB (bounding_boxes, labels=False, legacyLabels=False, boxLabel=None, outlineOnly=False, alpha=1.00, zorder=1, zone_bgcolour='0.66', plotSettings=None, kwargs)
 
def lib.vis.plotSDR (SDR, local=None, outlineOnly=False, alpha=1.00, zorder=1, sdr_bgcolour='0.66', kwargs)
 
def lib.vis.plotVL (virtual_loops, labels=False, colour='#D63E33')
 
def lib.vis.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)
 
def lib.vis.plotSatellite (sateliteImage, sateliteResolution, color=False, zorder=0, origin=[0, zoomTo=False)
 
def lib.vis.plotImageWorldSpace (imagePath, scale=1.0, zorder=0, origin=[0)
 
def lib.vis.annotate (text, x=None, y=None, target='bottom-right')
 
def lib.vis.scatterInBins (lists, bins)
 
def lib.vis.pointList2DHisto (data, bins=[60)
 
def lib.vis.traj2D (objects, draw_max_traj=200, xy_bounds=None, alignments=None, draw_connectors=True, mask=None, zone=None, SDR=None, virtual_loops=None, sateliteImage=None, sateliteResolution=None, labels=False, labels_overlap=True, timeStampLabels=False, objects_uncon=None, velocity_vector=False, local=None, constantFramerate=15.0, mps_kmh=3.6, traj_colour='b', traj_colour_alternate='', sm_scale=50, cm_colour='hot', alignAlpha=1.0, fig_name='Vehicle Trajectories', figsize=[15.0, plotSettings=None, kwargs)
 
def lib.vis.traj2DHighlightAlignments (objects, xy_bounds, alignments, marker_size=0.4, labels=True, local=None, fig_name='Trajectory Lane Highlight', figsize=[15.0, plotSettings=None, kwargs)
 
def lib.vis.visTrajImageSpace (objects=None, image='', homography=None, labels=False, start=0, draw_max_traj=200, mask=None, local=None, fig_name='Vehicle Trajectories in Image Space', traj_colour='b', alpha=1.0, figsize=[15.0, kwargs)
 
def lib.vis.traj3D (objects, start=0, draw_max_traj=200, draw_connectors=True, xy_bounds=None, alignments=None, mask=None, labels=False, timeStampLabels=False, local=None, fig_name='Vehicle Trajectories 3D', traj_colour='b', figsize=[15.0)
 
def lib.vis.plotGeometry (alignments, sateliteImage, sateliteResolution, xy_bounds=None, draw_connectors=True, mask=None, zone=None, virtual_loops=None, labels=False, local=None, fig_name='Geometry', figsize=[15.0, plotSettings=None, kwargs)
 
def lib.vis.hourlyFlows (flows_curve_list, speed_data=None, speed_data_stds=None, sm_scale=None, local=None, tickFrequency=4, fig_name='Hourly flows', figsize=[15.0)
 Flows. More...
 
def lib.vis.microTrafficIntensity (objects, startTime, endTime, framerate, local=None, window_s=20.0, maxBins=1000, fig_name='Traffic Intensity', figsize=[15.0, plotSettings=None, kwargs)
 
def lib.vis.speedMap (objects, ptype='heat', sm_scale=None, colour='hot', xy_bounds=None, gridsize=[60, arrowGridReductionFactor=0.3, mincnt=10, virtualLoops=False, zone=False, alignments=False, local=None, fig_name='Speed Heat Map', figsize=[15.0, constantFramerate=15.0, mps_kmh=3.6, duration=0)
 Speed. More...
 
def lib.vis.speedHist (speed_histos, labels='', plotPDF=True, sm_scale=80, enableBars=True, color='k', linestyle='', linewidth=5, minObservations=10, local=None, fig_name='Speed Distribution', figsize=[15.0)
 
def lib.vis.interactionMap (pointColumnList, ptype='hexbin', colour='hot', weightedDensity=False, xy_bounds=None, z_bounds=None, gridsize=[60, minGridSize=1.0, mincnt=1, alignments=False, mask=False, zone=False, labels=False, local=None, zlabel='', fig_name='CP Map', indent=4, verbose=0, figsize=[15.0, plotSettings=None, kwargs)
 Interactions. More...
 
def lib.vis.interactionTTCHist (ttc_histos, fps=15.0, timehorizon=5.0, enableBars=True, linewidth=5, dist_type='pdf', labels=False, label_ratio='', local=None, fig_name='TTC pdf', verbose=0, figsize=[15.0)
 
def lib.vis.visAlignData (sl, slsd, hl_offset=False, local=None, min_obs=10, fig_name='Alignment data', figsize=[15.0, plotSettings=None)
 Alignments. More...
 

Variables

 lib.vis.legend_labels