From 98cf944a0a62f3628b5b6182121a9d1eb9ed920f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 17 Apr 2021 20:25:42 +0300 Subject: [PATCH] invisible linestyle --- IV/Makefile | 2 ++ IV/layer2img.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/IV/Makefile b/IV/Makefile index e24f672..4cec5ce 100644 --- a/IV/Makefile +++ b/IV/Makefile @@ -109,6 +109,8 @@ selfcrossing-1-before_2LINESTYLE = dotted selfcrossing-1-before_3SELECT = wm_visuals where name='selfcrossing-1-newline' selfcrossing-1-after_WIDTHDIV = 4 selfcrossing-1-after_1SELECT = wm_debug where name='selfcrossing-1' AND stage='dcrossings' AND gen=1 +selfcrossing-1-after_2SELECT = wm_debug where name='selfcrossing-1' AND stage='bbends' AND gen=1 +selfcrossing-1-after_2LINESTYLE = invisible .faux_test-integration: tests-integration.sql wm.sql .faux_aggregate-rivers ./db -f $< diff --git a/IV/layer2img.py b/IV/layer2img.py index b479468..108dd4d 100644 --- a/IV/layer2img.py +++ b/IV/layer2img.py @@ -50,8 +50,11 @@ def plot_args(color, maybe_cmap, maybe_linestyle): else: r = {'color': color} - if maybe_linestyle: + if maybe_linestyle == 'invisible': + r['color'] = (0, 0, 0, 0) + elif maybe_linestyle: r['linestyle'] = maybe_linestyle + return r def main():