.. 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_three_circles.py: `.pcolormesh` with `.demos.data_three_circles` ---------------------------------------------- An example data such that the detail can be visualized with `adaptiveheatmap.pcolormesh` while only the large differences are captured in `matplotlib.pyplot.pcolormesh`. .. rst-class:: sphx-glr-horizontal * .. image:: /gallery/images/sphx_glr_plot_pcolormesh_three_circles_001.png :class: sphx-glr-multi-img * .. image:: /gallery/images/sphx_glr_plot_pcolormesh_three_circles_002.png :class: sphx-glr-multi-img .. code-block:: python from matplotlib import pyplot import numpy from adaptiveheatmap.demos import data_three_circles import adaptiveheatmap pyplot.style.use("ggplot") X, Y, Z = data_three_circles() ah = adaptiveheatmap.pcolormesh(X, Y, Z) ah.set_xlabel('X') ah.set_ylabel('Y') ah.set_zlabel('Z') ah.relate_xyzq(0, numpy.tan(numpy.pi / 3), color='C2', noline=True) ah.relate_xyzq(+1, 0, color='C3', noline=True) ah.relate_xyzq(-1, 0, color='C4', noline=True) ah.relate_xyzq(1.5, 2, color='C5', noline=True) ah.figure.suptitle('adaptiveheatmap.pcolormesh') pyplot.figure() pyplot.pcolormesh(X, Y, Z) pyplot.title('pyplot.pcolormesh') pyplot.colorbar() pyplot.show() **Total running time of the script:** ( 0 minutes 0.139 seconds) .. _sphx_glr_download_gallery_plot_pcolormesh_three_circles.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_pcolormesh_three_circles.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_pcolormesh_three_circles.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_