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

Function _infer_x_for_line

bqplot/pyplot.py:615–626  ·  view source on GitHub ↗

Infers the x for a line if no x is provided.

(y)

Source from the content-addressed store, hash-verified

613
614
615def _infer_x_for_line(y):
616 """
617 Infers the x for a line if no x is provided.
618 """
619 array_shape = shape(y)
620
621 if len(array_shape) == 0:
622 return []
623 if len(array_shape) == 1:
624 return arange(array_shape[0])
625 if len(array_shape) > 1:
626 return arange(array_shape[1])
627
628
629@_process_data('color')

Callers 1

plotFunction · 0.85

Calls 1

shapeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…