From b11f3999ac8b5e6fb0fa651f0722655cae4afe20 Mon Sep 17 00:00:00 2001 From: NirOfir <43925388+NirOfir@users.noreply.github.com> Date: Sun, 12 Apr 2026 07:49:56 +0300 Subject: [PATCH] Fix chained assignment error Fixes #303 --- upsetplot/plotting.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/upsetplot/plotting.py b/upsetplot/plotting.py index c69636b..807b069 100644 --- a/upsetplot/plotting.py +++ b/upsetplot/plotting.py @@ -792,10 +792,10 @@ def plot_matrix(self, ax): } ) ) - styles["linewidth"].fillna(1, inplace=True) - styles["facecolor"].fillna(self._facecolor, inplace=True) - styles["edgecolor"].fillna(styles["facecolor"], inplace=True) - styles["linestyle"].fillna("solid", inplace=True) + styles["linewidth"] = styles["linewidth"].fillna(1) + styles["facecolor"] = styles["facecolor"].fillna(self._facecolor) + styles["edgecolor"] = styles["edgecolor"].fillna(styles["facecolor"]) + styles["linestyle"] = styles["linestyle"].fillna("solid") del styles["hatch"] # not supported in matrix (currently) x = np.repeat(np.arange(len(data)), n_cats)