3
Ej|bB  ã               @   s   d dl jZddd„ZdS )é    Né
   c       
      C   sà   ddl m} ||ƒ�Â}tjƒ }xVt| ƒD ]J\}}|dk	rF|d |krFq(dj|d |d ƒ}	tj|d |d |	d	� q(W tjd
dd� tjƒ  tj	d|d� tj
d|d� tj|d� tj|d� |j|ƒ tjƒ  W dQ R X dS )z

    
    r   )ÚPdfPagesNÚplanezplane {:d} wirelen {:.2f}ZwirelenZfreqsZamps)ÚlabelÚbestr   )ÚlocÚfontsizeZfrec)r   Zamp)Úmatplotlib.backends.backend_pdfr   ÚpltZfigureÚ	enumerateÚformatÚplotÚlegendZgridÚxlabelÚylabelZyticksZxticksÚsavefigÚclose)
Ú
wire_specsZpdffileÚplanesr   r   ÚpdfÚfigÚiZ	wire_specr   © r   ú:/home/yuhw/wc/wire-cell-python/wirecell/util/noise/plot.pyÚplot_noise_specs   s     

r   )Nr   )Úmatplotlib.pyplotÚpyplotr
   r   r   r   r   r   Ú<module>   s   
