Commit 17dbde12 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

add examples/charts-scientific/line_markers.fvz

parent a77c7b08
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -476,7 +476,7 @@ ReturnCode build(
  /* inherit defaults */
  auto config = std::make_shared<LegendConfig>();
  config->item_row_padding = from_em(.3);
  config->item_column_padding = from_em(1);
  config->item_column_padding = from_em(1.2);
  config->margins = std::array<Measure, 4>{from_em(1), from_em(1), from_em(1), from_em(1)};
  config->padding = std::array<Measure, 4>{from_em(.8), from_em(1), from_em(.8), from_em(1)};
  for (size_t i = 0; i < 4; ++i) {
+7 −7
Original line number Diff line number Diff line
@@ -8,14 +8,14 @@
  <path fill="#000000" d="M604 264.372 M596 264.372 a4 4 0 1 0 8 0 a4 4 0 1 0 -8 0 "/>
  <path fill="#000000" d="M896.667 222.67 M888.667 222.67 a4 4 0 1 0 8 0 a4 4 0 1 0 -8 0 "/>
  <path fill="#000000" d="M1189.33 226.504 M1181.33 226.504 a4 4 0 1 0 8 0 a4 4 0 1 0 -8 0 "/>
  <path stroke-width="1.000000" stroke="#000000" fill="none" d="M886.647 379.467 L1170.67 379.467 "/>
  <path stroke-width="1.000000" stroke="#000000" fill="none" d="M880.78 379.467 L1170.67 379.467 "/>
  <path stroke-width="1.000000" stroke="#000000" fill="none" d="M1170.67 379.467 L1170.67 420.933 "/>
  <path stroke-width="1.000000" stroke="#000000" fill="none" d="M886.647 420.933 L1170.67 420.933 "/>
  <path stroke-width="1.000000" stroke="#000000" fill="none" d="M886.647 379.467 L886.647 420.933 "/>
  <text x="917.446875" y="405.200000" fill="#000000" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif" font-weight="500.000000">Series A</text>
  <path fill="#cccccc" d="M909.014 400.2 M898.014 400.2 a5.5 5.5 0 1 0 11 0 a5.5 5.5 0 1 0 -11 0 "/>
  <text x="1002.887500" y="405.200000" fill="#000000" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif" font-weight="500.000000">Series B</text>
  <path fill="#888888" d="M994.454 400.2 M983.454 400.2 a5.5 5.5 0 1 0 11 0 a5.5 5.5 0 1 0 -11 0 "/>
  <path stroke-width="1.000000" stroke="#000000" fill="none" d="M880.78 420.933 L1170.67 420.933 "/>
  <path stroke-width="1.000000" stroke="#000000" fill="none" d="M880.78 379.467 L880.78 420.933 "/>
  <text x="911.580208" y="405.200000" fill="#000000" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif" font-weight="500.000000">Series A</text>
  <path fill="#cccccc" d="M903.147 400.2 M892.147 400.2 a5.5 5.5 0 1 0 11 0 a5.5 5.5 0 1 0 -11 0 "/>
  <text x="999.954167" y="405.200000" fill="#000000" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif" font-weight="500.000000">Series B</text>
  <path fill="#888888" d="M991.521 400.2 M980.521 400.2 a5.5 5.5 0 1 0 11 0 a5.5 5.5 0 1 0 -11 0 "/>
  <text x="1089.140625" y="405.200000" fill="#000000" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif" font-weight="500.000000">Combined</text>
  <path fill="#000000" d="M1080.71 400.2 M1069.71 400.2 a5.5 5.5 0 1 0 11 0 a5.5 5.5 0 1 0 -11 0 "/>
  <path stroke-width="1.333333" stroke="#000000" fill="none" d="M14.6667 44.4 L1185.33 44.4 "/>
+4 −4
Original line number Diff line number Diff line
@@ -39,12 +39,12 @@
  <path fill="#4572a7" d="M717.786 36.5896 M712.453 36.5896 a2.66667 2.66667 0 1 0 5.33333 0 a2.66667 2.66667 0 1 0 -5.33333 0 "/>
  <path fill="#4572a7" d="M783.253 52.2489 M777.92 52.2489 a2.66667 2.66667 0 1 0 5.33333 0 a2.66667 2.66667 0 1 0 -5.33333 0 "/>
  <path fill="#4572a7" d="M848.72 64.7763 M843.387 64.7763 a2.66667 2.66667 0 1 0 5.33333 0 a2.66667 2.66667 0 1 0 -5.33333 0 "/>
  <text x="392.150521" y="131.533333" fill="#000000" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif" font-weight="500.000000">Москва</text>
  <path fill="#89a54e" d="M383.717 126.533 M372.717 126.533 a5.5 5.5 0 1 0 11 0 a5.5 5.5 0 1 0 -11 0 "/>
  <text x="389.217187" y="131.533333" fill="#000000" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif" font-weight="500.000000">Москва</text>
  <path fill="#89a54e" d="M380.784 126.533 M369.784 126.533 a5.5 5.5 0 1 0 11 0 a5.5 5.5 0 1 0 -11 0 "/>
  <text x="473.044271" y="131.533333" fill="#000000" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif" font-weight="500.000000">תל אביב</text>
  <path fill="#4572a7" d="M464.611 126.533 M453.611 126.533 a5.5 5.5 0 1 0 11 0 a5.5 5.5 0 1 0 -11 0 "/>
  <text x="551.938021" y="132.533333" fill="#000000" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif" font-weight="500.000000">北京市</text>
  <path fill="#aa4643" d="M543.505 126.533 M532.505 126.533 a5.5 5.5 0 1 0 11 0 a5.5 5.5 0 1 0 -11 0 "/>
  <text x="554.871354" y="132.533333" fill="#000000" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif" font-weight="500.000000">北京市</text>
  <path fill="#aa4643" d="M546.438 126.533 M535.438 126.533 a5.5 5.5 0 1 0 11 0 a5.5 5.5 0 1 0 -11 0 "/>
  <path stroke-width="1.333333" stroke="#000000" fill="none" d="M86.6375 155.6 L885.333 155.6 "/>
  <path stroke-width="1.333333" stroke="#000000" fill="none" d="M125.918 150.267 L125.918 155.6 "/>
  <path stroke-width="1.333333" stroke="#000000" fill="none" d="M191.384 150.267 L191.384 155.6 "/>
+38 −0
Original line number Diff line number Diff line
(set width 2000px)
(set height 600px)
(set dpi 200)
(set font "Latin Modern Roman")

(plot
  limit-y (-4 5)
  limit-x (0 1000)
  axis-x-label-format (scientific)
  axis-x-label-placement (linear-interval 100 100 900)
  lines (
      data-x (100 200 300 400 500 600 700 800 900)
      data-y (-1.2   -1.8   -1.3   -1.6   -1.5   -1.3   -1.8   -1.9   -2.0)
      stroke 1pt)
  points (
      data-x (100 200 300 400 500 600 700 800 900)
      data-y (-1.2   -1.8   -1.3   -1.6   -1.5   -1.3   -1.8   -1.9   -2.0)
      marker-shape (pentagon)
      marker-size 8pt)
  lines (
      data-x (100 200 300 400 500 600 700 800 900)
      data-y (1.2   1.8   1.3   0.6   1.5   1.3   1.8   1.7   1.9)
      stroke 1pt)
  points (
      data-x (100 200 300 400 500 600 700 800 900)
      data-y (1.2   1.8   1.3   0.6   1.5   1.3   1.8   1.7   1.9)
      marker-shape (square-bullet)
      marker-size 8pt)
  grid (
    color #eee
    tick-placement-y (none))
  legend-overlay (
      border none
      margin-top .5em
      margin-left 1em
      item-flow on
      item (label "Series A" marker-shape (pentagon))
      item (label "Series B" marker-shape (square-bullet))))
+332 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading