Example: maps/gulf-of-mexico

Output File:

Source File:

(width 2048px)
(height 1536px)
(dpi 320)

(default limit-x (-100 -77))
(default limit-y (16 32))

(plot/axes
    label-placement-x (linear 5)
    label-placement-y (linear 1)
    title-bottom "Longitude"
    title-left "Lattitude")

(draw/rectangle
    fill #eff7fe)

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

(plot/polygons
    data (geojson test/testdata/gulf_of_mexico.geojson)
    fill #ffefdb
    stroke-color #999187
    stroke-width .7pt)

(plot/labels
    data-x (-90)
    data-y (23.5)
    label-font-size 14pt
    label-color (rgba 0 0 0 .6)
    labels ("Gulf of Mexico"))

Run this example:

$ clip --in examples/maps/gulf-of-mexico.clp --out output.svg
Edit this page on GitHub