non-default colors

This commit is contained in:
Motiejus Jakštys 2020-05-27 10:59:43 +03:00
parent 006debd28d
commit ebd7143e9f
2 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@ crossing-$(1)-$(2)-%.pdf: layer2img.py db/.faux_$(1)-$(2)-%
endef
define gpkg2pdf
$(2).pdf: $(1).gpkg
$(2).pdf: $(1).gpkg ./layer2img.py $(4)
./layer2img.py $(3) --infile=$(1).gpkg --outfile $(2).pdf
endef
@ -31,7 +31,7 @@ $(eval $(call algo2img,sinewave,visvalingam,52x12))
$(eval $(call algo2img,zeimena,douglas,52x74))
$(eval $(call algo2img,zeimena,visvalingam,52x74))
$(eval $(call gpkg2pdf,sinewave,sinewave,--size=52x15))
$(eval $(call gpkg2pdf,zeimena,zeimena,--size=135x191 --rect $(CROSSING)))
$(eval $(call gpkg2pdf,zeimena,zeimena,--size=135x191 --overlay-infile rectangle.gpkg,rectangle.gpkg))
$(eval $(call gpkg2pdf,zeimena,crossing,--size=105x74 --clip $(CROSSING)))
sinewave.gpkg: fig2layer.py

View File

@ -1,5 +1,5 @@
#!/usr/bin/python3
# https://gis.stackexchange.com/questions/131716/plot-shapefile-with-matplotlib
# blue: #377eb8
import argparse
import geopandas
@ -57,13 +57,13 @@ def main():
fig, ax = plt.subplots()
if args.size:
fig.set_size_inches(args.size)
primary.plot(ax=ax)
primary.plot(ax=ax, color='#4daf4a')
if c := args.clip:
ax.set_xlim(left=c[0], right=c[2])
ax.set_ylim(bottom=c[1], top=c[3])
if overlay is not None:
overlay.plot(ax=ax)
overlay.plot(ax=ax, color='#e41a1c')
ax.axis('off')
ax.margins(0, 0)