U
    `»{j<  ã                   @   s   d dl mZ dd„ ZdS )é    Nc              
   C   sr   t  | |d¡ t| dƒr"| j| n| | }t|dƒr>|j| n|| }t j||dddd t|ƒ¡d� t  ¡  dS )	zý
    Plots the original data with the peaks that were identified

    Parameters
    ----------
    x : array-like
        Data on the x-axis
    y : array-like
        Data on the y-axis
    ind : array-like
        Indexes of the identified peaks
    z--Úiloczr+é   é   z{} peaks)ÚmsZmewÚlabelN)ÚpltÚplotÚhasattrr   ÚformatÚlenZlegend)ÚxÚyÚindZmarker_xZmarker_y© r   úM/var/www/html/bwave/python/venv/lib/python3.8/site-packages/peakutils/plot.pyr      s
     r   )Zmatplotlib.pyplotZpyplotr   r   r   r   r   r   Ú<module>   s   