imshow demo

imshow can be used like matplotlib.pyplot.imshow.

../_images/sphx_glr_plot_demo_imshow_001.png
from matplotlib import pyplot

from adaptiveheatmap.demos import data_hump_and_spike
import adaptiveheatmap

pyplot.style.use("ggplot")

_X, _Y, Z = data_hump_and_spike()
ah = adaptiveheatmap.imshow(Z, cmap='cividis')
ah.set_xlabel('X')
ah.set_ylabel('Y')
ah.set_zlabel('Z')
ah.relate_xyzq(80, 40)
ah.figure.suptitle('imshow')

pyplot.show()

Total running time of the script: ( 0 minutes 0.079 seconds)

Gallery generated by Sphinx-Gallery