View on

Example: linecharts/irregular_data

Output File:

Source File:

width: 1200px;
height: 480px;

scale-y-max: 50;
scale-y-min: -35;

scale-x-min: -12;
scale-x-max: 22;


lines {
  xs: csv('tests/testdata/irregular_data1.csv', x);
  ys: csv('tests/testdata/irregular_data1.csv', y);
  colors: #06c;
}

points {
  xs: csv('tests/testdata/irregular_data1.csv', x);
  ys: csv('tests/testdata/irregular_data1.csv', y);
  colors: #06c;
}

lines {
  xs: csv('tests/testdata/irregular_data2.csv', x);
  ys: csv('tests/testdata/irregular_data2.csv', y);
  colors: #c06;
}

points {
  xs: csv('tests/testdata/irregular_data2.csv', x);
  ys: csv('tests/testdata/irregular_data2.csv', y);
  colors: #c06;
}

axis {
  position: left;
}

axis {
  position: bottom;
}

legend {
  position: bottom left inside;
  items: "Series A", "Series B";
  colors: #06c, #c06;
}

Run this example:

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