Skip to content

Commit 704f819

Browse files
Fixed numpy dependency in plots
1 parent 08dcdfd commit 704f819

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ana/motion_direction_repulsion_nested_Takemura.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def plot_inner_angles(inner_angles, bins=np.linspace(-22.5,202.5,46)/180*np.pi,
9696
print(np.sum(count), count)
9797
kwargs = dict(bottom=0., width=np.diff(bins), zorder=5)
9898
ax.bar(theta, count, **kwargs)
99-
ax.set_xticks(np.linspace(0, 180, 7)/180*pi)
99+
ax.set_xticks(np.linspace(0, 180, 7)/180*np.pi)
100100
ax.set_ylim(0, 55)
101101
ax.set_yticks([50])
102102
if key:

plt/plot_figure_4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def plot_takemura_inner_angles(inner_angles, bins, ax):
330330
color = si.colors.get_color(si.colors.CMAP['velo'], k, K)
331331
kwargs = dict(bottom=0., width=np.diff(bins), zorder=5)
332332
ax.bar(theta, count, color=color, **kwargs)
333-
ax.set_xticks(np.linspace(0, 180, 7)/180*pi)
333+
ax.set_xticks(np.linspace(0, 180, 7)/180*np.pi)
334334
ax.xaxis.set_tick_params(pad=-2.)
335335
ax.xaxis.set_tick_params(grid_linewidth=0.5)
336336
ax.set_ylim(0, takemura["count_max"])

sim/cfg_107_nested_direction_repulsion_Takemura.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
D = 2 # number of spatial dimensions
2323
lam_tot = 2.0 # equivalent speed of stim
24-
reps = 1 # 200 # trial repetitions
24+
reps = 200 # trial repetitions
2525
# In Experiment 1, the inner dots have no vertical component.
2626
# In Experiment 2, all inner dots have the same x-speed, and a multiplier of this value on their y-speed.
2727
multy = 1 # in {0,1,2,3,4}, or choose 0 for experiment 1; choose 1 for experiment 2, 90 degree condition

0 commit comments

Comments
 (0)