rL i,BddlmZddlmZddlZdZdZdZdZ dZ y)Ncttjdd}|d|dk(sJ|dddf|dddfk(sJy)N)rrr)gridspecGridSpec)gss d/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/matplotlib/tests/test_gridspec.py test_equalr sH   1a B d8r$x   ad8r!Q$x  ctjt5tjddgddddy#1swYyxYw)a Addresses issue #5835. See at https://github.com/matplotlib/matplotlib/issues/5835. rrr) width_ratiosNpytestraises ValueErrorrrr r test_width_ratiosr s7 z "8!QY7888 >Actjt5tjddgddddy#1swYyxYw)r rr) height_ratiosNrrr r test_height_ratiosrs7 z "9!Qi8999rctjdddddf}t|dk(sJtjdddd}t|dk(sJy) NrrrzGridSpec(3, 3)[2:3, 1:3])rr)rr)rrz9GridSpec(2, 2, height_ratios=(3, 1), width_ratios=(1, 3)))rrrepr)sss r test_reprrsl   1a AaC (B 81 11 1   1a)/(. 0B 8C DD Dr ctjdd\}}tjdd|dj }|j |dj k(sJt jtd5tjdd|d}dddt jtd5tjdd|}dddy#1swYFxYw#1swYyxYw)Nrrr) subplot_specz%subplot_spec must be type SubplotSpec)match) pltsubplotsrGridSpecFromSubplotSpecget_subplotspecget_topmost_subplotspecrr TypeError)figaxsrs r test_subplotspec_argsr*)s||Aq!HC  ) )!Q7:1v7M7M7O QB % % '3q6+A+A+C CC C y(O PI  - -aQ HI y(O PF  - -a EFFIIFFsC%C1%C.1C:) matplotlib.gridspecrmatplotlib.pyplotpyplotr"rr rrrr*rr r r.s)&  89D Fr