<jupyter_start><jupyter_text>Color bins legendThe `color-bins` legend draws a sequential color legend on your map that is based your data's geometry using either the `color` (default) or `strokeColor` property of your visualization.To view available legend parameters, run `help(color_bins_legend)`In this example, the color bins legend colors and labels the class break ranges for a classed map using the `color` property.<jupyter_code>from cartoframes.auth import set_default_credentials

set_default_credentials('cartoframes')
from cartoframes.viz import Layer, color_bins_style, color_bins_legend

Layer(
    'demographics_sf',
    color_bins_style('masters_percent'),
    legends=color_bins_legend(
        title="Percent Master's Degree",
        description='by block group',
        footer='Data: US Census',
        format='.0%'
    )
)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08, 'fraction_numerical': 0.001142857142857143, 'mean_word_length': 5.302158273381295, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '439183', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 265, 'n_tokens_neox': 244, 'n_words': 82, 'path': 'docs/examples/data_visualization/legends/color_bins_legend.ipynb', 'repo_name': 'CartoDB/cartoframes', 'size': '875'}