Layout titles

Use the Layout class to create a variety of map views for comparison.

For more information, run help(Layout).

This example adds titles for each map in the Layout.


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

set_default_credentials('cartoframes')

In [2]:
Layout([
    Map(Layer('drought_wk_1'), title="US Drought: Week 1"),
    Map(Layer('drought_wk_2'), title="US Drought: Week 2"),
], viewport={'zoom': 2, 'lat': 33.4706, 'lng': -98.3457})


Out[2]:

US Drought: Week 2

:
StackTrace
    ">