diff --git a/layer2img.py b/layer2img.py index f8697b3..230b595 100644 --- a/layer2img.py +++ b/layer2img.py @@ -3,21 +3,18 @@ import argparse import geopandas import psycopg2 import matplotlib.pyplot as plt - from matplotlib import rc -# CMAP = 'Set3' # is nice too -CMAP = 'tab20c' - -BOUNDS = ('xmin', 'ymin', 'xmax', 'ymax') +CMAP = 'tab20c' # 'Set3' # is nice too PSQL_CREDS = "host=127.0.0.1 dbname=osm user=osm password=osm" - COLORS = { 'black': '#000000', 'green': '#1b9e77', 'orange': '#d95f02', 'purple': '#7570b3', } +# see `NOTICE` in the LaTeX document; this is the width of the main text block. +TEXTWIDTH_CM = 12.12364 def color(string): @@ -26,10 +23,6 @@ def color(string): return COLORS[string] -# see `NOTICE` in the LaTeX document; this is the width of the main text block. -TEXTWIDTH_CM = 12.12364 - - def inch(cm): return cm / 2.54