Example #1
0
def main(spikes_file_path, with_histogram, with_labels, group_by,
         nodes_file_path, node_types_file_path):
    """
    Generates spike raster plot from L4 simulation output.
    :param spikes_file_path: str (path)
    :param with_histogram: bool
    :param with_labels: list of str
    :param group_by: str
    :param nodes_file_path: str (path)
    :param node_types_file_path: str (path)
    """
    plt.figure('Raster')
    plot_raster(spikes_file_path,
                with_histogram=with_histogram,
                with_labels=with_labels,
                group_by=group_by,
                show_plot=False,
                nodes_file=nodes_file_path,
                node_types_file=node_types_file_path)
    plt.show()
Example #2
0
from bmtk.analyzer.visualization.spikes import plot_raster, plot_rates
import matplotlib.pyplot as plt

# Raster plot of the v1 spikes.
plt.figure('Raster')
plot_raster('output/spikes.h5',
            with_histogram=True,
            with_labels=['v1'],
            show_plot=False)
plt.figure('Rates')
plot_rates('output/spikes.h5', show_plot=False)
plt.show()
Example #3
0
from bmtk.analyzer.visualization.spikes import plot_raster, plot_rates
import matplotlib.pyplot as plt

plt.figure('Raster')
plot_raster('output/spikes.h5',
            with_histogram=True,
            with_labels=['v1'],
            nodes_file='network/internal_nodes.h5',
            node_types_file='network/internal_node_types.csv',
            group_by='model_name',
            show_plot=False)
plt.figure('Rates')
plot_rates('output/spikes.h5',
           smoothed=True,
           nodes_file='network/internal_nodes.h5',
           node_types_file='network/internal_node_types.csv',
           group_by='model_name',
           show_plot=False)
plt.show()