<jupyter_start><jupyter_text>Layout viewport Use the `Layout` class to create a variety of map views for comparison.For more information, run `help(Layout)`.The first example sets a common viewport for all maps while the second sets two different viewports for maps.<jupyter_code>from cartoframes.auth import set_default_credentials

set_default_credentials('cartoframes')<jupyter_output><empty_output><jupyter_text>Same viewport<jupyter_code>from cartoframes.viz import Map, Layer, Layout, basic_style

Layout([
    Map(Layer('select * from drought_wk_1 where dm = 3', basic_style(color='#e15383'))),
    Map(Layer('select * from drought_wk_2 where dm = 3', basic_style(color='#e15383'))),
    Map(Layer('select * from drought_wk_3 where dm = 3', basic_style(color='#e15383'))),
    Map(Layer('select * from drought_wk_4 where dm = 3', basic_style(color='#e15383'))),
], is_static=True, viewport={'zoom': 3, 'lat': 33.4706, 'lng': -98.3457})<jupyter_output><empty_output><jupyter_text>Different viewports<jupyter_code>from cartoframes.viz import Map, Layer, Layout, basic_style

Layout([
    Map(Layer('drought_wk_1'), viewport={ 'zoom': 0.5 }),
    Map(Layer('select * from drought_wk_1 where dm = 1', basic_style(color='#ffc285'))),
    Map(Layer('select * from drought_wk_1 where dm = 2', basic_style(color='#fa8a76'))),
    Map(Layer('select * from drought_wk_1 where dm = 3', basic_style(color='#e15383'))),
], is_static=True, viewport={'zoom': 3, 'lat': 33.4706, 'lng': -98.3457})<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14765985497692816, 'fraction_numerical': 0.04878048780487805, 'mean_word_length': 7.031746031746032, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '346485', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 589, 'n_tokens_neox': 524, 'n_words': 124, 'path': 'docs/examples/data_visualization/grid_layout/layout_viewport.ipynb', 'repo_name': 'CartoDB/cartoframes', 'size': '1517'}