improve color scheme for gray polygons

This commit is contained in:
Motiejus Jakštys 2021-05-19 22:57:47 +03:00 committed by Motiejus Jakštys
parent 86b9574893
commit b92482637f
2 changed files with 12 additions and 3 deletions

View File

@ -6,6 +6,8 @@ import matplotlib.pyplot as plt
from matplotlib import rc from matplotlib import rc
#CMAP = 'Set3'
CMAP = 'tab20c'
INCH = 25.4 # mm INCH = 25.4 # mm
BOUNDS = ('xmin', 'ymin', 'xmax', 'ymax') BOUNDS = ('xmin', 'ymin', 'xmax', 'ymax')
BLACK, GREEN, ORANGE, PURPLE = '#000000', '#1b9e77', '#d95f02', '#7570b3' BLACK, GREEN, ORANGE, PURPLE = '#000000', '#1b9e77', '#d95f02', '#7570b3'
@ -58,9 +60,9 @@ def main():
group1 = read_layer(args.group1_table, args.group1_where) group1 = read_layer(args.group1_table, args.group1_where)
group2 = read_layer(args.group2_table, args.group2_where) group2 = read_layer(args.group2_table, args.group2_where)
group3 = read_layer(args.group3_table, args.group3_where) group3 = read_layer(args.group3_table, args.group3_where)
c1 = {'cmap': 'coolwarm'} if args.group1_cmap else {'color': BLACK} c1 = {'cmap': CMAP} if args.group1_cmap else {'color': BLACK}
c2 = {'cmap': 'coolwarm'} if args.group2_cmap else {'color': ORANGE} c2 = {'cmap': CMAP} if args.group2_cmap else {'color': ORANGE}
c3 = {'cmap': 'coolwarm'} if args.group3_cmap else {'color': GREEN} c3 = {'cmap': CMAP} if args.group3_cmap else {'color': GREEN}
rc('text', usetex=True) rc('text', usetex=True)
fig, ax = plt.subplots() fig, ax = plt.subplots()

View File

@ -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 Step illustrations of the following sections are extracted from the automated
test cases. 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} \section{Definition of a Bend}
\begin{figure}[H] \begin{figure}[H]