commit 1f74b346b9ad71d1f87512dedf0c695114d618a4 (tree)
parent 65a91a0cebf4e320d0b2eba24c554f33c7f77969
Author: Motiejus Jakštys <motiejus@uber.com>
Date: Mon, 12 Apr 2021 10:26:20 +0300
improve color scheme for gray polygons
Diffstat:
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git 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
@@ -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]