From e3ac29495188320899e1ffd9c05d22184f790d5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 18 May 2021 12:11:24 +0300 Subject: [PATCH] fix quadrants --- IV/Makefile | 14 +++++--------- IV/layer2img.py | 2 +- IV/mj-msc.tex | 6 +++--- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/IV/Makefile b/IV/Makefile index a52d0e4..2b4dc73 100644 --- a/IV/Makefile +++ b/IV/Makefile @@ -48,7 +48,7 @@ RIVERS = \ salvis-wm-50k-ne \ salvis-wm-overlaid-250k-zoom \ salvis-wm-grpk50 \ - salvis-wm-grpk50-ne \ + salvis-wm75-grpk50-grpk10ne \ salvis-wm220 ################################################################################ @@ -191,13 +191,6 @@ salvis-wm-grpk50_1COLOR = orange salvis-wm-grpk50_2COLOR = green salvis-wm-grpk50_3LINESTYLE = dotted -salvis-wm-grpk50-ne_1SELECT = wm_visuals where name='salvis-wm75' -salvis-wm-grpk50-ne_2SELECT = wm_visuals where name='salvis-grpk50' -salvis-wm-grpk50-ne_3SELECT = wm_visuals where name='salvis-grpk10' -salvis-wm-grpk50-ne_1COLOR = orange -salvis-wm-grpk50-ne_2COLOR = green -salvis-wm-grpk50-ne_3LINESTYLE = dotted -salvis-wm-grpk50-ne_QUADRANT = tl salvis-wm220_1SELECT = wm_visuals where name='salvis-wm220' salvis-wm220_WIDTHDIV = 2 @@ -206,11 +199,12 @@ label_wm75 = Wang--Müller label_vw64 = Visvalingam--Whyatt label_dp64 = Douglas \& Peucker label_grpk10 = GRPK 1:\numprint{10000} +label_grpk50 = GRPK 1:\numprint{50000} label_vw64chaikin = $(label_vw64) and Chaikin label_dp64chaikin = $(label_dp64) and Chaikin legend_ = lower left legend_tr = lower right -legend_tl = lower right +legend_tl = lower center define wm_vwdp50k RIVERS += salvis-$(1)-$(2)-$(3)-50k$(4) @@ -231,6 +225,7 @@ $(foreach x,vw64 dp64 vwchaikin64 dpchaikin64,\ $(eval $(call wm_vwdp50k,wm75,$(x),grpk10,tl)) \ $(eval $(call wm_vwdp50k,wm75,$(x),grpk10,tr)) \ ) +$(eval $(call wm_vwdp50k,wm75,grpk50,grpk10,tr)) define FIG_template $(1).pdf: layer2img.py Makefile $(2) @@ -246,6 +241,7 @@ $(1).pdf: layer2img.py Makefile $(2) ) endef + $(foreach fig,$(FIGURES),$(eval $(call FIG_template,$(fig),.faux_test))) $(foreach fig,$(RIVERS), $(eval $(call FIG_template,$(fig),.faux_visuals))) diff --git a/IV/layer2img.py b/IV/layer2img.py index 5046c3b..f5dc2a6 100644 --- a/IV/layer2img.py +++ b/IV/layer2img.py @@ -22,7 +22,7 @@ COLORS = { # see `NOTICE` in the LaTeX document; this is the width of the main text block. TEXTWIDTH_CM = 12.12364 -QUADRANTS = {'tl':1, 'tr':2, 'br':3, 'bl':4} +QUADRANTS = {'tr':1, 'br':2, 'bl':3, 'tl':4} def color(string): return COLORS[string if string else 'black'] diff --git a/IV/mj-msc.tex b/IV/mj-msc.tex index a54cb5b..2df5444 100644 --- a/IV/mj-msc.tex +++ b/IV/mj-msc.tex @@ -1526,12 +1526,12 @@ all three shapes: grpk50LT, {\WM}--simplified GDB10LT, and the original GDB10LT. \begin{figure}[h!] \centering - \includegraphics[width=\textwidth]{salvis-wm-grpk50-ne} + \includegraphics[width=\textwidth]{salvis-wm75-grpk50-grpk10-50ktr} \caption{Top--right side of Figure~\ref{fig:salvis-wm-grpk50}.} - \label{fig:salvis-wm-grpk50-ne} + \label{fig:salvis-wm75-grpk50-grpk10-50ktr} \end{figure} -Although figures are almost identical, Figure~\ref{fig:salvis-wm-grpk50-ne} +Although figures are almost identical, Figure~\ref{fig:salvis-wm75-grpk50-grpk10-50ktr} illustrates two small bends that have been removed in grpk50LT, but have been exaggerated by our implementation.