@@ -151,6 +151,8 @@ def plot_speed_ratios(name, class_def: Type[SmartSim], x_label, rel_path_y, bin_
151
151
ax .set_ylabel ("Count" )
152
152
ax .set_xlabel (x_label )
153
153
154
+ ax .set_xlim ((0.65 , 1.35 ))
155
+
154
156
ax .xaxis .set_major_locator (ticker .MultipleLocator (0.2 ))
155
157
156
158
ax .spines .right .set_visible (False )
@@ -170,29 +172,29 @@ def plot_speed_ratios(name, class_def: Type[SmartSim], x_label, rel_path_y, bin_
170
172
z_binned_average = True , z_bin_size = 2 , fig_size = (4.94 * CM , 5 * CM ))
171
173
plot_speed_ratios ("size_increments" , PlaceFields , "Fast / slow" , "slow_and_fast_sizes" ,
172
174
bin_size = 0.05 , fig_size = (3.75 * CM , 2.3 * CM ))
173
- # plot("densities", PlaceFields, x_label, "density/speeds", "Place field density (peaks/cm)", "density/densities",
174
- # alpha=0.5, x_binned_average=True, x_bin_size=2, fig_size=(3.73*CM, 4.9*CM))
175
+ plot ("densities" , PlaceFields , x_label , "density/speeds" , "Place field density (peaks/cm)" , "density/densities" ,
176
+ alpha = 0.5 , x_binned_average = True , x_bin_size = 2 , fig_size = (3.73 * CM , 4.9 * CM ))
175
177
176
178
plot ("slopes" , PhasePrecession , x_label , "speeds" , "1 / phase precession slope (cm/deg)" , "slopes" ,
177
179
"Position (cm)" , "positions" , z_binned_average = True , z_bin_size = 2 , fig_size = (5.25 * CM , 5 * CM ), multiple_locator = 0.05 )
178
180
plot_speed_ratios ("slope_increments" , PhasePrecession , "Fast / slow" , "slow_and_fast_slopes" , fig_size = (3.75 * CM , 2.3 * CM ))
179
181
180
- # plot("sweep lengths", ThetaSweeps, x_label, "speeds", "Theta sweep length (cm)", "lengths", "Position (cm)", "positions",
181
- # z_binned_average=True, z_bin_size=2, s=5, format='png', fig_size=small_fig)
182
- # plot("ahead lengths", ThetaSweeps, x_label, "ahead_and_behind/ahead_speeds", "Look-ahead distance (cm)",
183
- # "ahead_and_behind/ahead_lengths", "Position (cm)", "ahead_and_behind/ahead_real_pos",
184
- # z_binned_average=True, z_bin_size=2, s=5, format='png', fig_size=small_fig)
185
- # plot("behind lengths", ThetaSweeps, x_label, "ahead_and_behind/behind_speeds", "Look-behind distance (cm)",
186
- # "ahead_and_behind/behind_lengths", "Position (cm)", "ahead_and_behind/behind_real_pos",
187
- # z_binned_average=True, z_bin_size=2, s=5, format='png', fig_size=small_fig)
188
- #
189
- # # only for NetworkIntDriven and NetworkExtDriven:
190
- # plot("shifts", PlaceFields, x_label, "shifts/speeds", "Place field shift (cm)", "shifts/shifts", "Position (cm)",
191
- # "shifts/positions", z_binned_average=True, z_bin_size=2, fig_size=small_fig)
192
- # plot("matched shifts", ThetaSweeps, "Place field shift (cm)", "ahead_and_behind/shifts",
193
- # "Look-behind distance (cm)", "ahead_and_behind/behind_lengths", "Position (cm)",
194
- # "ahead_and_behind/behind_real_pos", z_binned_average=True, z_bin_size=2, s=5, format='png',
195
- # extra_plotting=lambda ax: ax.plot((0, 20), (0, 20), linestyle='dashed', color='black'), fig_size=small_fig)
182
+ plot ("sweep lengths" , ThetaSweeps , x_label , "speeds" , "Theta sweep length (cm)" , "lengths" , "Position (cm)" , "positions" ,
183
+ z_binned_average = True , z_bin_size = 2 , s = 5 , format = 'png' , fig_size = small_fig )
184
+ plot ("ahead lengths" , ThetaSweeps , x_label , "ahead_and_behind/ahead_speeds" , "Look-ahead distance (cm)" ,
185
+ "ahead_and_behind/ahead_lengths" , "Position (cm)" , "ahead_and_behind/ahead_real_pos" ,
186
+ z_binned_average = True , z_bin_size = 2 , s = 5 , format = 'png' , fig_size = small_fig )
187
+ plot ("behind lengths" , ThetaSweeps , x_label , "ahead_and_behind/behind_speeds" , "Look-behind distance (cm)" ,
188
+ "ahead_and_behind/behind_lengths" , "Position (cm)" , "ahead_and_behind/behind_real_pos" ,
189
+ z_binned_average = True , z_bin_size = 2 , s = 5 , format = 'png' , fig_size = small_fig )
190
+
191
+ # only for NetworkIntDriven and NetworkExtDriven:
192
+ plot ("shifts" , PlaceFields , x_label , "shifts/speeds" , "Place field shift (cm)" , "shifts/shifts" , "Position (cm)" ,
193
+ "shifts/positions" , z_binned_average = True , z_bin_size = 2 , fig_size = small_fig )
194
+ plot ("matched shifts" , ThetaSweeps , "Place field shift (cm)" , "ahead_and_behind/shifts" ,
195
+ "Look-behind distance (cm)" , "ahead_and_behind/behind_lengths" , "Position (cm)" ,
196
+ "ahead_and_behind/behind_real_pos" , z_binned_average = True , z_bin_size = 2 , s = 5 , format = 'png' ,
197
+ extra_plotting = lambda ax : ax .plot ((0 , 20 ), (0 , 20 ), linestyle = 'dashed' , color = 'black' ), fig_size = small_fig )
196
198
197
199
# # only for NetworkIndep:
198
200
# plot("sizes_vs_induction_speed", PlaceFields, "Induction speed (cm/s)", "induction_speeds/induction_speeds",
0 commit comments