Skip to content

Commit

Permalink
Set color of line collection to None when using a colormap so that li…
Browse files Browse the repository at this point in the history
…ne edges will always be colormapped.
  • Loading branch information
Carifio24 committed Oct 13, 2022
1 parent a59ef81 commit 6b25b1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions glue/viewers/scatter/layer_artist.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def set_linearcolor(self, color=None, data=None, **kwargs):
data_new = np.zeros((len(data) - 1) * 2)
data_new[::2] = data[:-1]
data_new[1::2] = data[1:]
self.set_color(None)
set_mpl_artist_cmap(self, data_new, **kwargs)
else:
if isinstance(color, np.ndarray):
Expand Down

0 comments on commit 6b25b1b

Please sign in to comment.