Skip to content

Commit

Permalink
Adding in changes from yt-project#2448
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewturk committed Apr 1, 2020
1 parent a46431d commit e63c13e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yt/visualization/color_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,10 @@ def make_colormap(ctuple_list, name=None, interpolate=True):

# Interpolate the R, G, and B channels from one color to the next
# Use np.round to make sure you're on a discrete index
interval = np.round(next_index)-np.round(rolling_index)
interval = int(np.round(next_index)-np.round(rolling_index))
for j in np.arange(3):
cmap[int(np.rint(rolling_index)):int(np.rint(next_index)), j] = \
np.linspace(color[j], next_color[j], interval)
np.linspace(color[j], next_color[j], num=interval)

rolling_index = next_index

Expand Down

0 comments on commit e63c13e

Please sign in to comment.