Skip to content

Commit

Permalink
series images
Browse files Browse the repository at this point in the history
  • Loading branch information
blleng committed Sep 10, 2024
1 parent e57847b commit 459f933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/convert_emd/drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ def convert_emd(file_name, data, output_type, scale_bar, sb_color, sb_x_start, s
plt.margins = (0, 0)
plt.axis("off")
if scale_bar == True:
plt.savefig(output_name + title + "_" + str(split_frame[i]) + split_unit + "_" + sb_text + output_type)
plt.savefig(output_name + title + "_" + str(split_frame[i])[:5] + split_unit + "_" + sb_text + output_type)
else:
plt.savefig(output_name + title + "_" + str(split_frame[i]) + split_unit + output_type)
plt.savefig(output_name + title + "_" + str(split_frame[i])[:5] + split_unit + output_type)
plt.close()

if overlay:
Expand Down

0 comments on commit 459f933

Please sign in to comment.