atompy.PcolormeshData#
- class atompy.PcolormeshData(x, y, c)[source]#
Store 2D data such that it can be plotted with pcolormesh
See
matplotlib.pyplot.pcolormeshMethods
__call__([index])Return x, y, c or a dictionary of all three.
Examples
# 'pcolormesh_data' is a PcolormeshData object # following are examples on how to use it to plot things X, Y, C = pcolormesh_data plt.pcolormesh(X, Y, C) plt.pcolormesh(pcolormesh_data.x, pcolormesh_data.y, pcolormesh_data.c) plt.pcolormesh(pcolormesh_data[0], pcolormesh_data[1], pcolormesh_data[2]) plt.pcolormesh(pcolormesh_data(0), pcolormesh_data(1), pcolormesh_data(2)) plt.pcolormesh(*pcolormesh_data) plt.pcolormesh(**pcolormesh_data())
- __init__(x, y, c)#
Methods
__init__(x, y, c)Attributes
zAlias for
PcolormeshData.c.xyc