{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"from cartoframes.auth import set_default_credentials\n",
"\n",
"set_default_credentials('cartovl')"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
""
],
"text/plain": [
""
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from cartoframes.viz import Map, Layer, color_continuous_legend, color_continuous_style, formula_widget, time_series_widget, basemaps, basic_style\n",
"\n",
"Map ([\n",
" Layer(\n",
" 'maxhi_20190717_72',\n",
" style=color_continuous_style('value', size=4, stroke_width=0, animate='value'),\n",
" legends=color_continuous_legend(\n",
" title='Max Heat Index for July 20, 2019',\n",
" description='Degrees (°F)',\n",
" footer='Issued: 7/17/19 | Source: NOAA Weather Predicition Center'\n",
" ),\n",
" widgets=[\n",
" formula_widget('value', operation='sum', title='Max Degrees (°F)'),\n",
" time_series_widget('value', title='Animation by Temperature')\n",
" ],\n",
" ),\n",
" Layer(\n",
" 'state_bounds',\n",
" style=basic_style(color='white', opacity='0.5')\n",
" )],\n",
" basemap=basemaps.darkmatter,\n",
" show_info=True,\n",
" viewport={'zoom': 2.5, 'lat': 37.572586, 'lng': -110.638529},\n",
")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"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.7.4"
}
},
"nbformat": 4,
"nbformat_minor": 2
}