Infers the x for a line if no x is provided.
(y)
| 613 | |
| 614 | |
| 615 | def _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') |