<jupyter_start><jupyter_text>Make Smaller figure for supplemental figure<jupyter_code># surface

outputPrefix = '210206-SMG-time-course-proliferation-surface-epi-40x-bar-swarm-small'
outputFigPath = "../jupyter_figures/" + outputPrefix + ".svg"
x_col = 'groups'
y_col = 'percent_pHH3_thres_area_surf'

fig_width = .7
fig_height = .8
fig = plt.figure(figsize=(fig_width,fig_height), dpi=300)
ax = fig.add_axes([0.1, 0.1, 0.8, 0.8])

ax = sns.swarmplot(data=df, x=x_col, y=y_col,
                   order=['1', '7', '13', '20'],
                   color="blue",
                   size=2.0,
                   alpha=.4)

ax = sns.barplot(data=df, x=x_col, y=y_col,
                 order=['1', '7', '13', '20'],
                 color=".7", alpha=1.0,
                 errwidth=.7, errcolor=".4", capsize=.2, ci=95)

plt.ylim(0, 100)
# plt.yticks([0, 10, 20])

plt.xlabel("Culture time (h)")
# plt.ylabel("% pHH3+ area\nin surface epithelium")
plt.ylabel("% pHH3+ area")
# plt.ylabel("%$\mathregular{pHH3^+}$ area")


# x_labels = ['1', '7', '13', '20']
# rotate x tick labels if necessary
# ax.set_xticklabels(labels=x_labels, rotation=60, ha="right")

# make the bar width narrower
change_bar_width(ax, .6)

for o in fig.findobj():
    o.set_clip_on(False)
for o in ax.findobj():
    o.set_clip_on(False)

if outputFigPath is not None:
    plt.savefig(outputFigPath)

# interior

outputPrefix = '210206-SMG-time-course-proliferation-interior-epi-40x-bar-swarm-small'
outputFigPath = "../jupyter_figures/" + outputPrefix + ".svg"
x_col = 'groups'
y_col = 'percent_pHH3_thres_area_in'

fig_width = .7
fig_height = .8
fig = plt.figure(figsize=(fig_width,fig_height), dpi=300)
ax = fig.add_axes([0.1, 0.1, 0.8, 0.8])

ax = sns.swarmplot(data=df, x=x_col, y=y_col,
                   order=['1', '7', '13', '20'],
                   color="blue",
                   size=2.0,
                   alpha=.4)

ax = sns.barplot(data=df, x=x_col, y=y_col,
                 order=['1', '7', '13', '20'],
                 color=".7", alpha=1.0,
                 errwidth=.7, errcolor=".4", capsize=.2, ci=95)

plt.ylim(0, 60)
plt.yticks([0, 30, 60])

plt.xlabel("Culture time (h)")
# plt.ylabel("% pHH3+ area\nin surface epithelium")
plt.ylabel("% pHH3+ area")
# plt.ylabel("%$\mathregular{pHH3^+}$ area")


# x_labels = ['1', '7', '13', '20']
# rotate x tick labels if necessary
# ax.set_xticklabels(labels=x_labels, rotation=60, ha="right")

# make the bar width narrower
change_bar_width(ax, .6)

for o in fig.findobj():
    o.set_clip_on(False)
for o in ax.findobj():
    o.set_clip_on(False)

if outputFigPath is not None:
    plt.savefig(outputFigPath)

# surface-to-interior ratio

outputPrefix = '210206-SMG-time-course-proliferation-ratio-surf-to-interior-40x-bar-swarm-small'
outputFigPath = "../jupyter_figures/" + outputPrefix + ".svg"
x_col = 'groups'
y_col = 'ratio_pHH3_surf_to_in'

fig_width = .7
fig_height = .8
fig = plt.figure(figsize=(fig_width,fig_height), dpi=300)
ax = fig.add_axes([0.1, 0.1, 0.8, 0.8])

ax = sns.swarmplot(data=df, x=x_col, y=y_col,
                   order=['1', '7', '13', '20'],
                   color="blue",
                   size=2.0,
                   alpha=.4)

ax = sns.barplot(data=df, x=x_col, y=y_col,
                 order=['1', '7', '13', '20'],
                 color=".7", alpha=1.0,
                 errwidth=.7, errcolor=".4", capsize=.2, ci=95)

plt.ylim(0, 6)
plt.yticks([0, 3, 6])

plt.xlabel("Culture time (h)")
# plt.ylabel("Surface-to-interior epithelium\nproliferation ratio")
plt.ylabel("%pHH3+ ratio")

# x_labels = ['1', '7', '13', '20']
# rotate x tick labels if necessary
# ax.set_xticklabels(labels=x_labels, rotation=60, ha="right")

# make the bar width narrower
change_bar_width(ax, .6)

for o in fig.findobj():
    o.set_clip_on(False)
for o in ax.findobj():
    o.set_clip_on(False)

if outputFigPath is not None:
    plt.savefig(outputFigPath)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17981232564037536, 'fraction_numerical': 0.04844027390311945, 'mean_word_length': 3.082815734989648, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '145675', 'license': 'MIT', 'n_tokens_mistral': 1693, 'n_tokens_neox': 1563, 'n_words': 311, 'path': 'SMG-time-course-pHH3-plotting.ipynb', 'repo_name': 'snownontrace/public-scripts-Wang2020-branching-morphogenesis', 'size': '3943'}