Line segment
()
| 1350 | |
| 1351 | @_print_source |
| 1352 | def 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 | |
| 1370 | callout_text.__doc__ = _core.callout.Callout.text.__doc__ |
nothing calls this directly
no test coverage detected