Commit 2a8976f3 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

update examples

parent 191159a4
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
(width 2048px)
(height 1200px)
(dpi 220)

(default limit-x (-180 180))
(default limit-y (-80 100))

(draw/rectangle
    fill #f9f9f9)

(plot/grid
    tick-placement-x (linear 10)
    tick-placement-y (none)
    color (rgba 0 0 0 .1)
    stroke-style (dashed)
    stroke-width .5pt)

(plot/lines
    data (geojson /home/paul/downloads/mapex/submarine_cables.geojson)
    stroke-color #666
    stroke-width .5pt)

(plot/polygons
    data (geojson /home/paul/downloads/mapex/world.geojson)
    fill #e8e8e8
    stroke-color #bbb
    stroke-width .2pt)

(figure/legend
    item (label "Submarine cables"))
+40 −0
Original line number Diff line number Diff line
(layer-resize 2048px 1536px)
(layer-set-dpi 320)

(draw-rectangle
    fill #eff7fe)

(draw-grid
    limit-x (-100 -77)
    limit-y (16 32)
    tick-placement-x (linear 5)
    tick-placement-y (linear 5)
    color (rgba 0 0 0 .1)
    stroke-style (dashed))

(draw-polygons
    data (geojson test/testdata/gulf_of_mexico.geojson)
    limit-x (-100 -77)
    limit-y (16 32)
    fill #ffefdb
    stroke-color #999187
    stroke-width .7pt)

(draw-text
    position (90 23)
    font-size 14pt
    color (rgba 0 0 0 .6)
    text "Gulf of Mexico")

(draw-axes
    padding 32px
    limit-x (-100 -77)
    limit-y (16 32)
    label-placement-x (linear 5)
    label-placement-y (linear 1)
    title-bottom "Longitude"
    title-left "Lattitude")

(layer-extend-top 40px)

(draw-text position (50% 20px) text "Title")
+2 −2
Original line number Diff line number Diff line
(width 2048px)
(height 512px)
(width 1600px)
(height 900px)
(dpi 240)

(default scale-x (categorical (A B C D E F)))
+9 −2
Original line number Diff line number Diff line
(width 2048px)
(height 512px)
(width 1600px)
(height 800px)
(dpi 240)

(default font "Comic Sans MS")
@@ -10,8 +10,15 @@
    position (bottom left)
    label-format-y (fixed 2)
    label-format-x (datetime "%H:%M:%S")
    label-placement-x (linear 3600)
    label-placement-y (linear 20))

(draw/rectangle
    fill #f2f2f2)

(plot/grid
    color #fff)

(plot/lines
    data-x (csv "test/testdata/measurement.csv" time)
    data-y (csv "test/testdata/measurement.csv" value2))
+2 −2
Original line number Diff line number Diff line
(width 2048px)
(height 1024px)
(width 1600px)
(height 900px)
(dpi 240)

(default limit-x (0 400))
Loading