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

Function callout_box

chartify/examples.py:1374–1393  ·  view source on GitHub ↗

Box example

()

Source from the content-addressed store, hash-verified

1372
1373@_print_source
1374def callout_box():
1375 """
1376 Box example
1377 """
1378 import chartify
1379
1380 # Generate example data
1381 data = chartify.examples.example_data()
1382
1383 # Plot the data
1384 (
1385 chartify.Chart(blank_labels=True)
1386 .plot.scatter(data_frame=data, x_column="total_price", y_column="unit_price")
1387 .callout.box(top=1, bottom=-1, color="red")
1388 .callout.box(top=2, left=4, color="blue")
1389 .callout.box(bottom=2, right=3, color="green")
1390 .set_title("Shaded area callout")
1391 .set_subtitle("Highlight notable areas of your chart")
1392 .show(_OUTPUT_FORMAT)
1393 )
1394
1395
1396callout_box.__doc__ = _core.callout.Callout.box.__doc__

Callers

nothing calls this directly

Calls 5

set_subtitleMethod · 0.80
set_titleMethod · 0.80
boxMethod · 0.80
showMethod · 0.45
scatterMethod · 0.45

Tested by

no test coverage detected