Scatter Plot | teradataml - Scatter Plot - Teradata VantageCloud Lake

Lake - Analyze Your Data with ClearScape Analytics™

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2026-02-20
dita:mapPath
tcl1683670667798.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
tcl1683670667798

Use plot() function to generate a scatter plot on DataFrame.

  • X-Axis must be a DataFrame Column.
  • Y-Axis must be a DataFrame Column or a list of DataFrame Columns.
    • If Y-Axis is a DataFrame Column, a simple plot is generated.
    • If Y-Axis is a list of DataFrame Columns, a composite plot is generated.

      See Composite Plot for more details.

Scatter plot supports different markers and you can also choose the size of the marker. See Options for Plotting section for more details.

Example

  • >>> load_example_data("movavg", "ibm_stock")
  • >>> ibm_stock = DataFrame("ibm_stock")
    >>> ibm_stock
        name    period  stockprice
    id
    223  ibm  62/04/05       521.0
    19   ibm  61/06/13       487.0
    263  ibm  62/06/01       364.0
    61   ibm  61/08/11       497.0
    183  ibm  62/02/07       552.0
    265  ibm  62/06/05       370.0
    244  ibm  62/05/04       475.0
    305  ibm  62/08/01       385.0
    326  ibm  62/08/30       387.0
    122  ibm  61/11/08       596.0
  • >>> ibm_stock.plot(x=ibm_stock.period, y=ibm_stock.stockprice,
                       kind='scatter', xlabel='', ylabel='',
                       color="orange", grid_color='brown',
                       grid_linewidth=2, grid_linestyle="-.",
                       marker="p", marker_size=8)

    Scatter Plot