Skip to content

Commit

Permalink
Cleaned up colormesh utility
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Nov 30, 2017
1 parent 9f98301 commit 90ad846
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions holoviews/plotting/bokeh/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,9 +606,9 @@ def date_to_integer(date):


def colormesh(X, Y):
ma = np.ma
newaxis = np.newaxis
compress = np.compress
"""
Generates polygon coordinate data from a mesh of X and Y values.
"""

X1 = X[0:-1, 0:-1].ravel()
Y1 = Y[0:-1, 0:-1].ravel()
Expand All @@ -618,7 +618,6 @@ def colormesh(X, Y):
Y3 = Y[1:, 1:].ravel()
X4 = X[0:-1, 1:].ravel()
Y4 = Y[0:-1, 1:].ravel()
npoly = len(X1)

X = np.column_stack([X1, X2, X3, X4, X1])
Y = np.column_stack([Y1, Y2, Y3, Y4, Y1])
Expand Down

0 comments on commit 90ad846

Please sign in to comment.