{ "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": 1, "metadata": {}, "outputs": [], "source": [ "# Necessary import evil\n", "import physt.plotting\n", "physt.plotting.set_default_backend(\"folium\")" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | name | \n", "height | \n", "long | \n", "lat | \n", "
---|---|---|---|---|
0 | \n", "Ben Nevis | \n", "1344.0 | \n", "-5.003526 | \n", "56.796834 | \n", "
1 | \n", "Ben Macdui [Beinn Macduibh] | \n", "1309.0 | \n", "-3.669100 | \n", "57.070386 | \n", "
2 | \n", "Braeriach | \n", "1296.0 | \n", "-3.728581 | \n", "57.078177 | \n", "
3 | \n", "Cairn Toul | \n", "1291.0 | \n", "-3.710790 | \n", "57.054415 | \n", "
4 | \n", "Sgor an Lochain Uaine | \n", "1258.0 | \n", "-3.725797 | \n", "57.058378 | \n", "