#!/usr/bin/env python # coding: utf-8 # In[1]: from lets_plot.geo_data import * from lets_plot import * # In[2]: LetsPlot.setup_html() # In[3]: country = 'Japan' bbox = geocode_countries(names=country) gdf = geocode_states().scope(bbox).inc_res(4).get_boundaries() ggplot() + \ geom_rect(data=bbox.get_boundaries(), fill='#95a5a6', size=0) + \ geom_map(data=gdf, color='#95a5a6', fill='white') + \ ggsize(800, 600) + ggtitle(country) + \ theme_void()