@@ -202,16 +202,8 @@ def plot_metric_by_constellation(navdata, *args, save=False, prefix="",
202202 for constellation in _sort_gnss_ids (np .unique (navdata ["gnss_id" ])):
203203 const_subset = navdata .where ("gnss_id" ,constellation )
204204
205- if prefix == "" :
206- prefix = constellation + "_"
207- else :
208- if prefix != "" and not prefix .endswith ('_' ):
209- prefix += "_"
210- prefix += constellation + "_"
211-
212205 if "signal_type" in const_subset .rows :
213206 for signal in np .unique (const_subset ["signal_type" ]):
214- prefix += signal + "_"
215207 title = _get_label ({"gnss_id" :constellation ,"signal_type" :signal })
216208 signal_subset = navdata .where ("signal_type" ,signal )
217209 if "sv_id" in signal_subset .rows :
@@ -713,9 +705,9 @@ def _save_figure(figures, titles=None, prefix="", fnames=None): # pragma: no cov
713705
714706 # make name path friendly
715707 title = titles [fig_idx ]
716- title .replace (" " ,"_" )
717- title .replace ("." ,"" )
718- title .replace ("vs" ,"" )
708+ title = title .replace (" " ,"_" )
709+ title = title .replace ("." ,"" )
710+ title = title .replace ("vs" ,"" )
719711
720712 if prefix != "" and not prefix .endswith ('_' ):
721713 prefix += "_"
@@ -900,9 +892,9 @@ def _save_plotly(figures, titles=None, prefix="", fnames=None,
900892
901893 # make name path friendly
902894 title = titles [fig_idx ]
903- title .replace (" " ,"_" )
904- title .replace ("." ,"" )
905- title .replace ("vs" ,"" )
895+ title = title .replace (" " ,"_" )
896+ title = title .replace ("." ,"" )
897+ title = title .replace ("vs" ,"" )
906898
907899 if prefix != "" and not prefix .endswith ('_' ):
908900 prefix += "_"
0 commit comments