Size Continuous Style

Helper function for quickly creating a size continuous style. Use help(size_continuous_style) to get more information.


In [1]:
from cartoframes.auth import set_default_credentials

set_default_credentials('cartoframes')

In [2]:
from cartoframes.viz import Layer, size_continuous_style

Layer('ca_measures', size_continuous_style('total_pop'))


Out[2]:
:
StackTrace
    ">
    
    
    In [3]:
    Layer(
        'ca_measures',
        size_continuous_style(
            'total_pop',
            range_min=100000,
            range_max=5000000,
            size_range=[5,50],
            color='blue',
            stroke_color='turquoise',
            stroke_width=1,
        )
    )
    
    
    
    
    Out[3]:
    :
    StackTrace
      ">