MCPcopy Create free account
hub / github.com/spotify/chartify / _scatter_example_2

Function _scatter_example_2

chartify/examples.py:151–158  ·  view source on GitHub ↗

# Scatter with size

(data)

Source from the content-addressed store, hash-verified

149
150@_print_source
151def _scatter_example_2(data):
152 """# Scatter with size"""
153 # Plot the data
154 ch = chartify.Chart(blank_labels=True, x_axis_type="datetime")
155 ch.plot.scatter(data_frame=data, x_column="date", y_column="unit_price", size_column="quantity")
156 ch.set_title("Scatterplot")
157 ch.set_subtitle("Optional 'size_column' argument for changing scatter size.")
158 ch.show(_OUTPUT_FORMAT)
159
160
161@_print_source

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