@@ -0,0 +1,1297 @@
+%22%22%22Plotting functions for neurodsp.rhythm.%22%22%22%0A%0Aimport matplotlib.pyplot as plt%0A%0A###################################################################################################%0A###################################################################################################%0A%0Adef plot_swm_pattern(pattern, ax=None):%0A    %22%22%22Plot the resulting pattern from a sliding window matching analysis.%0A%0A    Parameters%0A    ----------%0A    pattern : 1d array%0A        The resulting average pattern from applying sliding window matching.%0A    ax : matplotlib.Axes, optional%0A        Figure axes upon which to plot.%0A    %22%22%22%0A%0A    ax = check_ax(ax, (4, 4))%0A%0A    plt.plot(pattern, 'k')%0A%0A    plt.title('Average Pattern')%0A    plt.xlabel('Time (samples)')%0A    plt.ylabel('Voltage (a.u.)')%0A%0A%0Adef plot_lagged_coherence(freqs, lcs, ax=None):%0A    %22%22%22Plot lagged coherence values across frequencies.%0A%0A    Parameters%0A    ----------%0A    freqs : 1d array%0A        Vector of frequencies at which lagged coherence was computed.%0A    lcs : 1d array%0A        Lagged coherence values across the computed frequencies.%0A    ax : matplotlib.Axes, optional%0A        Figure axes upon which to plot.%0A    %22%22%22%0A%0A    ax = check_ax(ax, (6, 3))%0A%0A    plt.plot(freqs, lcs, 'k.-')%0A%0A    plt.xlabel('Frequency (Hz)')%0A    plt.ylabel('Lagged Coherence')%0A

Add plots for rhythm