Adjust the Axes and return a list of information about the Sankey subdiagram(s). Returns a list of subdiagrams with the following fields: ======== ============================================================= Field Description ======== =======
(self)
| 776 | return self |
| 777 | |
| 778 | def finish(self): |
| 779 | """ |
| 780 | Adjust the Axes and return a list of information about the Sankey |
| 781 | subdiagram(s). |
| 782 | |
| 783 | Returns a list of subdiagrams with the following fields: |
| 784 | |
| 785 | ======== ============================================================= |
| 786 | Field Description |
| 787 | ======== ============================================================= |
| 788 | *patch* Sankey outline (a `~matplotlib.patches.PathPatch`). |
| 789 | *flows* Flow values (positive for input, negative for output). |
| 790 | *angles* List of angles of the arrows [deg/90]. |
| 791 | For example, if the diagram has not been rotated, |
| 792 | an input to the top side has an angle of 3 (DOWN), |
| 793 | and an output from the top side has an angle of 1 (UP). |
| 794 | If a flow has been skipped (because its magnitude is less |
| 795 | than *tolerance*), then its angle will be *None*. |
| 796 | *tips* (N, 2)-array of the (x, y) positions of the tips (or "dips") |
| 797 | of the flow paths. |
| 798 | If the magnitude of a flow is less the *tolerance* of this |
| 799 | `Sankey` instance, the flow is skipped and its tip will be at |
| 800 | the center of the diagram. |
| 801 | *text* `.Text` instance for the diagram label. |
| 802 | *texts* List of `.Text` instances for the flow labels. |
| 803 | ======== ============================================================= |
| 804 | |
| 805 | See Also |
| 806 | -------- |
| 807 | Sankey.add |
| 808 | """ |
| 809 | self.ax.axis([self.extent[0] - self.margin, |
| 810 | self.extent[1] + self.margin, |
| 811 | self.extent[2] - self.margin, |
| 812 | self.extent[3] + self.margin]) |
| 813 | self.ax.set_aspect('equal', adjustable='datalim') |
| 814 | return self.diagrams |