""" Example of voronoi layer with filled area """ import geoplotlib from geoplotlib.utils import read_csv, BoundingBox data = read_csv('data/bus.csv') geoplotlib.voronoi(data, cmap='Blues_r', max_area=1e5, alpha=255, f_tooltip=lambda d: d['name']) geoplotlib.set_bbox(BoundingBox.DK) geoplotlib.show()
#!/usr/bin/env python2 import geoplotlib from geoplotlib.utils import read_csv, BoundingBox data = read_csv('./network_density.csv') geoplotlib.voronoi(data, line_color='b', line_width=1) geoplotlib.set_bbox(BoundingBox.DK) geoplotlib.show()
""" Example of voronoi layer with lines """ import geoplotlib from geoplotlib.utils import read_csv, BoundingBox data = read_csv('data/bus.csv') geoplotlib.voronoi(data, line_color='b', f_tooltip=lambda d: d['name'], line_width=1) geoplotlib.set_smoothing(True) geoplotlib.set_bbox(BoundingBox.DK) geoplotlib.show()
""" Example of voronoi layer with filled area """ import geoplotlib from geoplotlib.utils import read_csv, BoundingBox data = read_csv("data/bus.csv") geoplotlib.voronoi(data, cmap="Blues_r", max_area=1e5, alpha=255, f_tooltip=lambda d: d["name"]) geoplotlib.set_bbox(BoundingBox.DK) geoplotlib.show()
""" Example of voronoi layer with lines """ import geoplotlib from geoplotlib.utils import read_csv, BoundingBox data = read_csv('data/bus.csv') geoplotlib.voronoi(data, line_color='b') geoplotlib.set_smoothing(True) geoplotlib.set_bbox(BoundingBox.DK) geoplotlib.show()
""" Example of voronoi layer with filled area """ import geoplotlib from geoplotlib.utils import read_csv, BoundingBox data = read_csv('data/bus.csv') geoplotlib.voronoi(data, cmap='Blues_r', max_area=1e5, alpha=255) geoplotlib.set_bbox(BoundingBox.DK) geoplotlib.show()
""" Example of voronoi layer with lines """ import geoplotlib from geoplotlib.utils import read_csv, BoundingBox data = read_csv('data/bus.csv') geoplotlib.voronoi(data, line_color='b', f_tooltip=lambda d:d['name'], line_width=1) geoplotlib.set_smoothing(True) geoplotlib.set_bbox(BoundingBox.DK) geoplotlib.show()