generate rectangle

This commit is contained in:
Motiejus Jakštys
2020-05-27 10:26:59 +03:00
parent 97cd7a5807
commit d1555091b4
3 changed files with 8 additions and 1 deletions

View File

@@ -5,7 +5,8 @@ import argparse
import geopandas
import psycopg2
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from matplotlib import rc, patches
INCH = 25.4 # mm
BOUNDS = ('xmin', 'ymin', 'xmax', 'ymax')
@@ -45,6 +46,8 @@ def main():
f = geopandas.read_postgis(sql, con=conn, geom_col='geom')
else:
f = geopandas.read_file(args.infile)
rc('text', usetex=True)
fig, ax = plt.subplots()
if args.size:
fig.set_size_inches(args.size)