Mesh Plot | teradataml - Mesh Plot - Teradata Package for Python

Teradata® Package for Python User Guide

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Package for Python
Release Number
20.00
Published
December 2024
ft:locale
en-US
ft:lastEdition
2025-01-23
dita:mapPath
nvi1706202040305.ditamap
dita:ditavalPath
plt1683835213376.ditaval
dita:id
rkb1531260709148
lifecycle
latest
Product Category
Teradata Vantage

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()

    Mesh Plot