Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/webactogram/webactogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down