MCPcopy Index your code
hub / github.com/bqplot/bqplot / barh

Function barh

bqplot/pyplot.py:912–932  ·  view source on GitHub ↗

Draws a horizontal bar chart in the current context figure. Parameters ---------- x: numpy.ndarray, 1d The domain of the data points. y: numpy.ndarray, 1d The range of the data pints. options: dict (default: {}) Options for the scales to be created. If a

(*args, **kwargs)

Source from the content-addressed store, hash-verified

910
911@_process_data('color')
912def barh(*args, **kwargs):
913 """Draws a horizontal bar chart in the current context figure.
914
915 Parameters
916 ----------
917
918 x: numpy.ndarray, 1d
919 The domain of the data points.
920 y: numpy.ndarray, 1d
921 The range of the data pints.
922 options: dict (default: {})
923 Options for the scales to be created. If a scale labeled 'x' is
924 required for that mark, options['x'] contains optional keyword
925 arguments for the constructor of the corresponding scale type.
926 axes_options: dict (default: {})
927 Options for the axes to be created. If an axis labeled 'x' is required
928 for that mark, axes_options['x'] contains optional keyword arguments
929 for the constructor of the corresponding axis type.
930 """
931 kwargs['orientation'] = "horizontal"
932 return bar(*args, **kwargs)
933
934
935@_process_data('color')

Callers

nothing calls this directly

Calls 1

barFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…