vega - How to enlarge/resize topojson map file with Vincent -


i trying use vincent create state zip code maps. i'm using state files posted on github @jlev. however, when try display them in ipython notebook or when render same vega object on html page, map shows small lot of white space around it. using equirectangular projection. when try increase scale in ipython notebook, map gets larger, whitespace surrounding map gets exponentially larger. can import them mapshaper.org , fine, don't think there issues topo.json files. looking guidance on resizing these in vincent. luck i've had changing scale on topo.json file itself, can increase these before map gets distorted lot of lines.

here python code:

zip_topo = r'topo_files/maryland.topo.json' geo_data = [{'name': 'maryland',          'url': zip_topo,          'feature': 'maryland.geo'}]  vis =         vincent.map(geo_data=geo_data,scale=8000,projection='equirectangular') vis.display() 


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -