From dbf477f58172693861a418c07596cb2cf349e5ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 15 May 2021 23:38:21 +0300 Subject: [PATCH] cleanup layer2img.py --- IV/layer2img.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/IV/layer2img.py b/IV/layer2img.py index f8697b3..230b595 100644 --- a/IV/layer2img.py +++ b/IV/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