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).
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')),
Map(Layer('drought_wk_2')),
Map(Layer('drought_wk_3')),
Map(Layer('drought_wk_4'))
], 2, 2)
Out[2]:
:
StackTrace
">
In [3]:
Layout([
Map(Layer('drought_wk_1')),
Map(Layer('drought_wk_2')),
Map(Layer('drought_wk_3')),
Map(Layer('drought_wk_4'))
], 1, 4)
Out[3]:
:
StackTrace
">