.. 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_pcolormesh_data.py: `pcolormesh <.core.pcolormesh>` with ``data`` keyword ----------------------------------------------------- As `matplotlib.pyplot.pcolormesh`, `pcolormesh <.core.pcolormesh>` can take ``data`` keyword. .. image:: /gallery/images/sphx_glr_plot_pcolormesh_data_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("seaborn-pastel") X, Y, Z = data_hump_and_spike() data = dict(X=X, Y=Y, Z=Z) ah = adaptiveheatmap.pcolormesh('X', 'Y', 'Z', data=data, cmap='plasma') ah.set_xlabel('X') ah.set_ylabel('Y') ah.set_zlabel('Z') ah.relate_xyzq(1, -0.2) ah.figure.suptitle('pcolormesh') pyplot.show() **Total running time of the script:** ( 0 minutes 0.080 seconds) .. _sphx_glr_download_gallery_plot_pcolormesh_data.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_pcolormesh_data.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_pcolormesh_data.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_