netpyne.analysis.traces

Module for analysis and plotting of traces-related results

Functions:

plotEPSPAmp([include, trace, start, …])

Function for/to <short description of netpyne.analysis.traces.plotEPSPAmp>

plotTraces([include, timeRange, oneFigPer, …])

Function for/to <short description of netpyne.analysis.traces.plotTraces>

netpyne.analysis.traces.plotEPSPAmp(include=None, trace=None, start=0, interval=50, number=2, amp='absolute', polarity='exc', saveFig=False, showFig=True)[source]

Function for/to <short description of netpyne.analysis.traces.plotEPSPAmp>

Parameters
  • include (<None?>) – <Short description of include> Default: None Options: <option> <description of option>

  • trace (<None?>) – <Short description of trace> Default: None Options: <option> <description of option>

  • start (int) – <Short description of start> Default: 0 Options: <option> <description of option>

  • interval (int) – <Short description of interval> Default: 50 Options: <option> <description of option>

  • number (int) – <Short description of number> Default: 2 Options: <option> <description of option>

  • amp (str) – <Short description of amp> Default: 'absolute' Options: <option> <description of option>

  • polarity (str) – <Short description of polarity> Default: 'exc' Options: <option> <description of option>

  • saveFig (bool) – <Short description of saveFig> Default: False Options: <option> <description of option>

  • showFig (bool) – <Short description of showFig> Default: True Options: <option> <description of option>

netpyne.analysis.traces.plotTraces(include=None, timeRange=None, oneFigPer='cell', rerun=False, title=None, subtitles=True, overlay=False, colors=None, ylim=None, axis=True, legend=True, scaleBarLoc=1, figSize=(10, 8), fontSize=12, saveData=None, saveFig=None, showFig=True)[source]

Function for/to <short description of netpyne.analysis.traces.plotTraces>

Parameters
  • include (list) – Populations and cells to include in the plot. Default: ['eachPop', 'allCells'] plots histogram for each population and overall average Options: ['all'] plots all cells and stimulations, ['allNetStims'] plots just stimulations, ['popName1'] plots a single population, ['popName1', 'popName2'] plots multiple populations, [120] plots a single cell, [120, 130] plots multiple cells, [('popName1', 56)] plots a cell from a specific population, [('popName1', [0, 1]), ('popName2', [4, 5, 6])], plots cells from multiple populations

  • timeRange (list [start, stop]) – Time range to plot. Default: None plots entire time range Options: <option> <description of option>

  • oneFigPer (str) – Whether to plot one figure per cell (showing multiple traces) or per trace (showing multiple cells). Default: 'cell' Options: 'trace'

  • rerun (bool) – Rerun simulation so a new set of cells gets recorded. Default: False Options: <option> <description of option>

  • title (str) – Set the whole figure title, works only with oneFigPer='cell'. Default: None Options: <option> <description of option>

  • overlay (bool) – Whether to overlay plots or use subplots. Default: True overlays plots. Options: <option> <description of option>

  • colors (list) – List of normalized RGB colors to use for traces. Default: None uses standard colors Options: <option> <description of option>

  • ylim (list [min, max]) – Sets the y limits of the plot. Default: None Options: <option> <description of option>

  • axis (bool) – Whether to show axis or not; if not, then a scalebar is included. Default: True Options: <option> <description of option>

  • scaleBarLoc (int) – Sets the location of the scale bar (added when axis=False). Default: 1 Options: 1 upper right, 2 upper left, 3 lower left, 4 lower right, 5 right, 6 center left, 7 center right, 8 lower center, 9 upper center, 10 center

  • figSize (list [width, height]) – Size of figure in inches. Default: (10, 8) Options: <option> <description of option>

  • fontSize (int) – Font size on figure. Default: 12 Options: <option> <description of option>

  • saveData (bool or str) – Whether and where to save the data used to generate the plot. Default: False Options: True autosaves the data, '/path/filename.ext' saves to a custom path and filename, valid file extensions are '.pkl' and '.json'

  • saveFig (bool or str) – Whether and where to save the figure. Default: False Options: True autosaves the figure, '/path/filename.ext' saves to a custom path and filename, valid file extensions are '.png', '.jpg', '.eps', and '.tiff'

  • showFig (bool) – Shows the figure if True. Default: True Options: <option> <description of option>