
    e                     F    d dl mZ d dlmZ ddlmZ  G d de          ZdS )    )SkipTest)Distribution   )TestPlotlyPlotc                   0     e Zd Z fdZd Zd Zd Z xZS )TestDistributionPlotc                     t                                                       	 dd l}d S # t          $ r t	          d          w xY w)Nr   zTest requires scipy)supersetUpscipyImportErrorr   )selfr   	__class__s     Ulib/python3.11/site-packages/holoviews/tests/plotting/plotly/test_distributionplot.pyr   zTestDistributionPlot.setUp
   sP    	2LLLLL 	2 	2 	20111	2s	   ) Ac                 B   t          g d          }|                     |          }|                     |d         d         d         d           |                     |d         d         d         d           |                     |d         d         d         d	           d S )
Nr   g?g @      r   g@datar   typescattermodelinesfilltozeroy)r   _get_plot_stateassertEqualr   diststates      r   test_distribution_filledz-TestDistributionPlot.test_distribution_filled   s    88899$$T**vq)&19===vq)&17;;;vq)&19=====    c                    t          g d                              d          }|                     |          }|                     |d         d         d         d           |                     |d         d         d         d	           |                     |d         d                             d
          d            d S )Nr   F)filledr   r   r   r   r   r   r   )r   optsr   r   getr   s      r   test_distribution_not_filledz1TestDistributionPlot.test_distribution_not_filled   s    88899>>e>LL$$T**vq)&19===vq)&17;;;vq)--f55t<<<<<r"   c                     t          g d                              d          }|                     |          }|                     |d         d         d         d           d S )Nr   F)visibler   r   r)   )r   r%   r   r   )r   elementr    s      r   test_visiblez!TestDistributionPlot.test_visible   sd    ;;;<<AA%APP$$W--vq))4e<<<<<r"   )__name__
__module____qualname__r   r!   r'   r+   __classcell__)r   s   @r   r   r      se        2 2 2 2 2> > >= = == = = = = = =r"   r   N)unittestr   holoviews.elementr   	test_plotr   r    r"   r   <module>r4      so          * * * * * * % % % % % %= = = = => = = = = =r"   