MCPcopy Create free account
hub / github.com/holoviz/hvplot / errorbars

Method errorbars

hvplot/plotting/core.py:504–551  ·  view source on GitHub ↗

`errorbars` provide a visual indicator for the variability of the plotted data on a graph. They are usually overlaid with other plots such as `scatter` , `line` or `bar` plots to indicate the variability. Reference: https://hvplot.holoviz.org/ref/api/manual/hvplot.h

(self, x=None, y=None, yerr1=None, yerr2=None, **kwds)

Source from the content-addressed store, hash-verified

502 return self(x, y, y2=y2, kind='area', stacked=stacked, **kwds)
503
504 def errorbars(self, x=None, y=None, yerr1=None, yerr2=None, **kwds):
505 """
506 `errorbars` provide a visual indicator for the variability of the plotted data on a graph.
507 They are usually overlaid with other plots such as `scatter` , `line` or `bar` plots to
508 indicate the variability.
509
510 Reference: https://hvplot.holoviz.org/ref/api/manual/hvplot.hvPlot.errorbars.html
511
512 Plotting options: https://hvplot.holoviz.org/ref/plotting_options/index.html
513
514 Parameters
515 ----------
516 x : string, optional
517 Field name to draw the x-position from. If not specified, the index is
518 used. Can refer to continuous and categorical data.
519 y : string, optional
520 Field name to draw the y-position from
521 yerr1 : string, optional
522 Field name to draw symmetric / negative errors from
523 yerr2 : string, optional
524 Field name to draw positive errors from
525 **kwds : optional
526 Additional keywords arguments are documented in :ref:`plot-options`.
527 Run ``hvplot.help('errorbars')`` for the full method documentation.
528
529 Returns
530 -------
531 :class:`holoviews:holoviews.element.ErrorBars` / Panel object
532 You can `print` the object to study its composition and run:
533
534 .. code-block::
535
536 import holoviews as hv
537 hv.help(the_holoviews_object)
538
539 to learn more about its parameters and options.
540
541 References
542 ----------
543
544 - Bokeh: https://docs.bokeh.org/en/latest/docs/examples/basic/annotations/whisker.html
545 - HoloViews: https://holoviews.org/reference/elements/bokeh/ErrorBars.html
546 - Matplotlib: https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.errorbar.html
547 - Pandas: https://pandas.pydata.org/docs/user_guide/visualization.html#visualization-errorbars
548 - Plotly: https://plotly.com/python/error-bars/
549 - Wikipedia: https://en.wikipedia.org/wiki/Error_bar
550 """
551 return self(x, y, kind='errorbars', yerr1=yerr1, yerr2=yerr2, **kwds)
552
553 def ohlc(self, x=None, y=None, **kwds):
554 """

Callers 1

Calls

no outgoing calls

Tested by 1