Skip to content
Effect Scatter

Effect Scatter

effect_scatter() over named columns of a dataframe_mojo DataFrame (#743). Each argument names a column instead of holding the values. The axis titles default to the x and y column names.

Effect Scatter

Usage

from dataviz import effect_scatter
from dataviz import save
from dataviz import Theme

def main() raises:
    # Illustrative CI jobs selected after crossing both duration and
    # memory review thresholds; halos emphasize the flagged runs.
    var duration_minutes: List[Float64] = [
        18, 22, 27, 31, 35, 39, 44, 48, 53, 57, 63, 71,
    ]
    var peak_memory_gb: List[Float64] = [
        11.2, 14.8, 12.7, 18.3, 16.5, 22.1, 19.4, 25.8, 23.6, 29.2,
        27.5, 31.4,
    ]

    var c = effect_scatter(
        duration_minutes,
        peak_memory_gb,
        theme=Theme(halo_alpha=55),
        title="Illustrative Resource-Intensive CI Jobs",
        x_title="Build duration (minutes)",
        y_title="Peak memory (GB)",
    )
    save(c, "docs/src/examples/out_effect_scatter.svg")

See Data shapes for shared input conventions.

Args:

  • df: The frame to read.
  • x: The numeric column for this channel.
  • y: The numeric column for this channel.
  • theme: See the list overload.
  • width: See the list overload.
  • height: See the list overload.
  • title: See the list overload.
  • subtitle: See the list overload.
  • x_title: See the list overload.
  • y_title: See the list overload.

Related

Related charts: Single Axis

Relevant API: effect_scatter