.. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_plot_demo_imshow.py: `imshow <.core.imshow>` demo ---------------------------- `imshow <.core.imshow>` can be used like `matplotlib.pyplot.imshow`. .. image:: /gallery/images/sphx_glr_plot_demo_imshow_001.png :class: sphx-glr-single-img .. code-block:: python 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) .. _sphx_glr_download_gallery_plot_demo_imshow.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_demo_imshow.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_demo_imshow.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_