Commit 785f39e6 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

add demo2.ptx

parent a480522e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -14,9 +14,11 @@ C API.
  <a href="https://plotfx.org">Documentation</a>
</h4>

---

<p align="center">
  <br>
  <img src="/examples/other/demo.svg" width="90%">
  <img src="/examples/other/demo2.svg">
</p>

<p align="center">
+5 −2
Original line number Diff line number Diff line
- section: Basic Charts
  files:
    - file: pointcharts/simple_scatter
      desc: A minimal scatter plot.

- section: Line Charts
  files:
    - file: linecharts/simple_timeseries
@@ -32,8 +37,6 @@

- section: Scatter Plots
  files:
    - file: pointcharts/simple_scatter
      desc: A minimal scatter plot.

    - file: pointcharts/pointchart_with_labels
      desc: A scatter plot with labelled data points.
+213 −0
Original line number Diff line number Diff line
width: 1730px;
height: 920px;

box {
  position: top;
  height: 480px;

  box {
    width: 800px;
    height: 400px;

    position: left;

    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";
    }
  }

  box {
    width: 800px;
    height: 400px;

    position: right;

    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: right;
      layout: linear(100);
    }

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

}

box {
  position: top;

  box {
    width: 800px;
    height: 400px;

    position: left;

    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";
    }
  }

  box {
    width: 800px;
    height: 400px;

    position: right;

    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: right;
      layout: linear(100);
    }

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

}
+4331 −0

File added.

Preview size limit exceeded, changes collapsed.