View on

Example: pointcharts/simple_scatter

Output File:

Source File:

width: 1200px;
height: 600px;

scale-x-min: 0;
scale-x-max: 400;

scale-y-min: 0;
scale-y-max: 200;

background-color: #eee;

gridlines {
  color: #fff;
  stroke: 2pt;
  layout-x: linear(40);
  layout-y: linear(40);
}

gridlines {
  color: #fff;
  stroke: 1pt;
  layout-x: linear(20);
  layout-y: linear(20);
}

points {
  xs: csv(tests/testdata/gauss2d.csv, x);
  ys: csv(tests/testdata/gauss2d.csv, y);
  size: 2pt;
}

axis {
  position: bottom;
  layout: linear(40);
}

axis {
  position: left;
  layout: linear(100);
}

legend {
  position: top right inside;
  items: "Random Data";
}

Run this example:

$ plotfx --in examples/pointcharts/simple_scatter.ptx --out output.svg
Edit this page on GitHub