The `line` plot connects the points with a continuous curve. Reference: https://hvplot.holoviz.org/ref/api/manual/hvplot.hvPlot.line.html Plotting options: https://hvplot.holoviz.org/ref/plotting_options/index.html Parameters ---------- x : string,
(self, x=None, y=None, **kwds)
| 258 | ] |
| 259 | |
| 260 | def line(self, x=None, y=None, **kwds): |
| 261 | """ |
| 262 | The `line` plot connects the points with a continuous curve. |
| 263 | |
| 264 | Reference: https://hvplot.holoviz.org/ref/api/manual/hvplot.hvPlot.line.html |
| 265 | |
| 266 | Plotting options: https://hvplot.holoviz.org/ref/plotting_options/index.html |
| 267 | |
| 268 | Parameters |
| 269 | ---------- |
| 270 | x : string, optional |
| 271 | Field name(s) to draw x-positions from. If not specified, the index is |
| 272 | used. Can refer to continuous and categorical data. |
| 273 | y : string or list, optional |
| 274 | Field name(s) to draw y-positions from. If not specified, all numerical |
| 275 | fields are used. |
| 276 | by : string, optional |
| 277 | A single column or list of columns to group by. All the subgroups are visualized. |
| 278 | groupby: string, list, optional |
| 279 | A single field or list of fields to group and filter by. Adds one or more widgets to |
| 280 | select the subgroup(s) to visualize. |
| 281 | color : str or array-like, optional. |
| 282 | The color for each of the series. Possible values are: |
| 283 | |
| 284 | A single color string referred to by name, RGB or RGBA code, for instance 'red' or |
| 285 | '#a98d19. |
| 286 | |
| 287 | A sequence of color strings referred to by name, RGB or RGBA code, which will be used |
| 288 | for each series recursively. For instance ['green','yellow'] each field’s line will be |
| 289 | filled in green or yellow, alternatively. If there is only a single series to be |
| 290 | plotted, then only the first color from the color list will be used. |
| 291 | **kwds : optional |
| 292 | Additional keywords arguments are documented in :ref:`plot-options`. |
| 293 | Run ``hvplot.help('line')`` for the full method documentation. |
| 294 | |
| 295 | Returns |
| 296 | ------- |
| 297 | :class:`holoviews:holoviews.element.Curve` / Panel object |
| 298 | You can `print` the object to study its composition and run: |
| 299 | |
| 300 | .. code-block:: |
| 301 | |
| 302 | import holoviews as hv |
| 303 | hv.help(the_holoviews_object) |
| 304 | |
| 305 | to learn more about its parameters and options. |
| 306 | |
| 307 | References |
| 308 | ---------- |
| 309 | |
| 310 | - Bokeh: https://docs.bokeh.org/en/latest/docs/reference/models/glyphs/line.html |
| 311 | - HoloViews: https://holoviews.org/reference/elements/bokeh/Curve.html |
| 312 | - Pandas: https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.plot.line.html |
| 313 | - Plotly: https://plotly.com/python/line-charts/ |
| 314 | - Matplotlib: https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.plot.html |
| 315 | - Seaborn: https://seaborn.pydata.org/generated/seaborn.lineplot.html |
| 316 | - Wiki: https://en.wikipedia.org/wiki/Line_chart |
| 317 | """ |
no outgoing calls