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

Function callout_text

chartify/examples.py:1352–1367  ·  view source on GitHub ↗

Line segment

()

Source from the content-addressed store, hash-verified

1350
1351@_print_source
1352def callout_text():
1353 """
1354 Line segment
1355 """
1356 import chartify
1357
1358 # Generate example data
1359 data = chartify.examples.example_data()
1360
1361 # Plot the data
1362 ch = chartify.Chart(blank_labels=True)
1363 ch.plot.scatter(data_frame=data, x_column="unit_price", y_column="total_price")
1364 ch.callout.text("Description of what is\ngoing on in this chart!", 0, 6)
1365 ch.set_title("Text callout")
1366 ch.set_subtitle("Add narrative to your chart.")
1367 ch.show(_OUTPUT_FORMAT)
1368
1369
1370callout_text.__doc__ = _core.callout.Callout.text.__doc__

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected