Last active
August 27, 2020 09:20
-
-
Save KerryHalupka/619488c72d4f05b27e255335cac4e1d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fig, ax = plt.subplots(1,1) | |
im = ax.imshow(z, cmap=get_continuous_cmap(hex_list, float_list=[0, 0.05, 0.5, 0.6, 0.85, 0.9, 0.92, 1])) | |
fig.colorbar(im) | |
ax.yaxis.set_major_locator(plt.NullLocator()) # remove y axis ticks | |
ax.xaxis.set_major_locator(plt.NullLocator()) # remove x axis ticks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment