Use plot() function to generate a mesh plot on DataFrame.
- X-Axis must be a DataFrame Column.
- Y-Axis must be a DataFrame Column.
- Along with Y-Axis, mesh plot requires another argument called scale.
Example
>>> load_example_data("uaf", ["waveletTable"])
>>> df = DataFrame("waveletTable")
>>> df
x t y c ID a 94.0 800.0 701.0 -2.034400e-22 a 94.0 800.0 702.0 -4.217551e-22 a 94.0 800.0 702.5 -5.192715e-22 a 94.0 800.0 703.0 -5.182389e-22 a 94.0 800.0 704.0 5.473949e-22 a 94.0 800.0 704.5 2.389177e-21 a 94.0 800.0 703.5 -2.592409e-22 a 94.0 800.0 701.5 -3.051780e-22 a 94.0 800.0 700.5 -1.266145e-22 a 94.0 800.0 700.0 -7.378603e-23
>>> plot = df.plot(x=df.x, y=df.y, scale=df.c, kind='mesh', cmap='matter', vmin=-0.5, vmax=0.5)
>>> plot.show()