Skip to content

Commit

Permalink
check if pcolormesh data is a list
Browse files Browse the repository at this point in the history
  • Loading branch information
t-makaro committed Mar 5, 2019
1 parent bcda8f5 commit 27277ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions animatplot/blocks/image_like.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def _update(self, i):
return self.quad

def __len__(self):
if self._is_list:
return self.C.shape[0]
return self.C.shape[self.t_axis]

def _make_pcolormesh_slice(self, i, dim):
Expand Down

0 comments on commit 27277ea

Please sign in to comment.