Static Layout

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

For more information, run help(Layout).

In this example, by setting is_static=True, all maps in the Layout are static images.


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

set_default_credentials('cartoframes')

In [2]:
Layout([
        Map(Layer('drought_wk_1', color_bins_style('dm', method='equal', palette='pinkyl'))),
        Map(Layer('drought_wk_4', color_bins_style('dm', method='equal', palette='pinkyl'))),
    ],
    viewport={'zoom': 3, 'lat': 33.4706, 'lng': -98.3457},
    is_static=True
)


Out[2]:
:
StackTrace
    ">