Labels plot. `labels` are mostly useful when overlaid on top of other plots using the `*` operator. Reference: https://hvplot.holoviz.org/ref/api/manual/hvplot.hvPlot.labels.html Plotting options: https://hvplot.holoviz.org/ref/plotting_options/index.html
(self, x=None, y=None, text=None, **kwds)
| 1433 | return self(x, y, c=c, kind='paths', **kwds) |
| 1434 | |
| 1435 | def labels(self, x=None, y=None, text=None, **kwds): |
| 1436 | """ |
| 1437 | Labels plot. |
| 1438 | |
| 1439 | `labels` are mostly useful when overlaid on top of other plots using the `*` |
| 1440 | operator. |
| 1441 | |
| 1442 | Reference: https://hvplot.holoviz.org/ref/api/manual/hvplot.hvPlot.labels.html |
| 1443 | |
| 1444 | Plotting options: https://hvplot.holoviz.org/ref/plotting_options/index.html |
| 1445 | |
| 1446 | Parameters |
| 1447 | ---------- |
| 1448 | x : string, optional |
| 1449 | The coordinate variable along the x-axis |
| 1450 | y : string, optional |
| 1451 | The coordinate variable along the y-axis |
| 1452 | text : string, optional |
| 1453 | The column to draw the text labels from; it's also possible to |
| 1454 | provide a template string containing the column names to |
| 1455 | automatically format the text, e.g. "{col1}, {col2}". |
| 1456 | **kwds : optional |
| 1457 | Additional keywords arguments are documented in :ref:`plot-options`. |
| 1458 | Run ``hvplot.help('labels')`` for the full method documentation. |
| 1459 | |
| 1460 | Returns |
| 1461 | ------- |
| 1462 | :class:`holoviews:holoviews.element.Labels` / Panel object |
| 1463 | You can `print` the object to study its composition and run: |
| 1464 | |
| 1465 | .. code-block:: |
| 1466 | |
| 1467 | import holoviews as hv |
| 1468 | hv.help(the_holoviews_object) |
| 1469 | |
| 1470 | to learn more about its parameters and options. |
| 1471 | |
| 1472 | References |
| 1473 | ---------- |
| 1474 | |
| 1475 | - Bokeh: https://docs.bokeh.org/en/latest/docs/reference/models/glyphs/text.html |
| 1476 | - HoloViews: https://holoviews.org/reference/elements/bokeh/Labels.html |
| 1477 | - Matplotlib: https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.text.html#matplotlib.pyplot.text |
| 1478 | - Plotly: https://plotly.com/python/text-and-annotations/ |
| 1479 | """ |
| 1480 | return self(x, y, text=text, kind='labels', **kwds) |
| 1481 | |
| 1482 | |
| 1483 | class hvPlotTabularDuckDB(hvPlotTabular): |
no outgoing calls