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

Function pie

bqplot/pyplot.py:936–953  ·  view source on GitHub ↗

Draws a Pie in the current context figure. Parameters ---------- sizes: numpy.ndarray, 1d The proportions to be represented by the Pie. options: dict (default: {}) Options for the scales to be created. If a scale labeled 'x' is required for that mark, options

(sizes, **kwargs)

Source from the content-addressed store, hash-verified

934
935@_process_data('color')
936def pie(sizes, **kwargs):
937 """Draws a Pie in the current context figure.
938
939 Parameters
940 ----------
941 sizes: numpy.ndarray, 1d
942 The proportions to be represented by the Pie.
943 options: dict (default: {})
944 Options for the scales to be created. If a scale labeled 'x' is
945 required for that mark, options['x'] contains optional keyword
946 arguments for the constructor of the corresponding scale type.
947 axes_options: dict (default: {})
948 Options for the axes to be created. If an axis labeled 'x' is required
949 for that mark, axes_options['x'] contains optional keyword arguments
950 for the constructor of the corresponding axis type.
951 """
952 kwargs['sizes'] = sizes
953 return _draw_mark(Pie, **kwargs)
954
955
956def label(text, **kwargs):

Callers

nothing calls this directly

Calls 1

_draw_markFunction · 0.85

Tested by

no test coverage detected