Commit f5b10e06 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

set the default dpi to 192

parent 20fd7057
Loading
Loading
Loading
Loading
+14 −16
Original line number Diff line number Diff line
(size 2048px 768px)
(dpi 240)
(font "Latin Modern Roman")
(limit-x (0 7200))
(limit-y (0 100))
class: plot;

(axes
    label-format-x (datetime "%H:%M:%S")
    label-placement-x (linear-interval 900 900 7000))
limit-x: 0 7200;
limit-y: 0 100;

(grid
    stroke-color (rgba 0 0 0 0.2)
    stroke-style dashed
    tick-placement-x (none))
axes {
  font: "Latin Modern Roman";
  font-size: 12pt;
  label-format-x: datetime("%H:%M:%S");
  label-placement-x: linear-interval(900 900 7000);
}

(lines
    data-x (csv "test/testdata/timeseries.csv" time)
    data-y (csv "test/testdata/timeseries.csv" value)
    stroke-width 0.8pt)
lines {
  data-x: csv(test/testdata/timeseries.csv time);
  data-y: csv(test/testdata/timeseries.csv value);
  stroke-width: 0.8pt;
}
+3 −3
Original line number Diff line number Diff line
@@ -23,9 +23,9 @@ using namespace std::placeholders;
namespace clip {

Layer::Layer() :
    width(from_px(1024)),
    height(from_px(512)),
    dpi(96),
    width(from_px(1600)),
    height(from_px(800)),
    dpi(192),
    background_color(Color::fromRGB(1, 1, 1)),
    foreground_color(Color::fromRGB(0, 0, 0)),
    text_color(Color::fromRGB(0, 0, 0)),
+1 −0
Original line number Diff line number Diff line
class: draw;
dpi: 96;
size: 100px 100px;

rectangle {
+1 −0
Original line number Diff line number Diff line
class: draw;
dpi: 96;
size: 100px 100px;

rectangle {
+1 −0
Original line number Diff line number Diff line
class: draw;
dpi: 96;
size: 100px 100px;

rectangle {
Loading