
    en                     F    d dl Zd dlmZ ddlmZmZ  G d de          ZdS )    N)
BoxWhisker   )TestMPLPlotmpl_rendererc                        e Zd Zd Zd Zd ZdS )TestMPLBoxWhiskerPlotc                 >   t           j                            d          }t          |          }t	          j        |          }|                    |i i           \  }}}|                     |d         d         |           |                     |d         dg           d S )Nd   r   labels )nprandomrandr   r   get_plotget_dataassertEqual)selfvalues
boxwhiskerplotdatastyle	axis_optss          Slib/python3.11/site-packages/holoviews/tests/plotting/matplotlib/test_boxwhisker.pytest_boxwhisker_simplez,TestMPLBoxWhiskerPlot.test_boxwhisker_simple
   s    $$''
$Z00!%z2r!B!BeYaV,,,x2$/////    c                    t           j                            d          }t          |          t          |          z  }t	          j        |          }|j                                        \  }}|                     |j	        d         d         
                                j        |j	        d         d         
                                j                   d S )Nr
   boxesr   )r   r   r   r   r   r   subplotsr   r   handlesget_pathvertices)r   r   r   r   p1p2s         r   test_boxwhisker_simple_overlayz4TestMPLBoxWhiskerPlot.test_boxwhisker_simple_overlay   s    $$''*V*<*<<
$Z00%%''BG,Q/88::CG,Q/88::C	E 	E 	E 	E 	Er   c                 &   t          g d                              d          }t          j        |          }|j        d                                         }|                     |d         d           |                     |d         d           d S )	N)r         g?)paddingaxisr   g?r   g	@)r   optsr   r   r    get_ylimr   )r   curver   y_ranges       r   test_box_whisker_padding_squarez5TestMPLBoxWhiskerPlot.test_box_whisker_padding_square   s    999%%**3*77$U++,v&//11S)))S)))))r   N)__name__
__module____qualname__r   r%   r/    r   r   r   r      sD        0 0 0E E E* * * * *r   r   )numpyr   holoviews.elementr   	test_plotr   r   r   r3   r   r   <module>r7      so        ( ( ( ( ( ( 0 0 0 0 0 0 0 0* * * * *K * * * * *r   