Skip to content

Commit

Permalink
get array of colors instead of colormap object
Browse files Browse the repository at this point in the history
  • Loading branch information
danibene authored May 20, 2024
1 parent b3e3828 commit 836f62a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neurokit2/complexity/entropy_phase.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ def entropy_phase(signal, delay=1, k=4, show=False, **kwargs):
Tx = Tx.astype(bool)
Ys = np.sin(angles) * limx * np.sqrt(2)
Xs = np.cos(angles) * limx * np.sqrt(2)
colors = plt.get_cmap("jet").resampled(k)
resampled_cmap = plt.get_cmap("jet").resampled(k)
colors = resampled_cmap(np.linspace(0, 1, k))

plt.figure()
for i in range(k):
Expand Down

0 comments on commit 836f62a

Please sign in to comment.