improve color scheme for gray polygons
This commit is contained in:
parent
65a91a0ceb
commit
1f74b346b9
@ -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()
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user