Set the x and y data. Parameters ---------- *args : (2, N) array or two 1D arrays See Also -------- set_xdata set_ydata
(self, *args)
| 648 | return bbox |
| 649 | |
| 650 | def set_data(self, *args): |
| 651 | """ |
| 652 | Set the x and y data. |
| 653 | |
| 654 | Parameters |
| 655 | ---------- |
| 656 | *args : (2, N) array or two 1D arrays |
| 657 | |
| 658 | See Also |
| 659 | -------- |
| 660 | set_xdata |
| 661 | set_ydata |
| 662 | """ |
| 663 | if len(args) == 1: |
| 664 | (x, y), = args |
| 665 | else: |
| 666 | x, y = args |
| 667 | |
| 668 | self.set_xdata(x) |
| 669 | self.set_ydata(y) |
| 670 | |
| 671 | def recache_always(self): |
| 672 | self.recache(always=True) |