Skip to content

Instantly share code, notes, and snippets.

@KerryHalupka
Last active August 27, 2020 09:20
Show Gist options
  • Save KerryHalupka/619488c72d4f05b27e255335cac4e1d8 to your computer and use it in GitHub Desktop.
Save KerryHalupka/619488c72d4f05b27e255335cac4e1d8 to your computer and use it in GitHub Desktop.
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