Skip to content

Commit

Permalink
Updated drop axis routine to squeeze axis 1 for vertex grids
Browse files Browse the repository at this point in the history
  • Loading branch information
jlarsen-usgs authored Jun 7, 2019
1 parent bbb47de commit 8822069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flopy/plot/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def plot_array(self, a, masked_values=None, **kwargs):
elif self.mg.grid_type == "vertex":
if a.ndim == 3:
if a.shape[0] == 1:
a = np.squeeze(a, axis=0)
a = np.squeeze(a, axis=1)
plotarray = a[self.layer, :]
else:
raise Exception("Array must be of dimension 1 or 2")
Expand Down Expand Up @@ -241,7 +241,7 @@ def contour_array(self, a, masked_values=None, **kwargs):
elif self.mg.grid_type == "vertex":
if a.ndim == 3:
if a.shape[0] == 1:
a = np.squeeze(a, axis=0)
a = np.squeeze(a, axis=1)
plotarray = a[self.layer, :]
else:
raise Exception("Array must be of dimension 1 or 2")
Expand Down

0 comments on commit 8822069

Please # to comment.