{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Basic Style\n",
"\n",
"The `basic_style` helper can be used to simply modify the style properties. Use `help(cartoframes.viz.palettes)` to get more information."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"from cartoframes.auth import set_default_credentials\n",
"\n",
"set_default_credentials('cartoframes')"
]
},
{
"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 Layer, basic_style\n",
"\n",
"Layer('sf_nbhd_crime',\n",
" basic_style(\n",
" color='blue',\n",
" size=20,\n",
" stroke_color='rgba(255, 255, 255, 0.8)',\n",
" stroke_width=10\n",
" ),\n",
" title='San Francisco Crime'\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.6.7"
}
},
"nbformat": 4,
"nbformat_minor": 2
}