Skip to content
Effect Scatter

Effect Scatter

A scatter plot with a halo drawn under each point.

Effect Scatter

Usage

from dataviz_mojo import effect_scatter
from dataviz_mojo.plot import save
from dataviz_mojo.theme import Theme

def main() raises:
    var longitude: List[Float64] = [10.0, 25.0, 40.0, 60.0, 80.0]
    var latitude: List[Float64] = [15.0, 40.0, 20.0, 55.0, 30.0]

    var c = effect_scatter(longitude, latitude)
    save(c, "docs/src/examples/out_effect_scatter.svg")

Args:

  • x: The continuous x column, one entry per point.
  • y: The continuous y column, one entry per point.
  • theme: Full styling knobs beyond this function’s own parameters (colors, margins, fonts, gridlines, …) – see Theme’s docstring.
  • width: Pixel width of the returned Plot (.size()).
  • height: Pixel height of the returned Plot (.size()).
  • title: The chart’s title, shown above the plot.
  • subtitle: A secondary line shown under the title.
  • x_title: The x-axis caption.
  • y_title: The y-axis caption.