rL ii6ddlZddlZddlZddlmZddlZddlZddl m Z ddlm Z dZ dZdZdZd Zd Zd Zd Zd ZdZdZdZdZdZdZdZdZdZdZdZ dZ!dZ"dZ#dZ$dZ%dZ&dZ'd Z(d!Z)d"Z*y)#N)Path)subprocess_run_for_testing)pyplotc tjddttjj ddz }|j stjdttjj}|dz }|j|dttjt|t|gd |jd}||k7rad jt!j"|j%d |j%d d d dd}tj&d|zyy)Nblackz24.1) minversionztools/boilerplate.pyzboilerplate.py not foundz pyplot.pyzutf-8T)check zfound pyplot.pyzexpected pyplot.pyr)fromfiletofilenlinetermzpyplot.py is not up-to-date. Please run 'python tools/boilerplate.py' to update pyplot.py. This needs to be done from an environment where your current working copy is installed (e.g. 'pip install -e'd). Here is a diff of unexpected differences: %s)pytest importorskiprmpl__file__parentsexistsskipplt read_text write_textrsys executablestrjoindifflib unified_diffsplitfail)tmp_path gen_script orig_contentsplt_file new_contentsdiff_msgs b/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/matplotlib/tests/test_pyplot.pytest_pyplot_up_to_dater*s F3cll#++A.1GGJ     ./&002M+%H  w/ Z#h-8%%g.L $99  ##D)<+=+=d+C*+b  "#   <?G  G %c`tjjtjddtjj tjdd d}t j |d d}|d|d|dd|dd|rJtjtj5|d dddtjtj5|dddddy#1swY?xYw#1swYyxYw) NoldnewkwocyNr.r/s r)funcz1test_copy_docstring_and_deprecators..func.s r+cyr1r2r3s r) wrapper_funcz9test_copy_docstring_and_deprecators..wrapper_func3s r+)r.)r/r3)r-r1) r_apirename_parameter __version__make_keyword_onlyr_copy_docstring_and_deprecatorsrwarnsMatplotlibDeprecationWarning)recwarnr4r6s r)#test_copy_docstring_and_deprecatorsr?-sXXsu=XX7 8>  ((. / T4 Tt$; c66 7 c66 7!T4 !!!!s D D$D!$D-cftj\}}tjd|jrJtjd|jsJtj|jrJtj|jsJy)NFT)rsubplotsbox get_frame_on)figaxs r)test_pyplot_boxrFBsyllnGCGGEN  GGDM ??  GGI  GGI ??  r+c8tjgdgdy)N)r )r stackplotr2r+r)test_stackplot_smokerKNsMM)Y'r+ctjt5tjddddtjt5tjddddy#1swYBxYw#1swYyxYw)NrH)nrows)ncols)rraises TypeErrorrsubplotr2r+r)test_nrows_errorrRSsa y ! ! y ! !sA2A>2A;>BctjtjsJtj5tjrJ dddtjsJtjtjrJtj5tjrJ dddtjrJy#1swYxYw#1swY,xYwr1)rionris_interactiveioffr2r+r) test_ioffrWZsGGI      (%%''''(     HHJ!!## # (%%''''(!!## ##(( ((C*3C6*C36C?ctjtjrJtj5tjsJ dddtjrJtjtjsJtj5tjsJ dddtjsJy#1swYxYw#1swY,xYwr1)rrVrrUrTr2r+r)test_ionrZhsHHJ!!## # $!!###$!!## #GGI      $!!###$     $$ $$rXcZtjtj5tjrJtj5tjsJ dddtjrJ dddtjsJtj5tj5tjrJ ddddddtjsJtj5tjdddtjsJtjtj5tjsJtj5tjrJ dddtjsJ dddtjrJtj5tj5tjsJ ddddddtjrJtj5tjdddtjrJy#1swYDxYw#1swY2xYw#1swYxYw#1swYxYw#1swYxYw#1swY/xYw#1swYxYw#1swYxYw#1swYxYw#1swYxYwr1)rrTrVrrUr2r+r)test_nested_ion_ioffr\vsmGGI (%%''' WWY (%%' '' (%%'''' (      , XXZ ,))+ +++ ,,             HHJ $!!### XXZ ,))+ +++ ,!!### $ !!## # ( WWY (%%' '' ((!!## #   !!## ##E ( ((( , ,,,  , ,$$ ( ((( s+J;J.,J;=KK*K$K"?+K<*K/K<L(L L:L!.J8 3J;;KK KK"K,/K9 4K<<L L LL!L*c| tjdy#t$r}t|dk(sJYd}~yd}~wwxYw)Ng?zQclose() argument must be a Figure, an int, a string, or None, not )rcloserPr)es r) test_closer`sDB # B1vBB BBBs ;6;ctjd}|tjusJtjd}|tjusJtjd}|tjusJ||usJy)Nyz)rrQgcaax1ax2ax3s r)test_subplot_reuserist ++c C #'')   ++c C #'')   ++c C #'')   #::r+cNtjtj}tj}|J||usJtjtjtjd}tjd}|J||usJtjtjtjd}tj}|J|jdk(sJ||usJtjy)Npolar projection rectilinear)rfigureaxesr^namerErfs r)test_axes_kwargsrssJJL B ((*C >> b==IIKJJL W %B ((g &C >> b==IIKJJL W %B ((*C >> 88} $$ $ b==IIKr+ctj}tjddd}tjddd}tjddd}tjdddd}tjdddd}|J||usJ||usJ||usJ||usJ||jvsJ||jvsJ||jvsJ|jdk(sJ|jdk(sJ|jdk(sJy)NrHr rkrlrn)rrorQrprq)rDrErfrgrhax4s r)test_subplot_replace_projectionrvs  **,C Q1 B ++aA C ++aA C ++aA' 2C ++aA' 2C >> "99 b== b== #:: >> #((?? #((?? 77m ## # 88} $$ $ 88w  r+c tjdd}tjdd}||usJ|jtjdd}||usJ|tjjvsJy)Nrkr)rm theta_offsetrH)rrQremovegcfrpres r)test_subplot_kwarg_collisionr{sk ++q 9C ++q 9C #::JJL ++q 9C c>> cgginn $$ $r+ctjtj}tj}|J||usJtjyr1)rrordr^rrs r)test_gcar}s@JJL B '')C >> "99IIKr+cRtjd}|tjusJ|tjdusJ|jtjdd}|tjusJ|tjj vsJ|tjdusJ|jtjdd}|tjusJ||usJ|tjj vsJy)Norkrlrn)rrQrdryrzrpres r)test_subplot_projection_reusers ++c C #'')   #++c" "" "JJL ++cg .C #'')   cgginn $$ $ #++c" "" "JJL ++cm 4C #'')   c>> cgginn $$ $r+c8tjdd}tjdd}tjddd}||usJ||usJtjtd5tjddd }dddy#1swYyxYw) NrrkrlT)rk)rkrmzpolar=True, yet projection='3d'match3d)rrQrrO ValueErrorres r) test_subplot_polar_normalizationrs ++cg .C ++c &C ++c' :C #:: #:: z> @<kk#Td;<<.extract_documented_functionsrsu   /D!??#56%)Ntv6Aw(%*N  . /r+r zsThe following pyplot functions are not listed in the documentation. Please add them to doc/api/pyplot_summary.rst: zThe following functions are listed in the pyplot documentation, but they do not exist in pyplot. Please remove them from doc/api/pyplot_summary.rst: N) rrparentrrrrr!rr_get_pyplot_commands differenceAssertionError) pyplot_docsrr doc_functions plot_commandsmissingextras r)test_doc_pyplot_summaryrlsx.''*OOK     9:B  ! ! # ) )$ /E4U;rs  9$ >!* (  $  )$XB20%%2 < 5   8   5Np ='!!(r+