invisible linestyle

This commit is contained in:
Motiejus Jakštys 2021-05-19 22:57:48 +03:00 committed by Motiejus Jakštys
parent 05d7cc0a77
commit 1423dca285
2 changed files with 6 additions and 1 deletions

View File

@ -109,6 +109,8 @@ selfcrossing-1-before_2LINESTYLE = dotted
selfcrossing-1-before_3SELECT = wm_visuals where name='selfcrossing-1-newline' selfcrossing-1-before_3SELECT = wm_visuals where name='selfcrossing-1-newline'
selfcrossing-1-after_WIDTHDIV = 4 selfcrossing-1-after_WIDTHDIV = 4
selfcrossing-1-after_1SELECT = wm_debug where name='selfcrossing-1' AND stage='dcrossings' AND gen=1 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 .faux_test-integration: tests-integration.sql wm.sql .faux_aggregate-rivers
./db -f $< ./db -f $<

View File

@ -50,8 +50,11 @@ def plot_args(color, maybe_cmap, maybe_linestyle):
else: else:
r = {'color': color} r = {'color': color}
if maybe_linestyle: if maybe_linestyle == 'invisible':
r['color'] = (0, 0, 0, 0)
elif maybe_linestyle:
r['linestyle'] = maybe_linestyle r['linestyle'] = maybe_linestyle
return r return r
def main(): def main():