Basic legend

To view available legend parameters, run help(basic_legend)


In [1]:
from cartoframes.auth import set_default_credentials
from cartoframes.viz import Layer, basic_legend

set_default_credentials('cartoframes')

In [2]:
Layer(
    'trees_sf',
    legends=basic_legend(
        title='Tree Map',
        description='San Francisco, CA',
        footer='Source: City of SF'
    )
)


Out[2]:
Source: City of SF
:
StackTrace
    ">