MCPcopy Index your code
hub / github.com/spotify/chartify / _scatter_example_3

Function _scatter_example_3

chartify/examples.py:162–175  ·  view source on GitHub ↗

# Scatter with size and color

(data)

Source from the content-addressed store, hash-verified

160
161@_print_source
162def _scatter_example_3(data):
163 """# Scatter with size and color"""
164 # Plot the data
165 ch = chartify.Chart(blank_labels=True, x_axis_type="datetime")
166 ch.plot.scatter(
167 data_frame=data,
168 x_column="date",
169 y_column="unit_price",
170 size_column="quantity",
171 color_column="fruit",
172 )
173 ch.set_title("Scatterplot")
174 ch.set_subtitle("Optional 'color_column' argument for grouping by color.")
175 ch.show(_OUTPUT_FORMAT)
176
177
178plot_scatter.__doc__ = _core.plot.PlotNumericXY.scatter.__doc__

Callers 1

plot_scatterFunction · 0.85

Calls 4

set_titleMethod · 0.95
set_subtitleMethod · 0.95
showMethod · 0.95
scatterMethod · 0.45

Tested by

no test coverage detected