Skip to content

Commit d2cd4e6

Browse files
authored
Small fixes to the ROI distances and angles example (#521)
* remove redundant label parameter form .plot method call * flip (counter-)clockwise
1 parent a87156f commit d2cd4e6

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

examples/boundary_angles.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,9 @@
144144
# Overlay an image of the experimental arena
145145
arena_ax.imshow(plt.imread(arena_image))
146146

147-
central_region.plot(
148-
arena_ax, facecolor="lightblue", alpha=0.25, label=central_region.name
149-
)
150-
nest_region.plot(
151-
arena_ax, facecolor="green", alpha=0.25, label=nest_region.name
152-
)
153-
ring_region.plot(
154-
arena_ax, facecolor="blue", alpha=0.25, label=ring_region.name
155-
)
147+
central_region.plot(arena_ax, facecolor="lightblue", alpha=0.25)
148+
nest_region.plot(arena_ax, facecolor="green", alpha=0.25)
149+
ring_region.plot(arena_ax, facecolor="blue", alpha=0.25)
156150

157151
# Plot trajectories of the individuals
158152
mouse_names_and_colours = list(
@@ -422,11 +416,11 @@
422416
# Egocentric angles, on the other hand, fluctuate more due to their sensitivity
423417
# to changes in the forward vector. Outside frames 200-400, we see trends:
424418
#
425-
# - ``AEON3B_TP2`` moves clockwise around the ring, so its egocentric
419+
# - ``AEON3B_TP2`` moves counter-clockwise around the ring, so its egocentric
426420
# angle decreases ever so slightly with time - almost hitting an angle of 0
427421
# degrees as it moves along the direction of closest approach after passing
428422
# the other individuals.
429-
# - The other two individuals move counter-clockwise, so their angles show a
423+
# - The other two individuals move clockwise, so their angles show a
430424
# gradual increase with time. Because the two individuals occasionally get in
431425
# each others' way, we see frequent "spikes" in their egocentric angles as
432426
# their forward vectors rapidly change.

0 commit comments

Comments
 (0)