|
Server : Apache System : Linux server112.speedpacket.com 3.10.0-962.3.2.lve1.5.36.el7.x86_64 #1 SMP Mon May 18 02:16:06 EDT 2020 x86_64 User : equistyl ( 1341) PHP Version : 8.1.30 Disable Function : NONE Directory : /lib64/python2.7/site-packages/matplotlib/ |
Upload File : |
�
r`]c @ s� d Z d Z d g Z d Z d Z d d l Z d d l m Z m Z d d l
m Z d d l m
Z
d d
l m Z d d l m Z d d l m Z d
Z d Z d Z d d d � � YZ d S( s6
Module for creating Sankey diagrams using matplotlib
s Kevin L. Daviess
Yannick Copint BSDs
2011/09/16i����N( t iterablet Bunch( t Path( t PathPatch( t Affine2D( t verbose( t docstringi i i t Sankeyc B s� e Z d Z d e d d d f d � Z d � Z d � Z e j d � Z e
j d e e d d d e d d f d d
� � Z
d � Z e d d d d d
d d d d d d � Z RS( sn
Sankey diagram in matplotlib
Sankey diagrams are a specific type of flow diagram, in which
the width of the arrows is shown proportionally to the flow
quantity. They are typically used to visualize energy or
material or cost transfers between processes.
`Wikipedia (6/1/2011) <http://en.wikipedia.org/wiki/Sankey_diagram>`_
i i c C s� t j t j t j t j t j t j t j g } t j d d g d d g d d g d d g d d g d d g d d g g � } | d k s� | d k r� | r� | } qW| d d � d d d
� f } n� | d k s� | d k rW| rt j | d d � d f | d d � d f f � } qWt j | d d � d f | d d � d f f � } n | d k rm| } n t | | | t j | | j d d f � � S(
s=
Return the codes and vertices for a rotated, scaled, and translated
90 degree arc.
Optional keyword arguments:
=============== ==========================================
Keyword Description
=============== ==========================================
*quadrant* uses 0-based indexing (0, 1, 2, or 3)
*cw* if True, clockwise
*center* (x, y) tuple of the arc's center
=============== ==========================================
g �?g gw,���?g����S��?g�����?g>�ef���?i i Ni����i i ( R t LINETOt CURVE4t npt arrayt column_stackt zipt tilet shape( t selft quadrantt cwt radiust centert ARC_CODESt ARC_VERTICESt vertices( ( s7 /usr/lib64/python2.7/site-packages/matplotlib/sankey.pyt _arc@ s8 "
c
C s� | d
k r"