Plot one or more collection of lines. Each path is a collection of independent x and y coordinates, represented from: - tabular data: 1 path - gridded data: 1 path - GeoPandas GeoDataFrame: as many paths as LineString/MultiLineString as ge
(self, x=None, y=None, c=None, **kwds)
| 1391 | return self(x, y, c=c, kind='polygons', **kwds) |
| 1392 | |
| 1393 | def paths(self, x=None, y=None, c=None, **kwds): |
| 1394 | """ |
| 1395 | Plot one or more collection of lines. |
| 1396 | |
| 1397 | Each path is a collection of independent x and y coordinates, |
| 1398 | represented from: |
| 1399 | |
| 1400 | - tabular data: 1 path |
| 1401 | - gridded data: 1 path |
| 1402 | - GeoPandas GeoDataFrame: as many paths as LineString/MultiLineString |
| 1403 | as geometries contained in the dtaset |
| 1404 | |
| 1405 | Options like ``color`` or ``line_width`` are vectorized, i.e. each |
| 1406 | sub-line of a path can be displayed separately based on another dimension. |
| 1407 | For example, each sub-line of a hurricane path can be plotted with |
| 1408 | a color based on the wind speed. |
| 1409 | |
| 1410 | Parameters |
| 1411 | ---------- |
| 1412 | **kwds : optional |
| 1413 | Additional keywords arguments are documented in :ref:`plot-options`. |
| 1414 | Run ``hvplot.help('paths')`` for the full method documentation. |
| 1415 | |
| 1416 | Returns |
| 1417 | ------- |
| 1418 | :class:`holoviews:holoviews.element.Path` / Panel object |
| 1419 | You can `print` the object to study its composition and run: |
| 1420 | |
| 1421 | .. code-block:: |
| 1422 | |
| 1423 | import holoviews as hv |
| 1424 | hv.help(the_holoviews_object) |
| 1425 | |
| 1426 | to learn more about its parameters and options. |
| 1427 | |
| 1428 | References |
| 1429 | ---------- |
| 1430 | |
| 1431 | - HoloViews: https://holoviews.org/reference/elements/bokeh/Path.html |
| 1432 | """ |
| 1433 | return self(x, y, c=c, kind='paths', **kwds) |
| 1434 | |
| 1435 | def labels(self, x=None, y=None, text=None, **kwds): |
| 1436 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected