GazeParser.Graphics - tools for data plotting

GazeParser.Graphics.drawHeatMap(data, meshsize)
パラメータ
GazeParser.Graphics.drawScatterPlot(data)
パラメータ

data -- An instance of GazeParser.Core.GazeData, a list of GazeParser.Core.FixationData objects, or a list of fixation points.

GazeParser.Graphics.quickPlot(data, eye=None, period=(None, None), style='XY', xlim=None, ylim=None, units='pix')

Plot gaze trajectory easily.

パラメータ
  • data -- If GazeParser.Core.SaccadeData or GazeParser.Core.FixationData instance is passed, Trajectory of the saccade or fixation is plotted. If GazeParser.Core.GazeData object is passed, whole gaze trajectory in the trial is plotted.

  • eye (str) -- 'L', 'R' or 'B' for left eye, right eye and both eyes. If None, recorded eye is used. Default value is None.

  • period (tuple) -- Specify the period for data plotting when the data is an instance of GazeParser.Core.GazeData. The first element of the tuple specifies the start time of the period. If None is given as the first element, the data is plotted from the beginning. The second element is the end time of the period. I None is given as the second element, the data is plotted to the end. The unit of these values are millisecond. Default value is (None, None).

  • style (str) -- 'XY' or 'XYT' is accepted. Default value is 'XY'.

  • xlim (tuple) -- If this value is not None, the value is passed tomatplotlib.pyplot.xlim(). Default value is None.

  • ylim (tuple) -- If this value is not None, the value is passed to matplotlib.pyplot.ylim(). Default value is None.

  • units -- Specify unit of the gaze position ('pix' or 'deg', case-insensitive). Default value is 'pix'.