{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Geospatial histogram visualization using folium\n", "\n", "**Note: You need to have the `folium` package installed to run this notebook.**\n", "\n", "### \"Bagging\" the munros into rectangular bins\n", "\n", "*A Munro (About this sound listen (help·info)) is a mountain in Scotland with a height over 3,000 feet (914 m). Munros are named after Sir Hugh Munro, 4th Baronet (1856–1919), who produced the first list of such hills, known as Munro's Tables, in 1891...* says Wikipedia, more in https://en.wikipedia.org/wiki/Munro.\n", "\n", "Let's show the possibility to plot histograms in the maps with the help of folium library." ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [], "source": [ "# Necessary import evil\n", "import physt.plotting\n", "physt.plotting.set_default_backend(\"folium\")" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/plain": " name height long lat\n0 Ben Nevis 1344.0 -5.003526 56.796834\n1 Ben Macdui [Beinn Macduibh] 1309.0 -3.669100 57.070386\n2 Braeriach 1296.0 -3.728581 57.078177\n3 Cairn Toul 1291.0 -3.710790 57.054415\n4 Sgor an Lochain Uaine 1258.0 -3.725797 57.058378", "text/html": "
\n | name | \nheight | \nlong | \nlat | \n
---|---|---|---|---|
0 | \nBen Nevis | \n1344.0 | \n-5.003526 | \n56.796834 | \n
1 | \nBen Macdui [Beinn Macduibh] | \n1309.0 | \n-3.669100 | \n57.070386 | \n
2 | \nBraeriach | \n1296.0 | \n-3.728581 | \n57.078177 | \n
3 | \nCairn Toul | \n1291.0 | \n-3.710790 | \n57.054415 | \n
4 | \nSgor an Lochain Uaine | \n1258.0 | \n-3.725797 | \n57.058378 | \n