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

Function _categorical_example_2

chartify/examples.py:1236–1246  ·  view source on GitHub ↗

Docstring

(data)

Source from the content-addressed store, hash-verified

1234
1235@_print_source
1236def _categorical_example_2(data):
1237 """Docstring"""
1238 # Plot the data
1239 ch = chartify.Chart(blank_labels=True)
1240 ch.style.set_color_palette(
1241 palette_type="categorical",
1242 )
1243 ch.plot.scatter(data_frame=data, x_column="x", y_column="y", color_column="country")
1244 ch.set_title("Pass 'palette' parameter to .set_color_palette() to change palette colors.")
1245 ch.set_subtitle("")
1246 ch.show(_OUTPUT_FORMAT)
1247
1248
1249@_print_source

Callers 1

Calls 5

set_titleMethod · 0.95
set_subtitleMethod · 0.95
showMethod · 0.95
set_color_paletteMethod · 0.80
scatterMethod · 0.45

Tested by

no test coverage detected