cleanup layer2img.py
This commit is contained in:
parent
439ceb306a
commit
dbf477f581
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user