Use the Layout
class to create a variety of map views for comparison.
For more information, run help(Layout)
.
This example uses two different custom layouts. The first with a vertical orientation (2x2) and the second, horizontal (1x4).
from cartoframes.auth import set_default_credentials
from cartoframes.viz import Map, Layer, Layout
set_default_credentials('cartoframes')
Layout([
Map(Layer('drought_wk_1')),
Map(Layer('drought_wk_2')),
Map(Layer('drought_wk_3')),
Map(Layer('drought_wk_4'))
], 2, 2, is_static=True)
Layout([
Map(Layer('drought_wk_1')),
Map(Layer('drought_wk_2')),
Map(Layer('drought_wk_3')),
Map(Layer('drought_wk_4'))
], 1, 4, is_static=True)