{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "1d544550",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
""
],
"text/plain": [
""
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from branca.colormap import linear\n",
"\n",
"colormap_choice = linear.YlOrRd_04\n",
"vmin = 3.2\n",
"vmax = 10.3\n",
"colormap = colormap_choice.scale(vmin, vmax)\n",
"colormap.caption = 'Unemployment rate'\n",
"colormap.text_color = 'cyan'\n",
"colormap"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}