(x, y, bins=None, range=None, density=None,
weights=None)
| 623 | |
| 624 | |
| 625 | def _histogram2d_dispatcher(x, y, bins=None, range=None, density=None, |
| 626 | weights=None): |
| 627 | yield x |
| 628 | yield y |
| 629 | |
| 630 | # This terrible logic is adapted from the checks in histogram2d |
| 631 | try: |
| 632 | N = len(bins) |
| 633 | except TypeError: |
| 634 | N = 1 |
| 635 | if N == 2: |
| 636 | yield from bins # bins=[x, y] |
| 637 | else: |
| 638 | yield bins |
| 639 | |
| 640 | yield weights |
| 641 | |
| 642 | |
| 643 | @array_function_dispatch(_histogram2d_dispatcher) |
nothing calls this directly
no outgoing calls
no test coverage detected