diff --git a/freud/order.py b/freud/order.py index 06f13dd13..23866dec0 100644 --- a/freud/order.py +++ b/freud/order.py @@ -609,9 +609,10 @@ def plot(self, ax=None): if not isinstance(ls, list): ls = [ls] + weighted_str = "'" if self.weighted else "" legend_labels = [ ( - f'${"w" if self.wl else "q"}{"'" if self.weighted else ""}_' + f"${'w' if self.wl else 'q'}{weighted_str}_" f"{{{sph_l}{',ave' if self.average else ''}}}$" ) for sph_l in ls