From 1f74b346b9ad71d1f87512dedf0c695114d618a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 12 Apr 2021 10:26:20 +0300 Subject: [PATCH] improve color scheme for gray polygons --- IV/layer2img.py | 8 +++++--- IV/mj-msc.tex | 7 +++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/IV/layer2img.py b/IV/layer2img.py index 196a9f5..0f3c42a 100644 --- a/IV/layer2img.py +++ b/IV/layer2img.py @@ -6,6 +6,8 @@ import matplotlib.pyplot as plt from matplotlib import rc +#CMAP = 'Set3' +CMAP = 'tab20c' INCH = 25.4 # mm BOUNDS = ('xmin', 'ymin', 'xmax', 'ymax') BLACK, GREEN, ORANGE, PURPLE = '#000000', '#1b9e77', '#d95f02', '#7570b3' @@ -58,9 +60,9 @@ def main(): group1 = read_layer(args.group1_table, args.group1_where) group2 = read_layer(args.group2_table, args.group2_where) group3 = read_layer(args.group3_table, args.group3_where) - c1 = {'cmap': 'coolwarm'} if args.group1_cmap else {'color': BLACK} - c2 = {'cmap': 'coolwarm'} if args.group2_cmap else {'color': ORANGE} - c3 = {'cmap': 'coolwarm'} if args.group3_cmap else {'color': GREEN} + c1 = {'cmap': CMAP} if args.group1_cmap else {'color': BLACK} + c2 = {'cmap': CMAP} if args.group2_cmap else {'color': ORANGE} + c3 = {'cmap': CMAP} if args.group3_cmap else {'color': GREEN} rc('text', usetex=True) fig, ax = plt.subplots() diff --git a/IV/mj-msc.tex b/IV/mj-msc.tex index b138965..3ac66e2 100644 --- a/IV/mj-msc.tex +++ b/IV/mj-msc.tex @@ -220,6 +220,13 @@ and explaining the author's desiderata for a detailed description. Step illustrations of the following sections are extracted from the automated test cases. +Bends are illustrated using the following algorithm: + +\begin{itemize} + \item Join the first and last vertices of the line, creating a polygon. + \item Color the polygons using a diverging color scheme. +\end{itemize} + \section{Definition of a Bend} \begin{figure}[H]