allensdk.brain_observatory.circle_plots module

class allensdk.brain_observatory.circle_plots.CoronaPlotter(angle_start=270, plot_scale=1.2, inner_radius=0.3, *args, **kwargs)[source]

Bases: allensdk.brain_observatory.circle_plots.PolarPlotter

infer_dims(category_data)[source]
plot(category_data, data=None, clim=None, cmap=<matplotlib.colors.LinearSegmentedColormap object>)[source]
set_dims(categories)[source]
show_arrow(color=None)[source]
class allensdk.brain_observatory.circle_plots.FanPlotter(group_scale=0.9, *args, **kwargs)[source]

Bases: allensdk.brain_observatory.circle_plots.PolarPlotter

static for_drifting_gratings()[source]
static for_static_gratings()[source]
infer_dims(r_data, angle_data, group_data)[source]
plot(r_data, angle_data, group_data=None, data=None, cmap=<matplotlib.colors.LinearSegmentedColormap object>, clim=None, rmap=None, rlim=None, axis_color=None, label_color=None)[source]
set_dims(rs, angles, groups)[source]
show_angle_labels(angles=None, labels=None, color=None, offset=0.05, fontdict=None)[source]
show_axes(angles=None, radii=None, closed=False, color=None)[source]
show_group_labels(groups=None, color=None, fontdict=None)[source]
show_r_labels(radii=None, labels=None, color=None, offset=0.1, fontdict=None)[source]
class allensdk.brain_observatory.circle_plots.PolarPlotter(direction=-1, angle_start=0, circle_scale=1.1, inner_radius=None, plot_center=(0.0, 0.0), plot_scale=0.9)[source]

Bases: object

DIR_CCW = 1
DIR_CW = -1
finalize()[source]
class allensdk.brain_observatory.circle_plots.TrackPlotter(direction=-1, angle_start=270.0, inner_radius=0.45, ring_length=None, *args, **kwargs)[source]

Bases: allensdk.brain_observatory.circle_plots.PolarPlotter

plot(data, clim=None, cmap=<matplotlib.colors.LinearSegmentedColormap object>, mean_cmap=<matplotlib.colors.LinearSegmentedColormap object>, norm=None)[source]
show_arrow(color=None)[source]
allensdk.brain_observatory.circle_plots.add_angle_labels(ax, angles, labels, radius, color=None, fontdict=None, offset=0.05)[source]
allensdk.brain_observatory.circle_plots.add_arrow(ax, radius, start_angle, end_angle, color=None, width=18.0)[source]
allensdk.brain_observatory.circle_plots.angle_lines(angles, inner_radius, outer_radius)[source]
allensdk.brain_observatory.circle_plots.build_hex_pack(n)[source]
allensdk.brain_observatory.circle_plots.hex_pack(radius, n)[source]
allensdk.brain_observatory.circle_plots.make_pincushion_plot(data, trials, on, nrows, ncols, clim=None, color_map=None, radius=None)[source]
allensdk.brain_observatory.circle_plots.polar_line_circles(radii, theta, start_r=0)[source]
allensdk.brain_observatory.circle_plots.polar_linspace(radius, start_angle, stop_angle, num, endpoint=False, degrees=True)[source]

Evenly distributed list of x,y coordinates from an input range of angles and a radius in polar coordinates.

allensdk.brain_observatory.circle_plots.polar_to_xy(angles, radius)[source]

Convert an array of angles (in radians) and a radius in polar coordinates to an array of x,y coordinates.

allensdk.brain_observatory.circle_plots.radial_arcs(rs, start_theta, end_theta)[source]
allensdk.brain_observatory.circle_plots.radial_circles(rs)[source]
allensdk.brain_observatory.circle_plots.reset_hex_pack()[source]
allensdk.brain_observatory.circle_plots.rings_in_hex_pack(ct)[source]
allensdk.brain_observatory.circle_plots.spiral_trials(radii, x=0.0, y=0.0)[source]
allensdk.brain_observatory.circle_plots.spiral_trials_polar(r, theta, radii, offset=None)[source]
allensdk.brain_observatory.circle_plots.wedge_ring(N, inner_radius, outer_radius, start=0, stop=360)[source]