Skip to content

Commit

Permalink
match syntax of entropy_phase.py for get_cmap
Browse files Browse the repository at this point in the history
  • Loading branch information
danibene committed May 19, 2024
1 parent 4fb624a commit 36fc948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neurokit2/hrv/hrv_nonlinear.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def _hrv_nonlinear_show(rri, rri_time=None, rri_missing=False, out={}, ax=None,
kernel = scipy.stats.gaussian_kde(values)
f = np.reshape(kernel(positions).T, xx.shape)

cmap = matplotlib.cm.get_cmap("Blues", 10)
cmap = plt.get_cmap("Blues")(np.linspace(0, 1, 10))
ax.contourf(xx, yy, f, cmap=cmap)
ax.imshow(np.rot90(f), extent=[ax1_min, ax1_max, ax2_min, ax2_max], aspect="auto")

Expand Down

0 comments on commit 36fc948

Please sign in to comment.