This package contains various plotting functions for neo objects. The plots are created using guiqwt - if it is not installed, this package can not be used.
Create a new plotting window with a rasterplot of spiketrains.
Parameters: |
---|
Create (cross-)correlograms from a dictionary of spike train lists for different units.
Parameters: |
|
---|
Create a plot dialog with an interspike interval histogram.
Parameters: |
|
---|
Create a peri stimulus time histogram.
The peri stimulus time histogram gives an estimate of the instantaneous rate.
Parameters: |
|
---|
Create a spike density estimation plot.
The spike density estimations give an estimate of the instantaneous rate. Optionally finds optimal kernel size for given data.
Parameters: |
|
---|
Create a plot from a list of analog signals.
Parameters: |
|
---|
Create a spike amplitude histogram.
This plot is useful to assess the drift in spike amplitude over a longer recording. It shows histograms (one for each trains entry, e.g. segment) of maximum and minimum spike amplitudes.
Parameters: |
|
---|---|
Returns: |
Create a plot dialog with spike waveforms.
Parameters: |
|
---|
Contains a helper class for creating windows containing guiqwt plots.
Bases: QDialog, PlotManager
Implements a dialog to which an arbitrary number of plots can be added.
This class implements a QDialog with a number of plots on it. The axes of the plots can be arbitrarily synchronized and option checkboxes can be added which provide callbacks when the checkbox state changes.
Parameters: |
|
---|
Create a legend on the right of the plots with colors and names.
Parameters: |
|
---|
Adds typically needed curve tools to the window.
Parameters: |
---|
Adds typically needed image tools to the window.
Add a label on the right of the plots
Parameters: | legend_string (str) – An arbitrary string (which can contain newlines) to display on the right of the plots |
---|
Create a user option to show or hide a list of legend objects.
Parameters: |
|
---|
Add an option (using a checkbox) to the window.
Parameters: |
---|
Adds a guiqwt plot to the window.
Parameters: |
|
---|
Create a small legend on top of the window with only one entry.
Parameters: |
---|
Offer an option for X axes synchronization. This method should be called after show(), so that a proper initial synchronization can be performed.
Parameters: |
|
---|
Offer an option for Y axes synchronization. This method should be called after show(), so that a proper initial synchronization can be performed.
Parameters: |
|
---|
Replace colors of items in all plots.
This can be useful when changing the background color to black and black items should be drawn in white: replace_colors([('#000000', '#ffffff']))
Parameters: | replace_list (list) – A list of tuples of Qt color names. The first color in each tuple is replaced by the second color. |
---|
This module contains some utility functions that are usefult in plot creation.
Add Epoch markers to a guiqwt plot.
Parameters: |
|
---|
Add Event markers to a guiqwt plot.
Parameters: |
|
---|
Add all spikes from a spike train to a guiqwt plot as vertical lines.
Parameters: |
|
---|---|
Returns: | The plot item added for the spike train |
Return a color for a Neo object, based on the ‘unique_id’ annotation. If the annotation is not present, return a color based on the hash of the object.
Create a legend in a PlotDialog for a given sequence of neo objects.
Parameters: |
|
---|
Additional guiqwt tools to facilitate plot navigation.
Bases: CommandTool
A help tool that includes a message what a single middle click does, otherwise identical to the guiqwt tool with the same name.