.. 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_circles_and_nans.py: `.pcolormesh` with `.demos.data_circles_and_nans` ------------------------------------------------- Data containing NaNs. .. image:: /gallery/images/sphx_glr_plot_pcolormesh_circles_and_nans_001.png :class: sphx-glr-single-img .. code-block:: python from matplotlib import pyplot from adaptiveheatmap.demos import data_circles_and_nans import adaptiveheatmap pyplot.style.use("ggplot") X, Y, Z = data_circles_and_nans() ah = adaptiveheatmap.pcolormesh(X, Y, Z) ah.set_xlabel('X') ah.set_ylabel('Y') ah.set_zlabel('Z') ah.relate_xyzq(-1, -1, color='C2', noline=True) ah.relate_xyzq(-1, +1, color='C3', noline=True) ah.relate_xyzq(+1, -1, color='C4', noline=True) ah.relate_xyzq(+1, +1, color='C5', noline=True) ah.figure.suptitle('pcolormesh') pyplot.show() **Total running time of the script:** ( 0 minutes 0.133 seconds) .. _sphx_glr_download_gallery_plot_pcolormesh_circles_and_nans.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_pcolormesh_circles_and_nans.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_pcolormesh_circles_and_nans.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_