From d5cdf52b8460004c2266cc40c59fbaec24b13d5a Mon Sep 17 00:00:00 2001 From: Markus Rosenstihl Date: Thu, 6 Nov 2025 17:06:44 +0100 Subject: [PATCH] fixed SyntaxWarning 'is' vs '==' --- tudplot/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tudplot/utils.py b/tudplot/utils.py index 751e6e2..11a022f 100644 --- a/tudplot/utils.py +++ b/tudplot/utils.py @@ -33,10 +33,10 @@ def facet_plot(dframe, facets, props, ydata, layout=None, newfig=True, figsize=N cycl = cycle(plt.rcParams['axes.prop_cycle']) prop_styles = {ps: next(cycl) for ps, _ in dframe.groupby(props)} - if zorder is 'default': + if zorder == 'default': dz = 1 zorder = 0 - elif zorder is 'reverse': + elif zorder == 'reverse': dz = -1 zorder = 0 else: