wip more figures
This commit is contained in:
parent
97673ec498
commit
287da4cd40
1
.gitignore
vendored
1
.gitignore
vendored
@ -31,6 +31,7 @@ __pycache__
|
|||||||
.tmp/
|
.tmp/
|
||||||
env/
|
env/
|
||||||
*.pyc
|
*.pyc
|
||||||
|
*.pyg
|
||||||
*.inc.tex
|
*.inc.tex
|
||||||
db/
|
db/
|
||||||
_minted-*/
|
_minted-*/
|
||||||
|
63
IV/Makefile
63
IV/Makefile
@ -49,11 +49,7 @@ RIVERS = \
|
|||||||
salvis-wm-overlaid-250k-zoom \
|
salvis-wm-overlaid-250k-zoom \
|
||||||
salvis-wm-gdr50 \
|
salvis-wm-gdr50 \
|
||||||
salvis-wm-gdr50-ne \
|
salvis-wm-gdr50-ne \
|
||||||
salvis-wm-220 \
|
salvis-wm-220
|
||||||
salvis-wm-dp-50k \
|
|
||||||
salvis-wm-dp-chaikin-50k \
|
|
||||||
salvis-wm-vw-50k \
|
|
||||||
salvis-wm-vw-chaikin-50k
|
|
||||||
|
|
||||||
#################################
|
#################################
|
||||||
# The thesis, publishable version
|
# The thesis, publishable version
|
||||||
@ -99,22 +95,6 @@ mj-msc.pdf: mj-msc.tex version.inc.tex vars.inc.tex bib.bib \
|
|||||||
# Report's test dependencies
|
# Report's test dependencies
|
||||||
############################
|
############################
|
||||||
|
|
||||||
define FIG_template
|
|
||||||
$(1).pdf: layer2img.py Makefile $(2)
|
|
||||||
python3 ./layer2img.py --outfile=$(1).pdf \
|
|
||||||
$$(if $$($(1)_LEGEND),--legend="$$($(1)_LEGEND)") \
|
|
||||||
$$(if $$($(1)_WIDTHDIV),--widthdiv=$$($(1)_WIDTHDIV)) \
|
|
||||||
$$(if $$($(1)_QUADRANT),--quadrant=$$($(1)_QUADRANT)) \
|
|
||||||
$$(foreach i,1 2 3, \
|
|
||||||
$$(if $$($(1)_$$(i)LABEL),--g$$(i)-label="$$($(1)_$$(i)LABEL)") \
|
|
||||||
$$(if $$($(1)_$$(i)COLOR),--g$$(i)-color="$$($(1)_$$(i)COLOR)") \
|
|
||||||
$$(if $$($(1)_$$(i)SELECT),--g$$(i)-select="$$($(1)_$$(i)SELECT)") \
|
|
||||||
$$(if $$($(1)_$$(i)LINESTYLE),--g$$(i)-linestyle="$$($(1)_$$(i)LINESTYLE)") \
|
|
||||||
)
|
|
||||||
endef
|
|
||||||
$(foreach fig,$(FIGURES),$(eval $(call FIG_template,$(fig),.faux_test)))
|
|
||||||
$(foreach fig,$(RIVERS), $(eval $(call FIG_template,$(fig),.faux_visuals)))
|
|
||||||
|
|
||||||
test-figures_1SELECT = wm_figures
|
test-figures_1SELECT = wm_figures
|
||||||
|
|
||||||
fig8-definition-of-a-bend_1SELECT = wm_debug where name='fig8' AND stage='afigures' AND gen=1
|
fig8-definition-of-a-bend_1SELECT = wm_debug where name='fig8' AND stage='afigures' AND gen=1
|
||||||
@ -255,27 +235,6 @@ salvis-wm-gdr50-ne_QUADRANT = 1
|
|||||||
salvis-wm-220_1SELECT = wm_visuals where name='salvis-wm-220'
|
salvis-wm-220_1SELECT = wm_visuals where name='salvis-wm-220'
|
||||||
salvis-wm-220_WIDTHDIV = 2
|
salvis-wm-220_WIDTHDIV = 2
|
||||||
|
|
||||||
salvis-wm-dp-50k_1SELECT = wm_visuals where name='salvis-dp-64'
|
|
||||||
salvis-wm-dp-50k_2SELECT = wm_visuals where name='salvis-wm-75'
|
|
||||||
salvis-wm-dp-50k_3SELECT = wm_visuals where name='salvis'
|
|
||||||
salvis-wm-dp-50k_1COLOR = green
|
|
||||||
salvis-wm-dp-50k_2COLOR = orange
|
|
||||||
salvis-wm-dp-50k_3LINESTYLE = dotted
|
|
||||||
|
|
||||||
salvis-wm-dp-chaikin-50k_1SELECT = wm_visuals where name='salvis-dp-64-chaikin'
|
|
||||||
salvis-wm-dp-chaikin-50k_2SELECT = wm_visuals where name='salvis-wm-75'
|
|
||||||
salvis-wm-dp-chaikin-50k_3SELECT = wm_visuals where name='salvis'
|
|
||||||
salvis-wm-dp-chaikin-50k_1COLOR = green
|
|
||||||
salvis-wm-dp-chaikin-50k_2COLOR = orange
|
|
||||||
salvis-wm-dp-chaikin-50k_3LINESTYLE = dotted
|
|
||||||
|
|
||||||
salvis-wm-vw-chaikin-50k_1SELECT = wm_visuals where name='salvis-vw-64-chaikin'
|
|
||||||
salvis-wm-vw-chaikin-50k_2SELECT = wm_visuals where name='salvis-wm-75'
|
|
||||||
salvis-wm-vw-chaikin-50k_3SELECT = wm_visuals where name='salvis'
|
|
||||||
salvis-wm-vw-chaikin-50k_1COLOR = green
|
|
||||||
salvis-wm-vw-chaikin-50k_2COLOR = orange
|
|
||||||
salvis-wm-vw-chaikin-50k_3LINESTYLE = dotted
|
|
||||||
|
|
||||||
label_wm = Wang--Müller
|
label_wm = Wang--Müller
|
||||||
label_vw = Visvalingam--Whyatt
|
label_vw = Visvalingam--Whyatt
|
||||||
label_dp = Douglas \& Peucker
|
label_dp = Douglas \& Peucker
|
||||||
@ -285,17 +244,35 @@ label_dp-chaikin = $(label_dp) and Chaikin
|
|||||||
define wm_vwdp50k
|
define wm_vwdp50k
|
||||||
RIVERS += salvis-wm-$(1)-50k
|
RIVERS += salvis-wm-$(1)-50k
|
||||||
salvis-wm-$(1)-50k_1SELECT = wm_visuals where name='salvis-$(1)-64'
|
salvis-wm-$(1)-50k_1SELECT = wm_visuals where name='salvis-$(1)-64'
|
||||||
|
salvis-wm-$(1)-50k_2SELECT = wm_visuals where name='salvis-wm-75'
|
||||||
salvis-wm-$(1)-50k_3SELECT = wm_visuals where name='salvis'
|
salvis-wm-$(1)-50k_3SELECT = wm_visuals where name='salvis'
|
||||||
salvis-wm-$(1)-50k_1COLOR = green
|
salvis-wm-$(1)-50k_1COLOR = green
|
||||||
salvis-wm-$(1)-50k_1LABEL = $(label_$(1))
|
salvis-wm-$(1)-50k_1LABEL = $(label_$(1))
|
||||||
salvis-wm-$(1)-50k_2COLOR = orange
|
salvis-wm-$(1)-50k_2COLOR = orange
|
||||||
salvis-wm-$(1)-50k_2LABEL = $(label_wm)
|
salvis-wm-$(1)-50k_2LABEL = $(label_wm)
|
||||||
salvis-wm-$(1)-50k_3LINESTYLE = dotted
|
salvis-wm-$(1)-50k_3LINESTYLE = dotted
|
||||||
salvis-wm-$(1)-50k_3LABEL = GRPK 1:\\numprint{10000}
|
#salvis-wm-$(1)-50k_3LABEL = GRPK 1:\numprint{10000}
|
||||||
|
salvis-wm-$(1)-50k_3LABEL = GRPK 1:10000
|
||||||
salvis-wm-$(1)-50k_LEGEND = lower left
|
salvis-wm-$(1)-50k_LEGEND = lower left
|
||||||
endef
|
endef
|
||||||
$(foreach x,vw dp vw-chaikin dp-chaikin,$(eval $(call wm_vwdp50k,$(x))))
|
$(foreach x,vw dp vw-chaikin dp-chaikin,$(eval $(call wm_vwdp50k,$(x))))
|
||||||
|
|
||||||
|
define FIG_template
|
||||||
|
$(1).pdf: layer2img.py Makefile $(2)
|
||||||
|
python3 ./layer2img.py --outfile=$(1).pdf \
|
||||||
|
$$(if $$($(1)_LEGEND),--legend="$$($(1)_LEGEND)") \
|
||||||
|
$$(if $$($(1)_WIDTHDIV),--widthdiv=$$($(1)_WIDTHDIV)) \
|
||||||
|
$$(if $$($(1)_QUADRANT),--quadrant=$$($(1)_QUADRANT)) \
|
||||||
|
$$(foreach i,1 2 3, \
|
||||||
|
$$(if $$($(1)_$$(i)LABEL),--g$$(i)-label="$$($(1)_$$(i)LABEL)") \
|
||||||
|
$$(if $$($(1)_$$(i)COLOR),--g$$(i)-color="$$($(1)_$$(i)COLOR)") \
|
||||||
|
$$(if $$($(1)_$$(i)SELECT),--g$$(i)-select="$$($(1)_$$(i)SELECT)") \
|
||||||
|
$$(if $$($(1)_$$(i)LINESTYLE),--g$$(i)-linestyle="$$($(1)_$$(i)LINESTYLE)") \
|
||||||
|
)
|
||||||
|
endef
|
||||||
|
$(foreach fig,$(FIGURES),$(eval $(call FIG_template,$(fig),.faux_test)))
|
||||||
|
$(foreach fig,$(RIVERS), $(eval $(call FIG_template,$(fig),.faux_visuals)))
|
||||||
|
|
||||||
|
|
||||||
.faux_db_pre: db init.sql
|
.faux_db_pre: db init.sql
|
||||||
bash db start
|
bash db start
|
||||||
|
@ -111,7 +111,7 @@ def main():
|
|||||||
c3 = plot_args(g3, args.g3_color, args.g3_linestyle, args.g3_label)
|
c3 = plot_args(g3, args.g3_color, args.g3_linestyle, args.g3_label)
|
||||||
|
|
||||||
rc('text', usetex=True)
|
rc('text', usetex=True)
|
||||||
rc('text.latex', preamble='\\usepackage{numprint}\n')
|
#rc('text.latex', preamble='\\usepackage{numprint}\n')
|
||||||
fig, ax = plt.subplots(constrained_layout=True)
|
fig, ax = plt.subplots(constrained_layout=True)
|
||||||
fig.set_figwidth(inch(width))
|
fig.set_figwidth(inch(width))
|
||||||
|
|
||||||
|
@ -1573,6 +1573,7 @@ in this section to 1:\numprint{50000}.
|
|||||||
\begin{figure}[h!]
|
\begin{figure}[h!]
|
||||||
\includegraphics[width=\textwidth]{salvis-wm-dp-50k}
|
\includegraphics[width=\textwidth]{salvis-wm-dp-50k}
|
||||||
|
|
||||||
|
|
||||||
\caption{{\DP} (green), {\WM} (orange) and original (black dotted) at
|
\caption{{\DP} (green), {\WM} (orange) and original (black dotted) at
|
||||||
1:\numprint{50000}.}
|
1:\numprint{50000}.}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user