diff --git a/KaSaAn/functions/snapshot_visualizer_subcomponent.py b/KaSaAn/functions/snapshot_visualizer_subcomponent.py index 6785a0a..f2742d5 100644 --- a/KaSaAn/functions/snapshot_visualizer_subcomponent.py +++ b/KaSaAn/functions/snapshot_visualizer_subcomponent.py @@ -89,7 +89,7 @@ def render_complexes_as_plain_graph(snapshot_file_name: str, sizes_requested: Li patch_color = color_scheme[ka_agent] if ka_agent in color_scheme else '#00000000' legend_entries.append(mpatches.Patch(label=patch_label, color=patch_color)) ax.legend(handles=legend_entries, - title=(r'{} {}, size$={}$'.format(abund, + title=('{} {}, size {}'.format(abund, 'copies' if abund > 1 else 'copy', c_kappa.get_size_of_complex()))) fig_list.append(fig_all) @@ -119,7 +119,7 @@ def render_complexes_as_plain_graph(snapshot_file_name: str, sizes_requested: Li patch_color = color_scheme[KappaAgent(kappa_query.get_agent_name())] legend_entry = mpatches.Patch(label=patch_label, color=patch_color) ax.legend(handles=[legend_entry], - title=(r'{} {}, size$={}$'.format(abund, + title=('{} {}, size {}'.format(abund, 'copies' if abund > 1 else 'copy', c_kappa.get_size_of_complex()))) fig_list.append(fig_patt)