Raster_plot module¶
Functions for raster plotting.
- nest.raster_plot.extract_events(data, time=None, sel=None)¶
Extract all events within a given time interval.
Both time and sel may be used at the same time such that all events are extracted for which both conditions are true.
- Parameters:
data (list) – Matrix such that data[:,0] is a vector of all node_ids and data[:,1] a vector with the corresponding time stamps.
time (list, optional) – List with at most two entries such that time=[t_max] extracts all events with t< t_max time=[t_min, t_max] extracts all events with t_min <= t < t_max
sel (list, optional) – List of node_ids such that sel=[node_id1, … , node_idn] extracts all events from these node_ids. All others are discarded.
- Returns:
List of events as (node_id, t) tuples
- Return type:
numpy.array
- nest.raster_plot.from_data(data, sel=None, **kwargs)¶
Plot raster plot from data array.
- Parameters:
data (list) – Matrix such that data[:,0] is a vector of all node_ids and data[:,1] a vector with the corresponding time stamps.
sel (list, optional) – List of node_ids such that sel=[node_id1, … , node_idn] extracts all events from these node_ids. All others are discarded.
kwargs – Parameters passed to _make_plot
- nest.raster_plot.from_device(detec, **kwargs)¶
Plot raster from a spike recorder.
- Parameters:
detec (TYPE) – Description
kwargs – Parameters passed to _make_plot
- Raises:
nest.kernel.NESTError –
- nest.raster_plot.from_file(fname, **kwargs)¶
Plot raster from file.
- Parameters:
fname (str or tuple(str) or list(str)) –
File name or list of file names
If a list of files is given, the data from them is concatenated as if it had been stored in a single file - useful when MPI is enabled and data is logged separately for each MPI rank, for example.
kwargs – Parameters passed to _make_plot
- nest.raster_plot.from_file_numpy(fname, **kwargs)¶
Use numpy.
- nest.raster_plot.from_file_pandas(fname, **kwargs)¶
Use pandas.