stud

study spacejunk
Log | Files | Refs | LICENSE

commit d354d77d4415558fc0b0cc906edb5a0741f09234 (tree)
parent f907cec1a6410a4cad203976efeb651fc45139e3
Author: Motiejus Jakštys <motiejus@uber.com>
Date:   Sun,  9 May 2021 11:29:34 +0300

some polygons are now less colored

Diffstat:
MIV/Makefile | 3+++
MIV/layer2img.py | 10+++++++++-
MIV/mj-msc.tex | 4++--
3 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/IV/Makefile b/IV/Makefile @@ -102,10 +102,13 @@ fig8-definition-of-a-bend_2SELECT = wm_debug where name='fig8' AND stage='bbends fig8-elimination-gen1_1SELECT = wm_debug where name='fig8' AND stage='bbends' AND gen=1 fig8-elimination-gen1_2SELECT = wm_debug where name='fig8' AND stage='bbends-polygon' AND gen=1 +fig8-elimination-gen1_2LINESTYLE = dotted fig8-elimination-gen2_1SELECT = wm_debug where name='fig8' AND stage='bbends' AND gen=2 fig8-elimination-gen2_2SELECT = wm_debug where name='fig8' AND stage='bbends-polygon' AND gen=2 +fig8-elimination-gen2_2LINESTYLE = dotted fig8-elimination-gen3_1SELECT = wm_debug where name='fig8' AND stage='bbends' AND gen=3 fig8-elimination-gen3_2SELECT = wm_debug where name='fig8' AND stage='bbends-polygon' AND gen=3 +fig8-elimination-gen3_2LINESTYLE = dotted fig5-gentle-inflection-before_WITHDIV = 2 fig5-gentle-inflection-before_1SELECT = wm_debug where name='fig5' AND stage='bbends' AND gen=1 diff --git a/IV/layer2img.py b/IV/layer2img.py @@ -70,8 +70,16 @@ def plot_args(geom, color, maybe_linestyle): if geom is None: return + # polygons either have fillings or lines if geom.geom_type[0] == 'Polygon': - return {'cmap': CMAP} + if maybe_linestyle: + return { + 'edgecolor': 'black', + 'linestyle': maybe_linestyle, + 'color': (0, 0, 0, 0), + } + else: + return {'cmap': CMAP} r = {'color': color} if maybe_linestyle == 'invisible': diff --git a/IV/mj-msc.tex b/IV/mj-msc.tex @@ -1068,9 +1068,9 @@ The smaller the distance $d$, the more similar the bends are. \subsection{Elimination Operator} -Elimination was explained reasonably well in the original paper. Figure~\ref{fig:elimination-through-iterations} illustrates steps of figure 8 -from the original paper. +from the original paper. There is not much to add to the original description +beyond an illustrated example. \begin{figure}[ht] \centering