From 3a172fc03ff3bb5166ccb45902375440a639290a Mon Sep 17 00:00:00 2001 From: Hector Medina Date: Wed, 27 Mar 2024 02:18:29 -0400 Subject: [PATCH] Remove unnecessary mathy-ness --- KaSaAn/functions/snapshot_visualizer_subcomponent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)