April 2018
Beginner to intermediate
440 pages
11h 36m
English
Instead of manually setting the colors, radius sizes, and breaks, MapboxGL—Jupyter includes utilites (such as create_color_stops) that create a match between colors (or sizes) and break values. The color schema is set by passing the YlOrRd keyword ( which means Yellow Orange Red). Also, we can adjust the basemap using another pre-set style or our own custom styles by setting the visualization style to the style URL:
measure_color = 'Percent Male'color_breaks = [round(tract_points[measure_color].quantile(q=x*0.1),3) for x in range(1, 11,3)]color_stops = create_color_stops(color_breaks, colors='YlOrRd')measure_radius = 'Total Population'radius_breaks = [round(tract_points[measure_radius].quantile(q=x*0.1),1) ...