pcolormesh demo

pcolormesh can be used like matplotlib.pyplot.pcolormesh.

../_images/sphx_glr_plot_demo_pcolormesh_001.png
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()
ah = adaptiveheatmap.pcolormesh(X, Y, Z, 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.083 seconds)

Gallery generated by Sphinx-Gallery