Skip to content

Commit 2a89f06

Browse files
Add synapse literature references to fig2 panel c
1 parent 009d6cd commit 2a89f06

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

scripts/figures/plot_fig2.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,14 @@ def fig_02d_01(save_path, plot=False, all_versions=False, plot_average_ribbon_sy
193193
ax[2].set_yticklabels(y_ticks, rotation=0, fontsize=main_tick_size)
194194
# ax[2].set_ylim(ylim0, ylim1)
195195

196-
# TODO range of values from literature.
196+
# set range of literature values
197+
xmin = 0.5
198+
xmax = 1.5
199+
lower_y, upper_y = literature_reference_values("synapse")
200+
ax[2].set_xlim(xmin, xmax)
201+
ax[2].hlines([lower_y, upper_y], xmin, xmax)
202+
ax[2].text(1, upper_y + 2, "literature", color="C0", fontsize=main_tick_size, ha="center")
203+
ax[2].fill_between([xmin, xmax], lower_y, upper_y, color="C0", alpha=0.05, interpolate=True)
197204

198205
plt.tight_layout()
199206
plt.savefig(save_path_new, dpi=png_dpi)

scripts/figures/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def literature_reference_values(structure):
6767
elif structure == "IHC":
6868
lower_bound, upper_bound = 780, 850
6969
elif structure == "synapse":
70-
raise NotImplementedError
70+
lower_bound, upper_bound = 10, 25
7171
else:
7272
raise ValueError
7373
return lower_bound, upper_bound

0 commit comments

Comments
 (0)