User Guide
Reference
Examples
Download
Github

Example: charts-scientific/multiple_y_axes

Output File:

Source File:

size: 2048px 768px;
dpi: 240;
font: "Latin Modern Roman";
limit-x: 0 7200;

axes {
  label-format-x: datetime("%H:%M:%S");
  label-placement-x: linear-interval(900 900 7000);
  limit-left: 0 100;
  label-placement-left: linear-interval(10 10 50);
  limit-right: 0 1;
  label-placement-right: linear-interval(0.1 0.5 1.0);
}

grid {
  stroke-color: rgba(0 0 0 0.2);
  stroke-style: dashed;
  tick-placement-x: none;
}

lines {
  data-x: csv("testdata/measurement2.csv" time);
  data-y: csv("testdata/measurement2.csv" value3);
  limit-y: -4 10;
  stroke-width: 0.8pt;
}

lines {
  data-x: csv("testdata/measurement2.csv" time);
  data-y: csv("testdata/measurement2.csv" value3);
  limit-y: -16 6;
  stroke-width: 0.8pt;
}

Run this example:

$ clip --export output.svg charts-scientific/multiple_y_axes.clp
Edit this page on GitHub