colors
This commit is contained in:
parent
5d2ca6f0b4
commit
64d6f0e2a3
@ -23,7 +23,7 @@ endef
|
|||||||
|
|
||||||
define gpkg2pdf
|
define gpkg2pdf
|
||||||
$(1): $(2) ./layer2img.py
|
$(1): $(2) ./layer2img.py
|
||||||
./layer2img.py $(3) --infile=$$< --outfile $(1).pdf
|
./layer2img.py $(3) --infile=$$< --outfile $(1)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call algo2img,sinewave,douglas,52x12))
|
$(eval $(call algo2img,sinewave,douglas,52x12))
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
# blue: #377eb8
|
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import geopandas
|
import geopandas
|
||||||
import psycopg2
|
import psycopg2
|
||||||
@ -10,6 +8,7 @@ from matplotlib import rc, patches
|
|||||||
|
|
||||||
INCH = 25.4 # mm
|
INCH = 25.4 # mm
|
||||||
BOUNDS = ('xmin', 'ymin', 'xmax', 'ymax')
|
BOUNDS = ('xmin', 'ymin', 'xmax', 'ymax')
|
||||||
|
GREEN, ORANGE, PURPLE = '#1b9e77', '#d95f02', '#7570b3'
|
||||||
|
|
||||||
|
|
||||||
def plt_size(string):
|
def plt_size(string):
|
||||||
@ -57,13 +56,13 @@ def main():
|
|||||||
fig, ax = plt.subplots()
|
fig, ax = plt.subplots()
|
||||||
if args.size:
|
if args.size:
|
||||||
fig.set_size_inches(args.size)
|
fig.set_size_inches(args.size)
|
||||||
primary.plot(ax=ax, color='#4daf4a')
|
primary.plot(ax=ax, color=PURPLE)
|
||||||
if c := args.clip:
|
if c := args.clip:
|
||||||
ax.set_xlim(left=c[0], right=c[2])
|
ax.set_xlim(left=c[0], right=c[2])
|
||||||
ax.set_ylim(bottom=c[1], top=c[3])
|
ax.set_ylim(bottom=c[1], top=c[3])
|
||||||
|
|
||||||
if overlay is not None:
|
if overlay is not None:
|
||||||
overlay.plot(ax=ax, color='#e41a1c')
|
overlay.plot(ax=ax, color=ORANGE)
|
||||||
|
|
||||||
ax.axis('off')
|
ax.axis('off')
|
||||||
ax.margins(0, 0)
|
ax.margins(0, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user