From 4c99d023051fdbe7dece3f0258af60a1b860edda Mon Sep 17 00:00:00 2001
From: Peter Swain <pswain@Home-iMac.local>
Date: Wed, 1 May 2024 12:59:51 +0100
Subject: [PATCH] change(kymograph): pivot compatible with new pandas

---
 plotting.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plotting.py b/plotting.py
index fbc1c77..0d9de10 100644
--- a/plotting.py
+++ b/plotting.py
@@ -47,7 +47,7 @@ def kymograph(
             cmap = matplotlib.cm.Spectral
         else:
             cmap = matplotlib.cm.viridis
-    wdf = df.pivot(y, x, hue)
+    wdf = df.pivot(index=y, columns=x, values=hue)
     dt = np.min(np.diff(np.sort(df.time.unique())))
     # from Arin
     data = wdf.to_numpy()
-- 
GitLab