cgid.phase_plots module

cgid.phase_plots.array_imshow(data, vmin=None, vmax=None, cmap=<matplotlib.colors.ListedColormap object>, origin=u'lower', drawlines=1, interpolation=u'bicubic', extent=(0, 4, 0, 4), ctitle=u'', spacing=0, draw_colorbar=True)[source]
cgid.phase_plots.array_plot_upsampled(data, factor, vmin=None, vmax=None, cmap=<matplotlib.colors.ListedColormap object>, origin=u'lower', drawlines=1, interpolation=u'bicubic', ctitle=u'')[source]

Upsamples data by factor when plotting. Currently only set up for 4x4mm 10x10 electrode MEAs.

Handy because upsampling leaves strangely sized images, since you can only interpolate and not extrapolate – and this hadles automatically placing the image at the correct location

cgid.phase_plots.get_upsampled_extent(upsampled_shape)[source]
cgid.phase_plots.overlay_gradient(phase_gradient)[source]
cgid.phase_plots.phase_delay_plot(mean_analytic_signal, cm=<matplotlib.colors.ListedColormap object>, UPSAMPLE=100, smooth=2.3, NLINE=6, recenter=True, draw_colorbar=True)[source]

Accepts an analytic signal map, upsamples it, and plots in the current axis the phases. For now, expects a 10x10 array 4x4mm is size.

cgid.phase_plots.vector_summary_plot(vectors)[source]

Does a summary plot of the phases of the vectors provided. vectors should be an array of complex numners

cgid.phase_plots.vector_summary_plot_subroutine(mu, sigma, vectors)[source]

Plotting subroutine. Takes order parameter R and a list of vectors that has been standardiszed.

TODO: circular gaussian plot is a little off here

cgid.phase_plots.weighted_vector_summary_plot(vectors)[source]

Does a summary plot of the phases of the vectors provided. vectors should be an array of complex numners Does a weighted average of direction by the vector magnitudes. CAUTION: Normalized vectors by squared mag for plotting, need to check that this is OK