From d9bf89e6f18ff58655781814ec84bd3a23647d6c Mon Sep 17 00:00:00 2001 From: Ryan Carsten Schmidt Date: Tue, 15 Apr 2025 19:58:15 -0500 Subject: [PATCH] Fix graph of second 24 hours of data Previously the second 24 hours of each graph column (landscape) or row (portrait) were just a repeat of the first 24 hours. Now the second 24 hours correctly represent the next day's data. Fixes #12 --- src/webactogram/webactogram.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/webactogram/webactogram.py b/src/webactogram/webactogram.py index 6a4c63a..43415c0 100644 --- a/src/webactogram/webactogram.py +++ b/src/webactogram/webactogram.py @@ -437,7 +437,8 @@ def apply_median_blurring(self): def define_pcolormesh_args(self): """ define the x, y and z (color) data structure for plotting later on """ - xx, yy, zz = self.act.dd, self.act.h2, np.tile(self.pcm['z'], (2, 1)) # tile the z array to create a 2D array + xx, yy, zz = self.act.dd, self.act.h2, self.pcm['z'] + zz = np.vstack((zz, np.pad(zz, ((0,0),(0,1)))[:, 1:])) if not self.act.landscape: # if vertical xx, yy = yy, xx # swap the x and y arrays