瀏覽代碼

legend of polar plots has the correct size

Paul Pfeiffer 3 年之前
父節點
當前提交
50e77e6dfd

+ 2 - 2
scripts/spatial_network/perlin/paper_figures_spatial_head_direction_network_perlin_map.py

@@ -562,7 +562,7 @@ def plot_polar_plot_excitatory(traj, plot_run_names, selected_neuron_idx,
     ax.set_thetagrids([0, 90, 180, 270], labels=[])
     ax.xaxis.grid(linewidth=0.4)
     ax.yaxis.grid(linewidth=0.4)
-    leg = ax.legend(loc="lower right", bbox_to_anchor=(1.15, -0.15), handlelength=0.75, fontsize="small")
+    leg = ax.legend(loc="lower right", bbox_to_anchor=(1.15, -0.15), handlelength=1, fontsize="medium")
     leg.get_frame().set_linewidth(0.0)
     ax.axes.spines["polar"].set_visible(False)
     if save_figs:
@@ -606,7 +606,7 @@ def plot_polar_plot_inhibitory(traj, plot_run_names, selected_neuron_idx, fignam
     ax.set_thetagrids([0, 90, 180, 270], labels=[])
     ax.xaxis.grid(linewidth=0.4)
     ax.yaxis.grid(linewidth=0.4)
-    leg = ax.legend(loc="lower right", bbox_to_anchor=(1.15, -0.15), handlelength=0.75, fontsize="small")
+    leg = ax.legend(loc="lower right", bbox_to_anchor=(1.15, -0.15), handlelength=1, fontsize="medium")
     leg.get_frame().set_linewidth(0.0)
     ax.axes.spines["polar"].set_visible(False)