whoami7 - Manager
:
/
lib64
/
python2.7
/
site-packages
/
matplotlib
/
Upload File:
files >> //lib64/python2.7/site-packages/matplotlib/stackplot.pyo
� ��L]c @ s( d Z d d l Z d g Z d � Z d S( s� Stacked area plot for 1D arrays inspired by Douglas Y'barbo's stackoverflow answer: http://stackoverflow.com/questions/2225995/how-can-i-create-stacked-line-graph-with-matplotlib (http://stackoverflow.com/users/66549/doug) i����Nt stackplotc O sL t | � d k r$ t j | � } n$ t | � d k rH t j | � } n | j d d � } | d k rv | j | � n t j | d d �} g } | j | j | d | d d d � f d | j j j � | �� xs t t | � d � D][ } | j | j | | | d d � f | | d d d � f d | j j j � | �� q� W| S( s Draws a stacked area plot. *x* : 1d array of dimension N *y* : 2d array of dimension MxN, OR any number 1d arrays each of dimension 1xN. The data is assumed to be unstacked. Each of the following calls is legal:: stackplot(x, y) # where y is MxN stackplot(x, y1, y2, y3, y4) # where y1, y2, y3, y4, are all 1xNm Keyword arguments: *colors* : A list or tuple of colors. These will be cycled through and used to colour the stacked areas. All other keyword arguments are passed to :func:`~matplotlib.Axes.fill_between` Returns *r* : A list of :class:`~matplotlib.collections.PolyCollection`, one for each element in the stacked area plot. i t colorst axisi Nt facecolor( t lent npt atleast_2dt row_stackt popt Nonet set_color_cyclet cumsumt appendt fill_betweent _get_linest color_cyclet nextt xrange( t axest xt argst kwargst yR t y_stackt rt i( ( s: /usr/lib64/python2.7/site-packages/matplotlib/stackplot.pyR s (<( t __doc__t numpyR t __all__R ( ( ( s: /usr/lib64/python2.7/site-packages/matplotlib/stackplot.pyt <module> s
Copyright ©2021 || Defacer Indonesia