+
    i                    U   ^ RI t ^ RIHtHt ^ RIt^ RIHt ^ RIHt ^ RI	t	^ RI
t
^ RIt^ RIHt ^ RIt^ RIt^ RIHt ^ RIt^ RIt^ RIHt ^ RIHt ^ RIt^ RIt^ RIt^ R	IHtHt ^ RIHt ^ RI H!t" ^ R
I#H$t$ ^ RI%H&t& ^ RI'H(t( ^ RI)H*t* ^ RI+H,t- ^ RI.H/t0 ^ RI1H2t3 ^ RI4H5t6 ^ RI7H8t8 ^ RI9H:t: ^ RI;H<t= ^ RI>H?t@ ^ RIAHBtC ^ RIDHEtF ^ RIGHHtI ^ RIJHKtKHLtLHMtM ^ RINHOtOHPtPHQtQ ^ RIRHStS ]P! R.R7      R 4       tTR tUR tV]P! R.R7      R 4       tW]P! R.R7      R 4       tX]P! R.R7      R 4       tYR tZ]P! R.R7      R 4       t[]P! R.R7      R 4       t\]P! R.R7      R 4       t]R t^]P! R.R7      R  4       t_]O! ]`! ^^4       U u. uF
  p R!V R" R#2NK  	  up ]P                  ! 4       R$8X  d   ^ MR%R&7      R' 4       tbR( tcR) td]O! R*.4      R+ 4       teR, tf]P                  P                  R-ER4      R0 4       ti]P                  P                  R-ER4      ]P! R.R1R27      R3 4       4       tj]O! R4.]P                  ! 4       R$8X  d   ^ MR5R&7      R6 4       tkR7 tlR8 tmR9 tnR: to]P! R.R7      R; 4       tp]O! R<.R=R>7      R? 4       tq]P                  P                  R@4      RA 4       tt]P                  P                  R@4      RB 4       tu]P                  P                  R@4      RC 4       tv]P! R.R7      RD 4       tw]O! RE.R=RFRG7      RH 4       tx]O! RI.R=RFRG7      RJ 4       tyRK tzRL t{RM t|]O! RN.R=R>7      RO 4       t}]O! RP.R=R>7      RQ 4       t~RR tRS tRT tRU t]O! RV.RW^</RX7      RY 4       tRZ t]P! R.R7      R[ 4       tR\ t]O! R]R].4      R^ 4       t]O! R_.RFR`7      Ra 4       t]P! R.R7      Rb 4       tRc t]O! Rd.R.R=RFRe7      Rf 4       t]O! Rg.4      Rh 4       t]O! Ri.RjR&7      Rk 4       t]O! RlRl.R=R>7      Rm 4       tRn tRo t]O! Rp.R=R>7      Rq 4       tRr t]O! Rs.RFR`7      Rt 4       tRu t]O! Rv.RFR=Rw7      Rx 4       tRy t]P! R.R7      Rz 4       tR{ t]O! R|.4      R} 4       t]P                  P                  R@4      ]P                  P                  R~. ERO4      ]P! R.R7      R 4       4       4       t]O! RR.R=RFRG7      R 4       t]O! R.RF]P                  ! 4       R$8X  d   ^ MRR7      R 4       tR t]O! R.R=R>7      R 4       t]P                  P                  R]EP>                  ! ER4      ^^3]EP@                  ! R^Rj4      ]EP>                  ! ER4      ^3]EP@                  ! R^Rj4      ^]EP>                  ! ER4      3.. EROR7      R 4       t]P                  P                  R]EP>                  ! ER4      ^^3]EP@                  ! R^Rj4      ]EP>                  ! ER4      ^3]EP@                  ! R^Rj4      ^]EP>                  ! ER4      3.. EROR7      R 4       t]O! R.R=]P                  ! 4       R$8X  d   ^ MRR7      R 4       t]O! R.RFR=Rw7      R 4       t]O! R.R=R>7      R 4       t]O! R.4      R 4       t]O! R.R=R>7      R 4       tR t]O! R.R=R>7      R 4       t]O! R.R.R7      R 4       t]O! R.RR.R=R7      R 4       t]P                  P                  RERER.4      ]P! R.R7      R 4       4       t]P! R.R7      R 4       t]O! R.RFR`7      R 4       t]O! R.RFR`7      R 4       tR tR tR t]P! R.R7      R 4       t]P! R.R7      R 4       tR tR t]P                  P                  RRR=.4      ]P! R.R7      R 4       4       t]O! R.]P                  ! 4       R$8X  d   ^ MRjR&7      R 4       t]O! R.R=R@RG7      R 4       t]O! R.R=R>7      R 4       tR t]O! R.R=R>7      R 4       t]O! R.R=RR7      R 4       t]O! R.R=RR7      R 4       t]O! R.R=R>7      R 4       t]O! R.R=R>7      R 4       t]O! R.R@R=Rw7      R 4       t]O! R.R=R>7      R 4       t]O! R.R=R>7      R 4       t]O! RR.4      R 4       tR tR t]O! R.4      R 4       t]O! R.4      R 4       t]P! R.R7      R 4       t]P! R.R7      R 4       t]P! R.R7      R 4       t]P! R.R7      R 4       tR tR t]O! R.4      R 4       tR tR tR tR tR tR tR t]P                  P                  R@4      ]P! R.R7      R 4       4       t]P                  P                  ERR.^R.R.R.3. ERO. ERO. ERO. EROR3. ERO. ERO. ERO. EROR3. ERO. EROR. EROR3.4      R 4       tR tR t]O! R.R=R>7      R 4       t]P! R.R7      R 4       tR t]O! R.R=R>7      R 4       tR t]O! R.R=R>7      R 4       t]O! R.R=R>7      R 4       t]O! R.4      R 4       tR tR t]P                  P                  R]PB                  EP                  R R .. EROR7      R 4       t]P                  P                  ER . ^3. .^3. . .^3.4      ER 4       t]P                  P                  ERER]Pd                  EP                  EP                  3ER]EP                  PP                  EP                  3ER]Pd                  EP                  EP                  3.4      ER 4       tER t]P! R.R7      ER 4       t]P! R.R7      ER	 4       t]P! R.R7      ER
 4       t]P! R.R7      ER 4       tER tER tER tER tER t]O! ER.R=R>7      ER 4       t]O! ER.4      ER 4       t]P! R.R7      ER 4       tER t]O! ER.R=RFRG7      ER 4       t]O! ER.RF]P                  ! 4       R$8X  d   ^ MERR7      ER 4       t]O! ERER.R=RFRG7      ER 4       t]O! ER.R=RFRG7      ER 4       tER  t ! ER! ER"4      tERER#R/ER$ llEt ]! ER%ER&4      Et]P                  P                  ER'E] ! 4       E]! R]EP                  ! . ERO.4      ER(7      3E] ! ER)ER*7      E]! ER)]EP                  ! . ERO.4      ER(7      3E] ! ER)RER(7      E]! ER)]EP                  ! . ERO.4      ER(7      3E] ! RER+7      E]! R]EP                  ! . ERO.4      ER(7      3E] ! RER,.ER+7      E]! RER,.]EP                  ! . ERO. ERO.4      ER(7      3.4      ER- 4       EtEA EA]P                  P                  ER.E]! 4       R3E]! RER*7      R3E]! ER)ER/7      ER)3E]! ER)ER,.ER/7      ER)ER,.3E]! ER)ER07      ER)3E]! ER1ER/7      ER13E]! ER2ER/7      ER23E]! ER)ER,ER37      ER)3E]! RER)ER,ER47      ER)3E]! ER)ER+7      ER)3E]! ER)ER,ER57      ER,3.4      ER6 4       EtER7 EtER8EtERER9ER:.ER;ER<.3. ERO. ERO.. ERO. ERO.3.Et]P                  P                  ER=E]4      ER> 4       Et	]P                  P                  ER=E]4      ER? 4       Et
ER@ EtERA EtERB EtERC EtERD Et]O! EREERE.]P                  ! 4       R$8X  d   ^ MR%R&7      ERF 4       Et]O! ERG.R=R>7      ERH 4       Et]P! R.R7      ERI 4       EtERJ Et/ ERK / 3ERL lEt]O! ERM.RW^(/R@ERN7      ERO 4       Et]O! ERP.RW^(/R@ERN7      ERQ 4       Et]O! ERR.RW^(/R@ERN7      ERS 4       Et]O! ERT.RW^(/R@ERN7      ERU 4       Et]O! ERV.R=RW^(/R@ERWERX7      ERY 4       Et]O! ERZ.RW^(/R@ERWER[7      ER\ 4       Et]O! ER].R=RW^(/R@ER^7      ER_ 4       Et]O! ER`.R=RW^d/R@ER^7      ERa 4       Et]O! ERb.R=RW^(/R@ER^7      ERc 4       Et]O! ERd.R=RW^(/R@ER^7      ERe 4       Et]O! ERf.R=RW^(/R@ER^7      ERg 4       Et]O! ERh.R=RW^(/R@ER^7      ERi 4       Et ]O! ERj.R=RW^(/R@ER^7      ERk 4       Et!]O! ERl.R=RW^(/R@ER^7      ERm 4       Et"]P! R.R7      ERn 4       Et#]O! ERo.R=RW^(/R@ER^7      ERp 4       Et$]O! ERq.R=RW^(/R@ER^7      ERr 4       Et%]O! ERs.R=RW^(/R@ER^7      ERt 4       Et&]O! ERu.R=RW^(/R@ER^7      ERv 4       Et']O! ERw.R=RW^(/R@ER^7      ERx 4       Et(]O! ERy.R=RW^(/R@ER^7      ERz 4       Et)]O! ER{.R=RW^(/R@ER^7      ER| 4       Et*]O! ER}.R=RW^(/R@ER^7      ER~ 4       Et+]O! ER.R=RW^(/R@ER^7      ER 4       Et,ER Et-ER Et.]O! ER.RW^(/R@ERN7      ER 4       Et/]O! ER.RW^(/R@ERN7      ER 4       Et0ER Et1]O! ERER.ERR@ER7      ER 4       Et2]P! R.R7      ER 4       Et3]O! ER.RW^(/R@ERN7      ER 4       Et4]O! ER.R=R@RG7      ER 4       Et5]O! ER.R=RW^(/R@ER^7      ER 4       Et6]O! ERER.R@R`7      ER 4       Et7ER Et8]O! ER.RW^d/R=^R@ER7      ER 4       Et9]O! ER.R=RW^(/R@ER^7      ER 4       Et:]O! ER.R=RW^(/R@ER^7      ER 4       Et;ER Et<ER Et=ER Et>ER Et?]O! ER.R=RW^(/R@ER^7      ER 4       Et@]O! ERER.4      ER 4       EtA]O! ER.4      ER 4       EtB]O! ER.4      ER 4       EtC]O! ER.4      ER 4       EtD]O! ER.4      ER 4       EtE]O! ER.4      ER 4       EtF]O! ER.4      ER 4       EtG]O! ER.4      ER 4       EtH]O! ER.4      ER 4       EtI]O! ER.4      ER 4       EtJ]O! ER.4      ER 4       EtK]O! ER.4      ER 4       EtL]O! ER.4      ER 4       EtM]O! ER.4      ER 4       EtN]O! ER.R=RFRG7      ER 4       EtOER EtPER EtQER EtRER EtS]P! R.R7      ER 4       EtT]P! R.R7      ER 4       EtUER EtVER EtWER EtX]O! . ERO4      ER 4       EtY]O! ER.R=R>7      ER 4       EtZER Et[]P! R.R7      ER 4       Et\ER Et]]O! ER.4      ER 4       Et^ER Et_ER Et`ER Eta]P! R.R7      ER 4       EtbER EtcER EtdER Ete]P! R.R7      ER 4       Etf]P                  P                  ER. ERO]EP                  ! . ERO4      ^.4      ER 4       Etg]P! R.R7      ER 4       Eth]P! 4       ER 4       Eti]O! ERER.4      ER 4       Etj]O! ER.4      ER 4       Etk]O! ER.R=R>7      ER 4       Etl]O! ER.4      ER 4       Etm]O! ER.4      ER 4       Etn]O! ER.RFR=Rw7      ER 4       EtoER EtpER EtqER Etr]O! ER.RFR=Rw7      ER 4       Ets]O! ER.4      ER 4       Ett]O! ER.4      ER 4       Etu]O! ER.4      ER 4       Etv]O! ER.R=R>7      ER 4       EtwER EtxER EtyER EtzER Et{]O! ER.4      ER 4       Et|]P                  P                  ERER. ERO/ER . ERO/ER. ERO/ER. ERO/ER. ERO/ER. ERO/34      ]P! R.R7      ER 4       4       Et}ER Et~ER Et]P                  P                  ERER	ERERER)ERR/ER ER,/R/ER,3ER	ERERER)ERR/ER ER,/ERER,3ER	ERERER)ER ER,/ER)ER,3ER	ERERER)ER ER,/ERER,3ER	ERERER)ERR//R/ER
3ER	ERERER)ERR//ERER)3ER	ERERR/ER ER,/R/ER,3ER	ERERR/ER ER,/ERER,3ER	ERERER)/ER)ER
3ER	ERERER)/ERER)3ER	ERERR//R/ER
3ER	ERERR//ERER3ER	ERER ER,/ERER,3ER	ERER ER,/ERER,3ER	ER/ERER
3ER	ER/ERER3.4      ER 4       EtER EtER EtER EtER Et]O! ER.R=R>7      ER 4       Et]O! ER.R=R>7      ER 4       Et]O! ER.R=R>7      ER 4       EtER EtER Et]O! ER.R=R>7      ER 4       Et]O! ERER.R=R>7      ER 4       Et]O! ER.R=R>7      ER 4       Et]P                  P                  ER. ERO4      ER  4       EtER! Et]O! ER".R=R>7      ER# 4       EtER$ Et]P                  P                  ER%. .. ^ ^..^ ^.. ..4      ]P                  P                  ER&. ERO4      ER' 4       4       Et]P! R.R7      ER( 4       Et]O! ER).R=R>7      ER* 4       Et]O! ER+.]P                  ! 4       R$8X  d   ^ MER,R&7      ER- 4       Et]O! ER..R=R>7      ER/ 4       Et]O! ER0ER1.]P                  ! 4       R$8X  d   ^ MER2R&7      ER3 4       Et]P! R.R7      ER4 4       Et]P! R.R7      ER5 4       Et]P! R.R7      ER6 4       Et]P! R.R7      ER7 4       EtER8 Et]O! . EROR.R7      ER9 4       EtER: Et]O! . EROR.R7      ER; 4       EtER< Et]P                  P                  ER%^^^]EP@                  ^.]P,                  EPC                  . ERO^4      .4      ]P! R.R7      ER= 4       4       Et]O! ER>.R.RFER?7      ER@ 4       Et]O! ERAERA.R=ERBR7      ERC 4       Et]O! ERD.R=R>7      ERE 4       EtERF Et]O! . EROR=ERGR@ERH7      ERI 4       Et]O! . EROR=ERGR@ERH7      ERJ 4       Et]O! . EROR=ERGR@ERH7      ERK 4       EtERL Et]P! R.R7      ERM 4       EtERN Et]O! . EROR=EROR7      ERP 4       Et]O! . EROR=R>7      ERQ 4       EtERR Et]P! R.R7      ERS 4       Et]O! ERT.R=]P                  ! 4       R$8X  d   ^ MERUR7      ERV 4       Et]O! ERWERW.R=R>7      ERX 4       Et]P                  P                  ERY. ERO4      ERZ 4       EtER[ EtER\ Et]P! R.R7      ER] 4       Et]P                  P                  RF4      ER^ 4       EtER_ Et]P                  P                  ER`]=EPr                  ]=EPt                  ER.]=EPv                  ]=EPx                  ER..4      ERa 4       EtERb EtERc EtERd EtERe EtERf Et]P                  P                  ERgE]ER/ ERh3E]ER/ ERj3E]^^.3/ ERk3E]E]! 4       ERiR/ERl334      ERm 4       EtERn Et]P                  P                  R-ER4      ERo 4       EtERp EtERq Et]O! ERr.ERsR&7      ERt 4       Et]O! . EROR.RFERsERu7      ERv 4       Et]O! ERw.RFERsR7      ERx 4       Et]O! ERy.RFERsR7      ERz 4       Et]O! ER{.RFERsR7      ER| 4       Et]O! ER}.RFEROR7      ER~ 4       Et]O! ER.RFR5R7      ER 4       Et]O! ER.ERsR&7      ER 4       Et]O! ER.RFEROR7      ER 4       EtER EtER EtER EtER EtER EtER Et]P! R.R7      ER 4       Et]P! R.R7      ER 4       Et]O! ER.]P                  ! 4       R$8X  d   ^ MERR&7      ER 4       EtER Et]P! R.R7      ER 4       EtER EtER EtER EtER Et]O! ER.4      ER 4       EtER EtER Et]O! ER.RW^H/RX7      ER 4       EtER EtER EtER Et]P                  P                  ERgE]ER/ ER3E]ER/ ER3E]E]! 4       R.ER/ER3E]E]! 4       R/ER/ER3E]ERR.^R/^/ER3E]ERR.^/ER3E]ER/ ER334      ER 4       EtER EtER EtER EtER EtER EtER EtER EtER Et]O! ER.RW^(/RX7      ER 4       Et]O! ER.RW^(/RX7      ER 4       EtER EtER EtER EtER Et]P                  P                  ERER]EP                  EP                  3ER]EP                  EP                  3]`! ^4      ]`! ^4      3]EP                  EP                  3. ERO. ERO3]EP                  EP                  3]EP                  EP                  ER4      ]EP                  EP                  ER4      3]P                  EP                  3.4      ]P                  P                  ER%]EP@                  ! ^4      EP                  ER4      ]EP                  EP                  ^^^4      .4      ER 4       4       Et ER EtER EtER EtER EtER EtER Et]P                  P                  ERE]! 4       4      ER 4       Et]O! ER.R=R>7      ER 4       EtER Et	ER Et
]P                  P                  ERR=R.4      ER 4       Et]O! ER.R=RjR7      ER 4       Et]O! ER.R=RF]P                  ! 4       R$8X  d   ^ MERER7      ER 4       Et]P                  P                  R@4      ER 4       Et]EP                  ! R.R/.ER7      ER 4       Et]EP                  ! . EROER7      ER 4       EtER EtER EtER EtER Et]P                  P                  R@4      ER 4       Et]P                  P                  R@4      ER 4       EtER EtER EtER EtER EtER EtER EtER EtER EtER Et ER Et!ER Et"ER Et#ER Et$ER Et%ER Et&]O! ER.ERR&7      ER 4       Et']O! ER.4      ER 4       Et(]O! ER.ERR&7      ER 4       Et)]O! ER.R=R>7      ER 4       Et*ER Et+ER Et,ER Et-ER Et.]P                  P                  ER. ERO. EROR7      ER 4       Et/ER Et0ER Et1ER Et2ER Et3ER Et4ER Et5ER Et6ER Et7ER Et8]P                  P                  R@4      ER 4       Et9ER Et:ER Et;ER Et<]P                  P                  ERgE]^..ER. /ER3E]^..ER. /ER 3E]^..ER. /ER3E]^..ER. /ER3E]^..ER. /ER3E]^./ ER3E]^..ER^^./ER3E]^..ER^^./ER	3E]^..ER^^./ER
3E]^..ER^^./ER3E]^..ER^^./ER3E]^..ER^^./ER334      ER 4       Et=ER Et>ER Et?]P                  P                  ERERER.4      ]P                  P                  ERERER.4      ER 4       4       Et@ER EtAER EtBER EtC]P! R.R7      ER 4       EtD]P! R.R7      ER 4       EtEER EtFER EtGER EtH]O! ER.R=RFRG7      ER 4       EtIER  EtJER! EtK]P                  P                  ER"RR=.4      ]P                  P                  ER#RR=.4      ER$ 4       4       EtLER% EtMER& EtNER' EtOER( EtPER) EtQER* EtR]O! ER+.RFR=]P                  ! 4       R$8X  d   ^ MERER,7      ER- 4       EtS ! ER. ER/]FEP                  4      EtU]O! ER0.RF]P                  ! 4       R$8X  d   ^ MER1R7      ER2 4       EtVER3 EtWER4 EtXER5 EtYER6 EtZER7 Et[]O! ER8.R=RFRG7      ER9 4       Et\ER: Et]ER; Et^ER< Et_ER= Et`ER> EtaER? Etb]P! R.R7      ER@ 4       EtcERA EtdERB EteERC EtfERD EtgERE EthERF EtiERG EtjERH EtkERI EtlERJ EtmERK EtnERL EtoERM EtpERN EtqERO EtrERP EtsERQ Ett]P                  P                  ERRER4      ]P                  P                  ERSER4      ERT 4       4       Etu]P! R.R7      ERU 4       Etv]P                  P                  R@4      ERV 4       EtwERW EtxERX EtyERY EtzERZ Et{]P                  P                  ER[]-EP                   Uu. uF  pVf   K	  VNK  	  up. ERO,           4      ]P                  P                  R@4      ER\ 4       4       Et}ER] Et~ER^ Et]P! R.R7      ER_ 4       Et]P! R.R7      ER` 4       EtERa Et]P                  P                  ERb. ERO4      ERc 4       EtERd EtERe EtERf EtERg EtERh EtERi EtERj Et]O! ERk.4      ERl 4       EtERm EtERn Et]P                  P                  ERoERpERqERqEP                  .4      ERr 4       EtERs EtERt EtERu EtERv EtERw EtERx Et]P                  P                  R@4      ERy 4       EtERz EtER{ Et]P                  P                  ER|ER4      ]P                  P                  ER%RER}]`! ^4      /.4      ER~ 4       4       EtER EtER EtER EtER EtER EtER EtER EtER Et]P! R.R7      ER 4       Et]O! ER.RFR`7      ER 4       EtER EtER EtER EtER Et]O! ER.R=RF]P                  ! 4       R$8X  d   ^ MER1ER7      ER 4       Et]P                  P                  R@4      ER 4       Et]P! R.R7      ER 4       EtER EtER EtER EtER EtER Et]O! ER.R@R`7      ER 4       Et]P! R.R7      ]P                  P                  ERER4      ER 4       4       Et]P                  EPe                  ]EPf                  ER,          ER8H  ;'       d    ]EPf                  EPh                  ER8g  ERER7      ER 4       EtER Et]S]P! R.R7      ER 4       4       Et]P! R.R7      ER 4       Et]P! R.R7      ER 4       Et]O! ER.]P                  ! 4       R$8X  d   ^ MERR&7      ER 4       EtER EtER Et]P! R.R7      ER 4       EtER EtER EtR# u up i u upi (      N)
namedtupledeque)Decimal)partial)product)SimpleNamespace)ma)cycler)
rc_contextpatheffects)Figure)Axes)Line2D)PathCollection)
HammerAxes)	PolarAxes)assert_allcloseassert_array_equalassert_array_almost_equal)image_comparisoncheck_figures_equalremove_ticks_and_titles)needs_usetexpng
extensionsc                 H    V P                  4       pVP                  R 4       R# FN)subplotsset_visiblefig_testfig_refaxs   && z/Users/tonyclaw/.openclaw/workspace/skills/math-calculator/venv/lib/python3.14/site-packages/matplotlib/tests/test_axes.pytest_invisible_axesr&   5   s    				BNN5    c                      \         P                  ! 4       w  rVP                  R 4       VP                  R4       VP	                  4       R 8X  g   Q hVP                  4       R8X  g   Q hR# )zx labelzy labelN)pltr   
set_xlabel
set_ylabel
get_xlabel
get_ylabelfigr$   s     r%   test_get_labelsr0   ;   sO    llnGCMM)MM)==?i'''==?i'''r'   c                      \         P                  ! 4       w  rVP                  R 4       VP                  R4       VP	                  R4       VP                  R4       \        V4      R8X  g   Q hR# )labeltitlexyzH<Axes: label='label', title={'center': 'title'}, xlabel='x', ylabel='y'>N)r)   r   	set_label	set_titler*   r+   reprr.   s     r%   	test_reprr9   C   s^    llnGCLLLLMM#MM#8	LM M Mr'   c                     V P                  4       pVP                  ^^.^^.^^.RR7      pVP                  4        VP                  RRR7       VP	                  RRR7       V P                  V4      pVP                  RRR7       VP                  4       pVP                  ^^.^^.^^.RR7      pVP                  4        VP                  R^RR	7       VP	                  R^RR
7       VP                  V4      pVP                  R^RR	7       R# )   scattercr2   Y LabeltoplocX LabelrightZ Labelr5   har4   rG   Nr   r<   legendr+   r*   colorbarr6   r"   r#   r$   sccbars   &&   r%   test_label_loc_verticalrO   N   s    				B	QFQFq!fI	>BIIKMM)M'MM)M)R DNN9%N(				B	QFQFq!fI	>BIIKMM)qWM-MM)qWM-BDNN9gN.r'   c                 (   V P                  4       pVP                  ^^.^^.^^.RR7      pVP                  4        VP                  RRR7       VP	                  RRR7       V P                  VRR	7      pVP                  R
RR7       VP                  4       pVP                  ^^.^^.^^.RR7      pVP                  4        VP                  R^ RR7       VP	                  R^ RR7       VP                  VRR	7      pVP                  R
^ RR7       R# )r;   r<   r=   r?   bottomrA   rC   left
horizontalorientationrE   rF   rH   NrI   rL   s   &&   r%   test_label_loc_horizontalrV   a   s   				B	QFQFq!fI	>BIIKMM)M*MM)M(R\:DNN9&N)				B	QFQFq!fI	>BIIKMM)qVM,MM)qVM,BL9DNN9fN-r'   c           	         \         P                  ! R RRR/4      ;_uu_ 4        V P                  4       pVP                  ^^.^^.^^.RR7      pVP	                  4        VP                  R4       VP                  R4       V P                  VRR	7      pVP                  R
4       RRR4       VP                  4       pVP                  ^^.^^.^^.RR7      pVP	                  4        VP                  R^RR7       VP                  R^RR7       VP                  VRR	7      pVP                  R
^RR7       R#   + '       g   i     L; i)zxaxis.labellocationrD   zyaxis.labellocationr@   r<   r=   r?   rC   rS   rT   rE   NrF   rH   )	
matplotlibr   r   r<   rJ   r+   r*   rK   r6   rL   s   &&   r%   test_label_loc_rcrY   t   s,   			 5w 5u > 
? 
? ZZAA1a&	ZB
		
i 
i    >y!
? 
			B	QFQFq!fI	>BIIKMM)qWM-MM)qWM-BL9DNN9gN.!
? 
?s   BD99E		c                  h   \         P                  ! 4       w  rVP                  R RR7       VP                  R RR7       VP                  P                  P                  4       R8X  g   Q hVP                  R RR7       VP                  P                  P                  4       R8X  g   Q hVP                  R RR7       VP                  P                  P                  4       R8X  g   Q hVP                  R RR7       VP                  R RR7       VP                  P                  P                  4       R8X  g   Q hVP                  R RR7       VP                  P                  P                  4       R8X  g   Q hVP                  R RR7       VP                  P                  P                  4       R8X  g   Q hR# )z
Test labelrR   rA   centerrD   r@   rQ   N)r)   r   r*   xaxisr2   get_horizontalalignmentr+   yaxisr.   s     r%   test_label_shiftr_      sM   llnGC MM,FM+MM,HM-88>>113x???MM,GM,88>>113w>>>MM,HM-88>>113x??? MM,EM*MM,HM-88>>113x???MM,HM-88>>113v===MM,HM-88>>113x???r'   c                 @   \         P                  P                  R 4       Rp\         P                  P                  ^ ^V4      P	                  4       pV^,
          pV P                  4       pVP                  W4R7       VP                  4       p\         P                  ! W3RR7      \         P                  ! W34      ,          p\         P                  ! V) V^,           4      pWr^,
          V,
          W$,            pVP                  V^ .V4       VP                  ^ ^ ^R7       R# )!N,   maxlagsfullmoder5   xminxmaxN)nprandomseednormalcumsumr   acorr	correlatedotarangevlinesaxhline	r"   r#   Nxr4   rd   ax_testax_refnorm_auto_corrlagss	   &&       r%   
test_acorrr|      s    IINN8	B
		Ar"))+AdG!GMM!M%F\\!V4RVVA\AN99gXwqy)D#qDL<N
MM$^,
NNQQQN'r'   c                    \         P                  P                  R 4       ^3p\         P                  P                  V4      ^
,          P	                  4       p\         P
                  ! V4      P                  \         P                  4      pV^,
          pV P                  4       pVP                  W4R7       VP                  4       p\         P                  ! W3RR7      \         P                  ! W34      ,          p\         P                  ! V) V^,           4      pWr^,
          V,
          W$,            pVP                  V^ .V4       VP                  ^ ^ ^R7       R# )ra   rc   re   rf   rh   N)rk   rl   rm   randro   ceilastypeint64r   rp   rq   rr   rs   rt   ru   rv   s	   &&       r%   test_acorr_integersr      s    IINN8	B		b	 ((*A	BHH%AdG!GMM!M%F \\!V4RVVA\AN99gXwqy)D#qDL<N
MM$^,
NNQQQN'r'   c                 Z   \         P                  P                  R 4       \         P                  ! R4      p^ VRR% \         P                  P	                  V4       VP                  R4      pV P                  ^4      pV^ ,          P                  V4       V^,          P                  VRRR7       VP                  ^4      pV^ ,          P                  VRRR7       V^ ,          P                  P                  4        V^,          P                  ! . \         P                  ! V4      RRR1,          ORN5R^
/  V^,          P                  ^V^ ,          P                  4       V^ ,          P                  4       RRR1,          R	7       V F  pVP                  P!                  R
4       K   	  R# )ra   N.lower)markerorigingray_rnearest)cmapinterpolation
markersize)aspectxlimylimbothi   rb   )    r   )rk   rl   rm   onesshufflereshaper   spyimshowr\   tick_topplotnonzerosetget_xlimget_ylimset_ticks_position)r"   r#   aaxs_testaxs_refr$   s   &&    r%   test_spyr      sJ   IINN8
AAhwKIIa			(A  #HQKOOAQKOOAc'O2q!GAJahi@AJAJOO=RZZ]4R4(=#="=AJNNwqz**,71:3F3F3H23N  P
##F+ r'   c            	      $   \         P                  ! 4       w  rR R/RRRR/3 FV  p\        P                  ! \        4      ;_uu_ 4        VP
                  ! \        P                  ! ^^4      3/ VB  RRR4       KX  	  R#   + '       g   i     Km  ; i)r   r   r   o	linestylesolidN)r)   r   pytestraises	TypeErrorr   rk   eye)r/   r$   unsupported_kws      r%   test_spy_invalid_kwargsr      sm    llnGC+Y7$c;@B]]9%%FF266!Q<2>2 &%B%%%s   )A>>Bc                 n   \         P                  P                  R 4       \        P                  P                  ^ ^ 4      pV P                  4       P                  V4       VP                  4       pVP                  V4       VP                  P                  4        VP                  P                  R4       R# )mpl20r   N)mplstyleuserk   rl   r~   add_subplotmatshowr   r\   r   r   )r"   r#   r   ry   s   &&  r%   test_matshowr      sy    IIMM'
		r2A""1%  "F
MM!
LL
LL##F+r'   formatter_ticker_03dz.pngx86_64gX9v?)tolc                     ^ RI Hu Hp  V P                  4        ^\        P
                  R&   \        ^
4       Uu. uF  qV P                  ,          NK  	  pp\        ^
4       Uu. uF$  pRV,          R,
          V P                  ,          NK&  	  pp\        ^
4       Uu. uF$  pRV,          R,
          V P                  ,          NK&  	  pp\        P                  ! 4       P                  4       pVP                  R4       \        P                  ! 4       P                  4       pVP                  R4       VP                  W$RR	R
7       \        P                  ! 4       P                  4       pVP                  R4       VP                  W$RR	R
7       VP                  R4       \        P                  ! 4       P                  4       pVP                  W$RR	R
7       VP                  W%RRR
7       VP                  R4       \        P                  ! 4       P                  4       pVP                  W$RR	R
7       VP                  W%RRR
7       VP                  R4       VP                  4        R# u upi u upi u upi )r   Nzlines.markeredgewidth      ?      ?      ?      ?zx-label 001bluesec)colorxunitszx-label 003greenhourzx-label 004zx-label 005)matplotlib.testing.jpl_unitstesting	jpl_unitsregisterrX   rcParamsranger   kmr)   figurer   r*   r   autoscale_view)unitsr4   xdatar5   ydata1ydata2r$   s          r%   test_formatter_tickerr      s    10	NN 46J/0 #(),)Quyy[[)E,.3Bi8is1us{EHH$$iF8/4Ry9y!tAv|UXX%%yF9				 BMM- 				 BMM- GGEG6				 BMM- GGEG6MM- 				 BGGEG6GGEG8MM-  
			 BGGEG6GGEG8MM- 7 -89s   I($*I-*I2c                  r   R  p \         P                  ! 4       P                  4       pVP                  P                  '       g   Q hVP                  P
                  '       g   Q hVP                  P                  '       g   Q hVP                  P
                  '       g   Q hVP                  P                  V 4       VP                  P                  '       d   Q hVP                  P
                  '       g   Q hVP                  P                  '       g   Q hVP                  P
                  '       g   Q h\        P                  ! V 4      p\        VP                  P                  4       \        P                  4      '       g   Q hVP                  P                  4       P                  VP                  8X  g   Q hR# )c                     R # )  r4   poss   &&r%   	_formfunc4test_funcformatter_auto_formatter.<locals>._formfunc  s    r'   N)r)   r   r   r\   isDefault_majfmtisDefault_minfmtr^   set_major_formattermtickerFuncFormatter
isinstanceget_major_formatterfunc)r   r$   targ_funcformatters      r%   !test_funcformatter_auto_formatterr     sI    
			 B88$$$$$88$$$$$88$$$$$88$$$$$HH  +xx(((((88$$$$$88$$$$$88$$$$$ ..y9bhh224++- - - - 88'')..2D2I2IIIIr'   c                  p   R p \         P                  ! 4       P                  4       pVP                  P                  '       g   Q hVP                  P
                  '       g   Q hVP                  P                  '       g   Q hVP                  P
                  '       g   Q hVP                  P                  V 4       VP                  P                  '       g   Q hVP                  P
                  '       g   Q hVP                  P                  '       g   Q hVP                  P
                  '       d   Q h\        P                  ! V 4      p\        VP                  P                  4       \        P                  4      '       g   Q hVP                  P                  4       P                  VP                  8X  g   Q hR# )z	{x}_{pos}N)r)   r   r   r\   r   r   r^   set_minor_formatterr   StrMethodFormatterr   get_minor_formatterfmt)formstrr$   targ_strformatters      r%   &test_strmethodformatter_auto_formatterr   3  sG   G				 B88$$$$$88$$$$$88$$$$$88$$$$$HH  )88$$$$$88$$$$$88$$$$$xx(((((227;bhh224002 2 2 2 88'')--1B1F1FFFFr'   z!twin_axis_locators_formatters.pngc                  `   \         P                  ! ^ ^^RR7      p \         P                  ! \         P                  V ,          R,          4      p\        P
                  ! V4      p\        P
                  ! . RO4      p\        P                  ! 4       pVP                  ^^^4      pVP                  R^d.^ ^.4       VP                  P                  V4       VP                  P                  V4       VP                  P                  \        P                  ! R4      4       VP                  P                  \        P                  ! . R	O4      4       VP                   P                  \        P"                  ! 4       4       VP                   P                  \        P
                  ! . R
O4      4       VP                   P                  \        P                  ! R4      4       VP                   P                  \        P                  ! . RO4      4       VP%                  4        VP'                  4        R# )r   T)numendpoint       @皙?z%08.2lfz%05.2lfNr   皙?333333?)tricksmindjedi)   #   7   K   )r>   3pr   )rk   linspacesinpir)   FixedLocatorr   r   r   r^   set_major_locatorset_minor_locatorr   FormatStrFormatterr   FixedFormatterr\   LinearLocatortwinytwinx)valslocsmajlminlr/   ax1s         r%   "test_twin_axis_locators_formattersr  L  sr   ;;q!T2D66"%%$,$%DD!DO,D
**,C
//!Q
"CHHc3Z!Q II%II%II!!#"8"8"CDII!!#"4"4 6> #? @ II 1 1 34II 0 01A BCII!!#"8"8"CDII!!#"4"45I"JKIIKIIKr'   c                     \         P                  ! 4       w  rVP                  4       pVP                  4       p\         P                  ! 4        VP
                  P                  4       '       d   Q hVP                  P                  4       '       d   Q hVP                  4        VP                  4        VP
                  P                  4       '       d   Q hVP                  P                  4       '       d   Q hVP                  P                  4       '       g   Q hVP
                  P                  4       '       g   Q hVP                  P                  4       '       d   Q hVP                  P                  4       '       d   Q hVP
                  P                  4       '       g   Q hVP                  P                  4       '       g   Q hVP                  P                  4       '       g   Q hR # N)
r)   r   r  r  drawr\   get_visiblepatchclar^   )r/   r$   ax2ax3s       r%   test_twinx_clar  e  sS   llnGC
((*C
))+CHHJyy$$&&&&yy$$&&&&GGIGGIyy$$&&&&yy$$&&&&99  """"99  """"yy$$&&&&yy$$&&&&88!!!!88!!!!88!!!!r'   twinr4   r5   c                 `   V  R 2pRV  2pRR.pRR.p\        4       pVP                  4       pVP                  W44       \        Wa4      P                  f   Q h\        Wb4      ! 4       p\        Wq4      P                  f   Q h\        Wq4      P                  \        Wa4      P                  J g   Q hR# )axisr  01r   bN)r   r   r   getattrr   )r  	axis_name	twin_funcr   r  r/   r  r  s   &       r%   test_twin_unitsr   |  s    &ItfI	c
A	c
A
(C
,,.CHHQN3"((444
#
!
#C3"((4443"((GC,C,I,IIIIr'   RQ?)r   r   c                    R V 2pRV R2p\         P                  ! ^^d4      pV P                  ^^^4      p\        Wc4      ! 4       p\        Wd4      ! R4       VP	                  WU4       V P                  ^^^4      p\        Wd4      ! R4       \        Wc4      ! 4       pVP	                  WU4       R
 F  pVP                  ^^V4      p	\        W4      ! R4       V	P	                  WU4       \
        P                  P                  p
VP                  \
        P                  P                  V
! ^ ^ .^ ^.^ ^.^^.^^.^^ .^^ .^ ^ ..V
P                  V
P                  .^,          4      V	P                  R\        P                  R,          \        P                  R,          RR7      4       K  	  \!        V 4       \!        V4       R	# )r  set_scalelognonezaxes.edgecoloraxes.linewidth
projecting)	transform	facecolor	edgecolor	linewidthcapstyleNr;      )rk   rs   r   r  r   rX   pathPath
add_artistpatches	PathPatchMOVETOLINETO	transAxesr   r   r   )r"   r#   r  r  	set_scaler4   rx   ax_twiniry   r1  s   &&&        r%   test_twin_logscaler;    s    tfItfE"I
		!SA ""1a+Gg)+GG&LL ""1a+GG&g)+GLL$$Q1-"5)A ##((q!fq!f!fq!f!fq!f!fq!f& kk4;;/!3	5
 !** ,,'78,,'78% ) 
'	( * H%G$r'   ztwin_autoscale.pngg;On?c                     \         P                  ! . R	O4      p RV ,          p\         P                  ! . R
O4      p^V,          p\        P                  ! 4       pVP	                  RRRR7      pVP                  WR^
R7       \        P                  ! V4      pVP                  W#R^R7       VP                  ^ ^ 4       VP                  ^ ^ 4       R# )r   r   F)autoscalex_onautoscaley_onr   r   lwr--r@  Nr   r   r;   r   r;   r/  r   r   r;   r;   )rk   arrayr)   r   add_axesr   r  margins)r4   r5   x2y2r/   r$   r  s          r%   test_twinx_axis_scalesrK    s     	AaA	)	B	
RB
**,C	l%u	MBGGA2G&
))B-CHHRUqH!JJq!KK1r'   c                     \         P                  ! 4       w  rVP                  4       pVP                  R 4       VP                  4       pVP	                  4       '       g   Q hVP	                  4       '       d   Q hVP                  4       pVP                  R 4       VP                  4       pVP                  4       '       g   Q hVP                  4       '       d   Q hR# r   )r)   r   r  set_autoscalex_onget_autoscalex_onr  set_autoscaley_onget_autoscaley_on)r/   r$   ax_x_onax_x_offax_y_onax_y_offs         r%   #test_twin_inherit_autoscale_settingrU    s    llnGChhjGxxzH$$&&&&))++++hhjGxxzH$$&&&&))+++++r'   c                     \         P                  ! ^ 4      p V P                  4       pVP                  4       '       d   Q hVP	                  4       '       d   Q h\
        P                  P                  R4      pVP                  V4       VP                  4       '       d   Q hVP	                  4       '       g   Q hVP                  4        \
        P                  ! ^ ^\
        P                  ,          ^d4      pVP                  V\
        P                  ! V4      4       VP                  4       '       d   Q hVP	                  4       '       d   Q hVP                  4        VP                  V4       \         P                  ! 4        VP                  4       '       d   Q hVP	                  4       '       g   Q hV P                   F  pVP                  4        K  	  \         P                   ! ^4      p\         P                   ! ^VR7      pVP"                  P%                  R4       VP	                  4       '       g   Q hVP                  V\
        P                  ! V4      4       VP                  4        VP	                  4       '       d   Q hVP                  4        VP                  V4       VP                  V\
        P                  ! V4      4       VP                  4        VP	                  4       '       g   Q h\         P&                  ! V 4       R# )r   shareyTN)d   rY  )r)   r   gcaxaxis_invertedyaxis_invertedrk   rl   r   r  r   r   r   cos	autoscaleaxesremovesubplotr^   set_invertedclose)r/   r$   imgr4   ax0r  s         r%   test_inverted_clarf    s$    **Q-C	B  """"  """"
))

:
&CIIcN  """" FFH
Aqw$AGGArvvay  """"  """" FFHIIcNMMO  """"hh
		 
 ++c
C
++c#
&CII4 HHQq	GGI!!####GGIJJsOHHQq	GGI IIcNr'   c                  Z  a	 \         P                  ! \        R R7      ;_uu_ 4         ! V	3R lR\        4      p RRR4       \         P                  ! \        R R7      ;_uu_ 4         ! V	3R lR\        4      pRRR4        ! R RX 4      p ! V	3R	 lR
\        4      p ! V	3R lR\        4      p ! R RV4      p\	        4       pV XVW4V3 F6  pRo	V! V. RO4      pS	'       g   Q hRo	VP                  4        S	'       d   K6  Q h	  R#   + '       g   i     L; i  + '       g   i     L; i)zOverriding `Axes.cla`matchc                   .   <a  ] tR tRt o V3R ltRtV tR# )(test_subclass_clear_cla.<locals>.ClaAxesi  c                   < R oR# TNr   selfcalleds   &r%   r  ,test_subclass_clear_cla.<locals>.ClaAxes.cla  s    r'   r   N)__name__
__module____qualname____firstlineno__r  __static_attributes____classdictcell____classdict__rp  s   @r%   ClaAxesrk    s      r'   rz  Nc                   6   <a a ] tR tRt oV V3R ltRtVtV ;t# )-test_subclass_clear_cla.<locals>.ClaSuperAxesi  c                (   < R o\         SV `  4        R# rm  )superr  ro  	__class__rp  s   &r%   r  1test_subclass_clear_cla.<locals>.ClaSuperAxes.cla   s    r'   r   )rr  rs  rt  ru  r  rv  rw  __classcell__r  ry  rp  s   @@r%   ClaSuperAxesr|    s      r'   r  c                       ] tR tRtRtR# )+test_subclass_clear_cla.<locals>.SubClaAxesi%  r   Nrr  rs  rt  ru  rv  r   r'   r%   
SubClaAxesr  %      r'   r  c                   .   <a  ] tR tRt o V3R ltRtV tR# )*test_subclass_clear_cla.<locals>.ClearAxesi(  c                   < R oR# rm  r   rn  s   &r%   clear0test_subclass_clear_cla.<locals>.ClearAxes.clear)  s    Fr'   r   N)rr  rs  rt  ru  r  rv  rw  rx  s   @r%   	ClearAxesr  (  s     	 	r'   r  c                   6   <a a ] tR tRt oV V3R ltRtVtV ;t# )/test_subclass_clear_cla.<locals>.ClearSuperAxesi-  c                (   < R o\         SV `  4        R# rm  )r~  r  r  s   &r%   r  5test_subclass_clear_cla.<locals>.ClearSuperAxes.clear.  s    FGMOr'   r   )rr  rs  rt  ru  r  rv  rw  r  r  s   @@r%   ClearSuperAxesr  -  s     	 	r'   r  c                       ] tR tRtRtR# )-test_subclass_clear_cla.<locals>.SubClearAxesi3  r   Nr  r   r'   r%   SubClearAxesr  3  r  r'   r  FrE  )r   warnsPendingDeprecationWarningr   r   r  )
rz  r  r  r  r  r  r/   
axes_classr$   rp  s
            @r%   test_subclass_clear_clar    s    
 
/3
5 
5	d 	
5 
/3
5 
5	4 	
5W D 
 y  (Cj ,@
\* v
vv@C
5 
5
5 
5s   D%DD	D*	c                      \         P                  ! 4        F)  p R V P                  9  g   K  RV P                  9  d   K)  Q h	  R# )r  r  N)r   __subclasses__rt  __dict__)klasss    r%   !test_cla_not_redefined_internallyr  D  s7    $$& %E,>,>>...	 'r'   c                 :   \         P                  ! R RRR/4      ;_uu_ 4        V P                  4       pVP                  ^ ^.^ ^.4       RRR4       VP                  4       pVP                  ^ ^.^ ^.4       VP	                  4        R#   + '       g   i     LH; i)zxtick.minor.visibleTzytick.minor.visibleN)rX   r   r   r   minorticks_onr"   r#   rx   ry   s   &&  r%    test_minorticks_on_rcParams_bothr  L  s    			 5t 5t = 
> 
>##%aVaV$
> F
KKAA

> 
>s   'B

B	zautoscale_tiny_range.pngTremove_textc                      \         P                  ! ^^4      w  r\        VP                  4       F2  w  r#^
RV,
          ,          pVP	                  ^ ^.^^V,           .4       K4  	  R# )r/  Ni)r)   r   	enumerateflatr   )r/   axsr:  r$   y1s        r%   test_autoscale_tiny_ranger  W  sR     ||Aq!HC388$#']
AAF$ %r'   defaultc                     \         P                  ! ^^4      w  rVP                  . RO4       VP                  RRRR7       VP                  RRRR7       \	        VP                  4       R	4       \	        VP                  4       R
4       VP                  4       '       g   Q hVP                  4       '       g   Q hVP                  4       '       g   Q hVP                  RR7       \	        VP                  4       R	4       \	        VP                  4       R
4       VP                  4       '       g   Q hVP                  4       '       g   Q hVP                  4       '       g   Q hR# )r;   Tr4   F)enabler  tightr5   N)r  r;   r/        )g333333ÿg333333	@)r         @)
r)   r   r   r^  r   r   r   rN  rP  get_autoscale_onr.   s     r%   test_autoscale_tightr  `  s   ll1a GCGGLLL3eL4LL3dL3BKKM=1BKKM:. !!!!!!!!    LLLBKKM=1BKKM:.!!!!!!!!    r'   c                  D   \         P                  ! ^d\        R7      p \        P                  ! ^^RR7      w  pw  r#VP                  W 4       VP                  W 4       VP                  RR7       VP                  RR7       \        P                  ! 4        V ^,          V R,          3p\        VP                  4       V4       \        VP                  4       V4       \        VP                  4       V4       \        VP                  4       V ^ ,          V R,          34       R# )rY  dtypeTsharex)r  Nr   )rk   rs   floatr)   r   loglogsemilogxr^  r  r   r   r   )r4   r/   r  r  limss        r%   test_autoscale_log_sharedr  x  s     			#U#All1a5OC#JJqLLMMMMMMHHJaD!B%=DCLLND)CLLND)CLLND)CLLNQqT1R5M2r'   c                     \         P                  ! 4       w  rVP                  ^ ^.^^..RR7       \        VP	                  4       R4       \        VP                  4       R4       RVn        VP                  4        R^VP                  ,          ,
          R^VP                  ,          ,           3pR^VP                  ,          ,
          R^VP                  ,          ,           3p\        VP	                  4       V4       \        VP                  4       V4       RVn        VP                  4        \        VP	                  4       R4       \        VP                  4       R4       R# )	r   r   r   r   FTN      )r  r   )
r)   r   r   r   r   r   use_sticky_edgesr^  _xmargin_ymargin)r/   r$   r   r   s       r%   test_use_sticky_edgesr    s    llnGCII1v1vwI/BKKM;/BKKM;/BLLN1r{{?"C!bkk/$9:D1r{{?"C!bkk/$9:DBKKM4(BKKM4(BLLNBKKM;/BKKM;/r'   c                 &   \         P                  ! ^4      P                  ^^4      pV P                  ^4      pV P                  ^VR7      pVP	                  V4       VP                  ^4      pVP                  ^VR7      pVP	                  V4       R# )r   r  N)rk   rs   r   r   
pcolormesh)r"   r#   Zre  r  s   &&   r%   test_sticky_shared_axesr    s     			"a#A


s
#C


s3

/CNN1


c
"C


c#

.CNN1r'   zsticky_tolerance.pngr   )r  r   c                     \         P                  ! ^^4      w  rRpVP                  ^ ,          P                  ^ VRR7       VP                  ^ ,          P                  ^VRR7       VP                  ^,          P                  ^ V) RR7       VP                  ^,          P                  ^V) RR7       VP                  ^,          P	                  ^ V) RR7       VP                  ^,          P	                  ^V) RR7       VP                  ^,          P	                  ^ VRR7       VP                  ^,          P	                  ^VRR7       R# )	r/  r   gffff&@)r4   heightrQ   gffff@)r5   widthrR   Ngffff&gffff)r)   r   r  barbarh)r/   r  r  s      r%   test_sticky_tolerancer    s    ||Aq!HCEHHQKOOagO6HHQKOOagO6HHQKOOawO7HHQKOOawO7HHQKqX6HHQKqX6HHQKqH5HHQKqH5r'   zsticky_tolerance_cf.pngc                  r    \         P                  ! 4       w  rR R.;r#^ ^.^^..pVP                  W#V4       R# )gGZP@g    `P@N)r)   r   contourf)r/   r$   r4   r5   datas        r%   test_sticky_tolerance_contourfr    s<    llnGCx  AFQFDKKdr'   c                      \         P                  ! \        R R7      ;_uu_ 4        \        P                  ! 4        RRR4       R#   + '       g   i     R# ; i)z0 were givenrh  N)r   r   r   r)   stemr   r'   r%   test_nargs_stemr    s+    	y	7	7
 
8	7	7	7s   AA	c                      \         P                  ! \        R R7      ;_uu_ 4        \        P                  ! 4       p V P                  R.R.^4       RRR4       R#   + '       g   i     R# ; i)z3 were givenrh  FirstSecondN)r   r   r   r)   ra  rJ   r$   s    r%   test_nargs_legendr    sA    	y	7	7[[]
		7)hZ+ 
8	7	7	7   +AA+	c                      \         P                  ! \        R R7      ;_uu_ 4        \        P                  ! 4       p V P                  RR.. RO. RO.4       RRR4       R#   + '       g   i     R# ; i)z2 were givenrh  Nr   r;   r   r/  r;   r/  r  )r   r   r   r)   ra  
pcolorfastr  s    r%   test_nargs_pcolorfastr    sG    	y	7	7[[] 	vv&I(>? 
8	7	7	7s   0AA0	offset_pointsc                  D   \         P                  ! R RR4      p \         P                  ! R\         P                  ,          V ,          4      p\        P
                  ! 4       pVP                  RRRR7      pVP                  W^RR7      w  pVP                  RRR	RR
R7       R# )              @{Gz?r   F)autoscale_onr   r   purpler@  r   z	local maxr  zoffset points)xyxycoordsxytext
textcoordsN)r      r  r  r;   r  r  )	rk   rs   r]  r   r)   r   r   r   annotate)tsr/   r$   lines        r%   test_basic_annotater    s     			#sD!A
s255y1}A **,C	e'	HBGGAQhG/EDKK/  ;r'   zarrow_simple.pngc                     Rp RpRp\        WV4      p\        P                  ! ^^4      w  rE\        \	        VP
                  V4      4       F  w  pw  rxVP                  R^4       VP                  R^4       Vw  rp^\        P                  ,          V,          ^,          p	VP                  ^ ^ \        P                  ! V	4      \        P                  ! V	4      V	^d,          V VVV	^
,          V	^
,          R7
       K  	  R# )T)r  length_includes_headshapehead_starts_at_zero
head_widthhead_lengthN)TF)re   rR   rD   )r   r)   r   r  zipr  set_xlimset_ylimrk   r   arrowr   r]  )
r  r  r  kwargsr/   r  r:  r$   kwargthetas
             r%   test_arrow_simpler	    s     )%E')2EFF||Aq!HC#C&$9:;B
B
B=B:	&9BEE	A"
Arvve}bffUmSy&:%8!BJ"RZ 	 	) ;r'   c                  `    \         P                  ! 4       w  rVP                  ^ ^ ^ ^ ^ R7       R# )r   )r   N)r)   r   r  _r$   s     r%   test_arrow_emptyr  
  s%    LLNEAHHQ1aQH'r'   c                      \         P                  ! 4       w  rVP                  ^^^^4       VP                  4       R8X  g   Q hVP	                  4       R8X  g   Q hR# )r;   N)皙?皙@)r)   r   r  r   r   r  s     r%   test_arrow_in_viewr    sI    LLNEAHHQ1a;;=J&&&;;=J&&&r'   c                      \         P                  ! 4       w  rVP                  R RRR7      pVP                  e   Q hVP                  R RR/ R7      pVP                  f   Q hR# )foo)r  N)r  
arrowpropsr  r/  r  )r)   r   r  arrow_patch)r/   r$   anns      r%   test_annotate_default_arrowr    sY    llnGC
++eVF+
3C??"""
++eVFr+
BC??&&&r'   c                    \         P                  ! 4       w  r\        P                  ! VP                  4      P
                  p\        P                  ! \        P                  4      P
                  p\        VP                  4       4      \        VP                  4       4      8X  g   Q h\        VP                  4       VP                  4       4       F  w  rEWE8X  d   K  Q h	  R# )z?Check that the signature of Axes.annotate() matches Annotation.N)r)   r   inspect	signaturer  
parametersmtext
Annotationlistkeysr  values)r/   r$   annotate_paramsannotation_paramsp1p2s         r%   test_annotate_signaturer&     s    llnGC''4??O))%*:*:;FF$$&'40A0F0F0H+IIIIo,,.0A0H0H0JKxx Lr'   zfill_units.pngdpi)savefig_kwargc                  j   ^ RI Hu Hp  V P                  4        V P	                  R\
        P
                  ! R^^4      R7      pRV P                  ,          pV P                  RR4      p\        P                  ! RRRR	7      p\        P                  ! V4      p\        P                  ! ^^4      w  pw  w  rxw  rVP                  V.V.R
RR7       . ROpVP                  W[,          . ROR4       VP                  V.V.R
RR7       VP                  WW,           W,           .. ROR4       V	P                  V.V.R
RR7       V	P                  W[,          ^ V P                  ,          ^ V P                  ,          ^ZV P                  ,          ^ V P                  ,          .R4       V
P                  V.V.R
RR7       V
P                  WW,           W,           .^ V P                  ,          ^ V P                  ,          ^ZV P                  ,          ^ V P                  ,          .RR7       VP!                  4        R# )r   NET  dt      $@z
2009-04-27z
2009-04-29datetime64[D]r  degred)yunitsr   r  r   r*  g     @rE  )r  r  g     V@r  )r   r   r   r   Epochdatetimer0  Durationrk   rs   mdatesdate2numr)   r   r   fillautofmt_xdate)r   r  valuedayr-  dtnr/   r  r  r  ax4inds               r%   test_fill_unitsr@  *  s   00	NN 	DX..tQ;<A599E
..1
2C	<_	EB
//"
C$'LLA$6!C	!*3jsHHaS5'%uH5
CHHSX,c2HHaS5'%uH5HHaAGQW%"C) HHaS5'%uH5HHSX%))mQ]BNA		MJ HHaS5'%uH5HHaAGQW%%))mQ]BNA		MJ   r'   c            	      f   \         P                  ! \        R R7      ;_uu_ 4        \        P                  ! ^ .^ .RRR7       RRR4       \         P                  ! \        RR7      ;_uu_ 4        \        P                  ! ^ .^ .RRR	7       RRR4       \         P                  ! \        R
R7      ;_uu_ 4        \        P                  ! ^ .^ .RRR7       RRR4       \        P
                  ! ^ .^ .RRR7       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     LT; i)zmarker .* redundantly definedrh  r   r4   r   Nz linestyle .* redundantly defined---r   zcolor .* redundantly definedrr   r   r&  )r   r   )r   r  UserWarningr)   r   errorbarr   r'   r%    test_plot_format_kwarg_redundantrJ  L  s    	k)H	I	I!qc3s+ 
J	k)K	L	L!qc3$/ 
M	k)G	H	H!qc3f- 
I LL!qcvV4 
J	I	L	L	H	Hs#   C:.D7D :D
	D	 D0	c                    . ROp\         P                  ! V4      pVP                  4       pV P                  4       pVP                  W#\         P                  ! V4      \         P                  ! V4      R7      vrgVP                  ^^.4       VP                  W#\         P                  ! V4      \         P                  ! V4      ^^.R7       R# )r;   xerryerr)rM  rN  dashesNr  )rk   r   rZ  rI  abs
set_dashes)r"   r#   r4   r5   ry   rx   r  r  s   &&      r%   test_errorbar_dashesrR  W  s    A
q	A[[]FllnGq"&&)"&&)DHDOOQFQq	q	1a&Ir'   c                      \        ^
4       U u/ uF  q V bK  	  pp \        P                  ! 4       w  r#VP                  VP	                  4       VP                  4       VP                  4       R7       R# u up i )
   r4   r5   rM  N)r   r)   r   rI  r   r!  )iiDr/   r$   s       r%   test_errorbar_mapview_kwargrX  e  sR    )$)BR)A$llnGCKK!&&(ahhjqxxzK: 	%s   A2single_pointc                  v   R \         P                  R&   R\         P                  R&   \        P                  ! ^4      w  p w  rVP	                  ^ .^ .R 4       VP	                  ^.^.R 4       R^ .R^./p\        P                  ! ^4      w  p w  rVP	                  RRR VR7       VP	                  RRR VR7       R# )r   lines.markerT	axes.gridr   r  r  N)rX   r   r)   r   r   )r/   r  r  r  s       r%   test_single_pointr^  k  s     +.J''+J$ll1oOC#HHaS1#sHHaS1#s !cA3Dll1oOC#HHS#sH&HHS#sH&r'   zsingle_date.png)r   c            	         R\         P                  R&   \        P                  ! \        P
                  ! R4      4      p R.pR	.p\         P                  ! ^^4      w  r4\        P                  ! \        P                  4      ;_uu_ 4        V^ ,          P                  W,           VRRR7       RRR4       V^,          P                  WRRR7       R#   + '       g   i     L-; i)
   zaxes.formatter.limitsz
0000-12-31g    X&Ar   rF  rG  N)r`  g(\bP)r)   r   r7  r8  rk   
datetime64r   r   r  r   MatplotlibDeprecationWarning	plot_dater   )r-  time1data1r/   r$   s        r%   test_single_daterg  }  s     -2CLL()	|4	5BJEHEll1a GC	c66	7	7
1
E3c: 
8qEJJuSJ, 
8	7s   	#CC!	c                    \         P                  ! ^
4      P                  R4      p\         P                  ! ^ ^d^
4      P                  R4      pV P                  ^4      pV^ ,          P	                  V4       V^,          P	                  V4       VP                  ^4      pV^ ,          P                  RRR7       V^,          P	                  VP                  4       4       R# )rT  r   r   Nr;   r   r   r;   gQQ?)r   	   )rk   rs   r   r   r   r   ravel)r"   r#   rowcolr  s   &&   r%   test_shaped_datarr    s    
))B-


(C
))AsB

'
'
0C


A
CFKKFKK


1
CFJJKfJ-FKK		r'   c                     \         P                  ! RR.R\        3R\        3.R7      p \        P                  ! 4       P                  ^4      pV^ ,          P                  RRV R7       V^,          P                  RRRV R7       R# )	r;   r   twosr  r]  rF  Nr;   r;   r/  r/  )rk   rF  r  r)   r   r   r   )ptsr  s     r%   test_structured_datarx    sj    
((FF#VUOfe_+M
NC **,


"CFKKSK)FKK#K.r'   aitoff_proj)r   r  r   c                    \         P                  ! \         P                  ) \         P                  ^4      p \         P                  ! \         P                  ) ^,          \         P                  ^,          ^4      p\         P                  ! W4      w  r#\        P
                  ! R\        RR7      R7      w  rEVP                  4        VP                  VP                  VP                  R^R7       R# )zR
Test aitoff projection ref.:
https://github.com/matplotlib/matplotlib/pull/14451
aitoff
projection)figsize
subplot_kwr   )r   N)   @)
rk   r   r   meshgridr)   r   dictgridr   r  )r4   r5   XYr/   r$   s         r%   test_aitoff_projr    s     	RUUFBEE2&A
RUUFQJ	2.A;;qDAll8&*h&?AGCGGIGGAFFAFFCAG.r'   zaxvspan_epoch.pngc                     ^ RI Hu Hp  V P                  4        V P	                  R\
        P
                  ! R^^4      R7      pV P	                  R\
        P
                  ! R^^4      R7      pV P                  RV P                  P                  R4      4      p\        P                  ! 4       pVP                  WRRR7       VP                  VR	V,          ,
          VR	V,          ,           4       R# 
r   Nr*  r+  r,  r   r         ?)r*  alphar  )r   r   r   r   r4  r5  r6  r<  convertr)   rZ  axvspanr  r   t0tfr-  r$   s        r%   test_axvspan_epochr        00	NN 
Th//a<	=B	Th//a<	=B	eii//6	7B	BJJrtJ4KKSVR#b&[)r'   zaxhspan_epoch.png{Gz?c                     ^ RI Hu Hp  V P                  4        V P	                  R\
        P
                  ! R^^4      R7      pV P	                  R\
        P
                  ! R^^4      R7      pV P                  RV P                  P                  R4      4      p\        P                  ! 4       pVP                  WRRR7       VP                  VR	V,          ,
          VR	V,          ,           4       R# r  )r   r   r   r   r4  r5  r6  r<  r  r)   rZ  axhspanr  r  s        r%   test_axhspan_epochr    r  r'   zhexbin_extent.pngc                  &   \         P                  ! 4       w  r\        P                  ! R 4      R ,          P	                  R4      pVw  r4VP                  W4. ROR7       RVRV/p\         P                  ! 4       w  rVP                  RR. ROVR7       R# )  extentr4   r5   )r  r  N)r/    r   r   333333?ffffff?)r)   r   rk   rs   r   hexbinr/   r$   r  r4   r5   s        r%   test_hexbin_extentr    sx     llnGCIIdOd"++I6DDAIIa+I, CDllnGCIIc3/dI;r'   c                     \         P                  ! 4       w  r\        P                  ! ^4      ^,          P	                  R4      pVw  r4\
        P                  ! \        RR7      ;_uu_ 4        VP                  W4RR7       RRR4       \
        P                  ! \        RR7      ;_uu_ 4        VP                  W4RR7       RRR4       R#   + '       g   i     LR; i  + '       g   i     R# ; i)	   z)In extent, xmax must be greater than xminrh  r  Nz)In extent, ymax must be greater than ymin)r/  rT  r;   r   r   r;   )r   r;   r;   r   )	r)   r   rk   rs   r   r   r   
ValueErrorr  r  s        r%   test_hexbin_bad_extentsr    s    llnGCIIbMB''0DDA	z)T	U	U
		!|	, 
V 
z)T	U	U
		!|	, 
V	U 
V	U 
V	U	Us   ,C
,C
C	C.	c                     \         P                  ! 4       w  rVP                  \        P                  P                  ^
4      \        P                  P                  ^
4      R^^R7      p\        V\        P                  P                  4      '       g   Q h\        VP                  \        P                  P                  4      '       g   Q hVP                  P                  ^8X  g   Q hVP                  P                  ^8X  g   Q hR# )rT  r%  normvminvmaxN)r)   r   r  rk   rl   r~   r   rX   collectionsPolyCollectionr  colorsLogNormr  r  )r/   r$   hexs      r%   test_hexbin_string_normr    s    llnGC
))BIINN2&		r(:QUV)
WCc:11@@AAAAchh
 1 1 9 9::::88==A88==Ar'   zhexbin_empty.pngc                     \         P                  ! 4       w  rVP                  . . 4       VP                  . . R R7       VP                  . . . \        P                  R7       VP                  . . \        P
                  ! ^
4      R7       R# )r%  bins)Creduce_C_functionN)r)   r   r  rk   maxrs   r.   s     r%   test_hexbin_emptyr    se     llnGCIIb" IIb"5I!IIb"bffI5IIb"299R=I)r'   c                     \         P                  ! 4       w  r\        P                  ! ^4      ^,          P	                  R4      pVw  r4VP                  W4. RORR7      p\        RRR7      pVP                  V4      ^ ,          '       g   Q hR# )	   )r  picker  ,  r4   r5   Nr/  rY  r  r   )r)   r   rk   rs   r   r  r   contains)r/   r$   r  r4   r5   hbmouse_events          r%   test_hexbin_pickabler    sn    llnGCIIcNS ))(3DDA	1 0	<B!C3/K;;{#A&&&&r'   zhexbin_log.pngc            	      B   R \         P                  R&   \        P                  P	                  R4       Rp \        P                  P                  V 4      pRRV,          ,           R\        P                  P                  V 4      ,          ,           p\        P                  ! ^VR,          4      p\         P                  ! 4       w  r4VP                  WRRR	\        P                  R
7      p\         P                  ! V4       VP                  4       P                  R8X  g   Q hR# )Fpcolormesh.snapra   順 r         @r  r   r%  T)yscaler  	marginalsr  N)i&-  r/  )r)   r   rk   rl   rm   standard_normalpowerr   r  sumrK   get_offsetsr  )nr4   r5   r/   r$   hs         r%   test_hexbin_logr    s    
 ',CLL"#IINN8A
		!!!$AcAgbii77:::A
AGAllnGC
		!u5 BFF 	 	<ALLO ==?  J...r'   c                  B   \         P                  ! ^^dR4      p \        P                  ! 4       w  rVP	                  W RR^R7      p\         P
                  P                  VP                  4       \         P                  ! ^ ^ .^ ^.^^ .^^.^^ .^^.R^.R^..4      4       R# )r;     r%  )xscaler  gridsizer   r   N)	rk   	geomspacer)   r   r  r   assert_almost_equalr  rF  )r4   r/   r$   r  s       r%   test_hexbin_log_offsetsr  (  s    
QS!AllnGC
		!uUQ	?AJJ""	
VVVVVV1X1X	
r'   zhexbin_linear.pngr   r  c                  p   \         P                  P                  R 4       Rp \         P                  P                  V 4      pRRV,          ,           R\         P                  P                  V 4      ,          ,           p\        P
                  ! 4       w  r4VP                  WRR\         P                  R7       R# )	ra   r  r   r  r  T)r  r  r  NrT  r  )rk   rl   rm   r  r)   r   r  r  )r  r4   r5   r/   r$   s        r%   test_hexbin_linearr  :  s~     IINN8A
		!!!$AcAgbii77:::AllnGCIIaW "  (r'   c                      \         P                  ! ^4      P                  R4      w  r\        P                  ! 4       w  r#VP                  WR^^dR7      pVP                  4       R8X  g   Q hR# )r  r%  )r  r  r  Nr  )rk   rs   r   r)   r   r  get_clim)r4   r5   r/   r$   r  s        r%   test_hexbin_log_climr  G  sS    99S>!!(+DAllnGC
		!U	5A::<8###r'   c           
      V   . ROp\        V!  w  r4^.\        V4      ,          p. ROpRpV P                  4       pVP                  4       p	V	P                  W4VV^R7       V	P	                  R4       VP                  W4^.\        V4      ,          R ^VVR7       VP	                  R4       R# )	r   )r  r  mincntr   c                     \        V 4      # r  )r  )vs   &r%   <lambda>>test_hexbin_mincnt_behavior_upon_C_parameter.<locals>.<lambda>m  s    CFr'   )r  r  r  r  r  N)r   r   r  )   r   )r   r  )      $rT  r  rT  )r`  r`  )r  lenr   r  set_facecolor)
r"   r#   
datapointsr  r  r  r  r  rx   ry   s
   &&        r%   ,test_hexbin_mincnt_behavior_upon_C_parameterr  N  s    J 
DA	
c!fA!FH!GF MM		   ! NN	#A,*   '"r'   c                  ~   \         P                  ! 4       w  rVP                  4        VP                  . RO. RO4       VP	                  4       R8X  g   Q hVP                  4       R8X  g   Q h\         P                  ! 4        \         P                  ! 4       w  rVP                  4        VP                  . RO. RO4       VP	                  4       R8X  g   Q hVP                  4       R8X  g   Q h\         P                  ! 4       w  rVP                  R4       VP                  ^
^4       VP                  4       R	8X  g   Q hR# )
r  r%  N)r  r/  r  )r;   r/  r  r  )r  r  r  )r  r  )r  r  )rT  r;   )
r)   r   invert_xaxisr   r   r   rc  invert_yaxis
set_yscaler  r.   s     r%   test_inverted_limitsr  u  s     llnGCOOGGNM*;;=G###;;=G###IIKllnGCOOGGNM*;;=G###;;=G### llnGCMM%KKA;;=G###r'   nonfinite_limitsc                     \         P                  ! R \         P                  R4      p \         P                  ! RR7      ;_uu_ 4        \         P                  ! V 4      pRRR4       \         P
                  V \        V 4      ^,          &   \        P                  ! 4       w  r#VP                  V X4       R#   + '       g   i     L^; i)r  r  ignoredivideN)
rk   rs   eerrstater%  nanr  r)   r   r   r4   r5   r/   r$   s       r%   test_nonfinite_limitsr    sq    
		"bddD!A	H	%	%FF1I 
&66Ac!faiLllnGCGGAqM	 
&	%s   B33C	plot_func           	          \         P                  ! R RRR7      pVP                  4       pVP                  4       p\        W@4      ! . . 4       WE3 F)  p\        W`4      ! V\	        \        V4      4      RR7       K+  	  R# )z
2010-01-01z
2011-01-01r/  r  C0rG  N)rk   rs   r   r  r   r  )r  r"   r#   r4   rx   ry   r$   s   &&&    r%   test_limits_empty_datar    sg     			,ODA!GFGr2&as1vd;  r'   r   c                     R \         P                  R&   ^dp \        P                  ! W 34      w  rW^,          ,          pW ^,          ,          p\        P                  ! V^,          V^,          ,           W,          ,
          4      p\
        P                  ! 4       w  rEVP                  V4       RV/p\
        P                  ! 4       w  rEVP                  RVR7       R# )r   image.interpolationrF  r]  N)rX   r   rk   indicessqrtr)   r   r   )Nr4   r5   rF  r/   r$   r  s          r%   test_imshowr    s     2;J-.AZZFQAIAAIA
1QT	!#A llnGCIIaL 8DllnGCIIcIr'   imshow_clipgףp=
?)r   r   c                     R \         P                  R&   ^dp \        P                  ! W 34      w  rW^,          ,          pW ^,          ,          p\        P                  ! V^,          V^,          ,           W,          ,
          4      p\
        P                  ! 4       w  rEVP                  W0^,          .4      p\        P                  ! VP                  4       ^ ,          VP                  4       4      pVP                  W7R7       R# )r   r  )	clip_pathN)rX   r   rk   r  r  r)   r   contourmtransformsTransformedPath	get_pathsget_transformr   )r  r4   r5   rF  r/   r$   r>   r  s           r%   test_imshow_clipr    s    
 2;J-. 	AZZFQAIAAIA
1QT	!#A llnGC


1seA++AKKM!,<aoo>OPI IIaI%r'   c            	        ^^.^^..p \         P                  ! 4       p\        P                  ! \        RR7      ;_uu_ 4        VP                  V \        P                  ! R^
4      ^ ^R7       RRR4       R#   + '       g   i     R# ; i)4Parameters vmin, vmax should error if norm is given.LPassing a Normalize instance simultaneously with vmin/vmax is not supported.rh  r  N)r)   r_  r   r   r  r   mcolors	Normalize)r   r$   s     r%   test_imshow_norm_vminvmaxr    sv    
Q!QA	B	z@
A 
A 			!'++C411	E
A 
A 
A 
As   +A77B	polycollection_joinstylec                  &   \         P                  ! 4       w  r\        P                  ! ^^.^^.^^.^^..4      p\        P
                  P                  V.^(R7      pVP                  V4       VP                  ^ ^4       VP                  ^ ^4       R# )r;   )
linewidthsN)
r)   r   rk   rF  r   r  r  add_collection
set_xbound
set_ybound)r/   r$   vertsr>   s       r%   test_polycollection_joinstyler    s}     llnGCHHq!fq!fq!fq!f56E&&w2&>AaMM!QMM!Qr'   z	x, y1, y2r  )idsc                     \         P                  ! 4       w  r4\        P                  ! \        4      ;_uu_ 4        VP                  WV4       R R R 4       R #   + '       g   i     R # ; ir  )r)   r   r   r   r  fill_betweenr4   r  rJ  r/   r$   s   &&&  r%   test_fill_between_inputr"    s=     llnGC	z	"	"
r" 
#	"	"	"   AA(	z	y, x1, x2c                     \         P                  ! 4       w  r4\        P                  ! \        4      ;_uu_ 4        VP                  WV4       R R R 4       R #   + '       g   i     R # ; ir  )r)   r   r   r   r  fill_betweenx)r5   x1rI  r/   r$   s   &&&  r%   test_fill_betweenx_inputr'    s?     llnGC	z	"	"
# 
#	"	"	"r#  zfill_between_interpolate.pngg~jt?)r  r   c            
         \         P                  ! R ^R4      p \         P                  ! ^\         P                  ,          V ,          4      pR\         P                  ! ^\         P                  ,          V ,          4      ,          p\        P
                  ! ^^RR7      w  pw  rEVP                  WWRR7       VP                  WW"V8  RRRR	7       VP                  WW"V8*  R
RR7       \         P                  P                  VR4      p\         P                  P                  V^ &   VP                  WWRR7       VP                  WW"V8  RRR7       VP                  WW"V8*  R
RR7       R# )r  r  333333?Tr  blackrG  white/)wherer*  hatchinterpolater1  )r-  r*  r/  r   r   N)rk   rs   r   r   r)   r   r   r   r	   masked_greatermasked)r4   r  rJ  r/   r  r  s         r%   test_fill_between_interpolater2    s6    			#q$A	"%%		B	RVVAbeeGAI	Bll1a5OC#HHQAH)QBBh'!%  'QBBh%!%  ' 
		b#	&BEELLBqEHHQAH)QBBh'!%  'QBBh%!%  'r'   z'fill_between_interpolate_decreasing.pngc            
         \         P                  ! . RO4      p \         P                  ! . RO4      p\         P                  ! . RO4      p\        P                  ! RR7      w  r4VP	                  WR4       VP	                  W R4       VP                  WW"V8  RRRR7       VP                  WW"V8  RRRR7       VP                  ^ ^4       VP                  R	R
4       R# )fffff@r~  ztab:redkr   T皙?r-  r*  r/  r  r1     X  N)r4  i  i  )g"@r`  r  )g@gffffff@gffffff@)rn  rn  )rk   rF  r)   r   r   r%  r  r  )r   r  profr/   r$   s        r%   (test_fill_between_interpolate_decreasingr<  (  s     	"#A
A88O$Dll6*GCGGA)GGDSQ4ax%4s  DQ4ax$$c  C KK2KKSr'   z fill_between_interpolate_nan.pngc                     \         P                  ! ^
4      p \         P                  ! ^^\         P                  ^^^^^^^.
4      p\         P                  ! ^^^^^^^ ^\         P                  \         P                  .
4      p\        P
                  ! 4       w  r4VP                  WRR7       VP                  WRR7       VP                  WW"V8  RRRR7       VP                  WW!V8  RRRR7       R	# )
rT  r6  r>   r  r   Tr   r8  r1  N)rk   rs   asarrayr  r)   r   r   r   r!  s        r%   !test_fill_between_interpolate_nanr@  =  s     			"A	QBFFB2r2q"=	>B	RQBBBFFBFFC	DBllnGCGGASGGGASGOOA22X $C  1OOA22X $C  1r'   z
symlog.pdfc                     \         P                  ! . RO4      p \         P                  ! . RO4      p\        P                  ! 4       w  r#VP	                  W4       VP                  R4       VP                  R4       VP                  RR4       R# )r   symloglineari N)r   r;   r/  r  r  rn        )i@B i  r  rY  r  r   r   r   r   )rk   rF  r)   r   r   r  
set_xscaler  r  s       r%   test_symlogrG  Q  s^    
+,A
;<AllnGCGGAMMM(MM(KKHr'   zsymlog2.pdfc                  2   \         P                  ! R^2R4      p \        P                  ! ^^4      w  r\	        V. RO4       F:  w  r4VP                  W 4       VP                  RVR7       VP                  R4       K<  	  VR	,          P                  R
R4       R# )2   MbP?r   rB  )	linthreshTN)      4@r   r   r   r  r   皙)	rk   rs   r)   r   r  r   rF  r  r  )r4   r/   r  r$   rK  s        r%   test_symlog2rO  ]  sx     			#r5!A||Aq!HCS":;

h)4
 < GT3r'   c            
      ~   . ROp . ROp\         P                  ! W4      w  r#\         P                  ! W#4      p\        P                  ! V4       \        P                  ! \        V4      4       \        P                  ! WVRR1RR13,          4       \        P                  ! W#\        VRR1RR13,          4      4       R# )r   N)            r  r  r   r   r   )rQ  g      rR        r        пr   r  r         ?r         ?r   r   )rk   r  hypotr)   pcolorr  )r4   r5   r  r  r  s        r%   test_pcolorargs_5205rY  j  s    .A	*A;;qDA
AJJqMJJtAwJJqQssCRCx[!JJqT!CRC"H+&'r'   r  c                     R \         P                  R&   ^p \        P                  ! RRV 4      p\        P                  ! RRV ^,          4      p\        P                  ! W4      w  r4\        P
                  ! V4      \        P
                  ! V4      ,
          p\        P                  ! V4      \        P                  ! V4      ,           pVR,           p\        P                  ! W44      ^,          pWwP                  4       ,
          \        P                  ! V4      ,          p\        P                  ! \        P                  ! V4      R\        P                  ! V4      ,          8  V4      p\         P                  ! ^^4      w  p	w  rpV
P                  WVVRR1RR13,          RRR7       VP                  WVVRR1RR13,          ^RR	.R7       VP                  WVVR
R7       R# )Fr  r   皙?r   Nr6  r@  
edgecolorsr  wgouraudshadingrQ  r   )r)   r   rk   r   r  r]  r   rW  minptpr	   masked_whererP  r  r   r  )r  r4   r5   r  r  QxQzr  Zmr  r  r  r  s                r%   test_pcolormeshrh  x  s\    ',CLL"#
A
D#q!A
D#qs#A;;qDA	RVVAY	B	RVVAY	B
s(B
A	
UUWq	!A 
cBFF2J&66	:Ba+A#NN22crc3B3h<CCN@NN22crc3B3h<A3*NENN22yN1r'   pcolormesh_smallepsc                  z   ^p \         P                  ! RRV 4      p\         P                  ! RRV ^,          4      p\         P                  ! W4      w  r4\         P                  ! V4      \         P                  ! V4      ,
          p\         P                  ! V4      \         P                  ! V4      ,           pVR,           p\         P
                  ! W44      ^,          pWwP                  4       ,
          \         P                  ! V4      ,          p\        P                  ! \         P                  ! V4      R\         P                  ! V4      ,          8  V4      p\        P                  ! VR\         P                  ! V4      ,          8  V4      p	\        P                  ! ^^4      w  p
w  w  rw  rVP                  WVVRR1RR13,          RRR7       VP                  WVVRR1RR13,          ^RR.R7       VP                  WVVR	R
7       VP                  WVV	R	R
7       V
P                   F  pVP!                  4        K  	  R# )r  r   r[  r   Nr6  r\  r  r^  r_  r`  rQ  r  r   )rk   r   r  r]  r   rW  rb  rc  r	   rd  rP  r  r)   r   r  r_  set_axis_off)r  r4   r5   r  r  re  rf  r  rg  Zm2r/   r  r  r  r>  r$   s                   r%   test_pcolormesh_smallrn    s   	A
D#q!A
D#qs#A;;qDA	RVVAY	B	RVVAY	B
s(B
A	
UUWq	!A	cBFF2J&66	:B
//"tbffRj00!
4C$'LLA$6!C	!*3jsNN22crc3B3h<CCN@NN22crc3B3h<A3*NENN22yN1NN23	N2hh
 r'   pcolormesh_alphapdf)r   r  c                  \   R \         P                  R&   ^p \        P                  ! \        P                  ! RRV 4      \        P                  ! RRV ^,          4      4      w  rTpV\        P
                  ! V4      ,           p\        P                  ! W4      ^,          pWUP                  4       ,
          \        P                  ! V4      ,          p\        P                  R,          P                  ^4      pV! \        P                  ! ^4      4      pRR\        P
                  ! \        P                  ! ^4      4      ,          ,           VR&   \        P                  ! V4      p\         P                  ! ^^4      w  p	w  w  rw  rWW3 F/  pVP!                  \"        P$                  ! RR^. RO^ R7      4       K1  	  V
P'                  W4VRR1RR13,          VRR^R	7       VP'                  W4WVRR
^R	7       VP'                  W4VRR1RR13,          VR^R7       VP'                  W4WXR
^R7       R# )Fr  r   viridisr   )r*  zorderNr7  r  )r   r  ra  rs  r_  )r   ra  rs  rQ  )NNNr  )r   rQ  )r  r   r   r   r   )r)   r   rk   r  r   r   rW  rb  rc  r   	colormaps	resampledrs   r  ListedColormapr   	add_patchmpatches	Rectangler  )r  r  r  re  Qyr  virr  r   r/   r  r  r  r>  r$   s                  r%   test_pcolormesh_alphar}    s    ',CLL"#
A;;
D#q!
D#qs#DA 
B	
RVVAYB
A	
UUWq	!A
--	
"
,
,R
0C2FRVVBIIbM222F4L!!&)D$'LLA$6!C	!*3js 
X''sA)9!
 	 !
 NN21SbS#2#X;S!!  -NN21c9QNONN21SbS#2#X;T6!NLNN211NEr'   z
dims,alphac                     V P                  4       p\        P                  ! ^^V3\        R7      ^,          pVP	                  V4       VP                  4       pVP	                  VR,          R^ ^VR7       R# )r  r  gray)r   r  r  r  N).r   )r   rk   r   r  r  )r"   r#   dimsr  r$   r>   s   &&&&  r%   test_pcolormesh_rgbar    sa     
			B
AtE*Q.AMM!				BMM!F)&qqMFr'   c                 ,   \         P                  ! ^4      p\         P                  ! ^4      p\         P                  ! W#4      w  rEWE,           pV P                  4       pVP	                  VRR7       VP                  4       pVP	                  W#VRR7       R# )r  r   r`  N)rk   rs   r  r   r  )r"   r#   r4   r5   r  r  r  r$   s   &&      r%   test_pcolormesh_nearest_noargsr    sq    
		!A
		!A;;qDA	A				BMM!YM'				BMM!9M-r'   zpcolormesh_datetime_axis.pngc            
      F   R \         P                  R&   \         P                  ! 4       p V P                  RRRR7       \        P                  ! R^^4      p\
        P                  ! \        ^4       Uu. uF   q!\        P                  ! VR7      ,           NK"  	  up4      p\
        P                  ! ^4      p\
        P                  ! \
        P                  ! ^4      \
        P                  ! ^4      4      w  rVWV,          p\         P                  ! ^4       \         P                  ! VRR VRR VRR1RR13,          4       \         P                  ! ^4       \         P                  ! W4V4       \
        P                  ! V\
        P                  ,          ^^ R	7      p\
        P                  ! VR
\
        P                  3,          ^^R	7      p\         P                  ! ^4       \         P                  ! VRR1RR13,          VRR1RR13,          VRR1RR13,          4       \         P                  ! ^4       \         P                  ! W4V4       V P                  4        F<  pVP!                  4        F%  p	V	P#                  R4       V	P%                  ^4       K'  	  K>  	  R# u upi )Fr  r7  \(\?333333?hspacer@   rQ     daysNr  rt  rD   r   )r)   r   r   subplots_adjustr5  rk   rF  r   	timedeltars   r  ra  r  repeatnewaxisget_axesget_xticklabelsset_haset_rotation
r/   basedr4   r5   z1z2zr$   r2   s
             r%   test_pcolormesh_datetime_axisr    s    ',CLL"#
**,CsS9T1a(D
U2YGY++333YGHA
		"A[[2		"6FB
AKKNN1Sb61Sb61SbS#2#X;/KKNN1
		!BJJ-!,A
		!ArzzM"BQ/AKKNN1SbS#2#X;#2#ss(QssCRCx[9KKNN1lln'')ELL!r" *  Hs   2&Jzpcolor_datetime_axis.pngc            
          \         P                  ! 4       p V P                  R RRR7       \        P                  ! R^^4      p\        P
                  ! \        ^4       Uu. uF   q!\        P                  ! VR7      ,           NK"  	  up4      p\        P                  ! ^4      p\        P                  ! \        P                  ! ^4      \        P                  ! ^4      4      w  rVWV,          p\         P                  ! ^4       \         P                  ! VRR
 VRR
 VRR
1RR
13,          4       \         P                  ! ^4       \         P                  ! W4V4       \        P                  ! V\        P                  ,          ^^ R7      p\        P                  ! VR\        P                  3,          ^^R7      p\         P                  ! ^4       \         P                  ! VRR
1RR
13,          VRR
1RR
13,          VRR
1RR
13,          4       \         P                  ! ^4       \         P                  ! W4V4       V P                  4        F<  pVP                  4        F%  p	V	P!                  R	4       V	P#                  ^4       K'  	  K>  	  R# u upi )r7  r  r  r  r  r  Nr  rt  rD   r   )r)   r   r  r5  rk   rF  r   r  rs   r  ra  rX  r  r  r  r  r  r  r  s
             r%   test_pcolor_datetime_axisr    s   
**,CsS9T1a(D
U2YGY++333YGHA
		"A[[2		"6FB
AKKJJq"vq"vq"crc{+KKJJqQ
		!BJJ-!,A
		!ArzzM"BQ/AKKJJq"crc{Acrc3B3hK3B385KKJJqQlln'')ELL!r" *  Hs   &Jc            
      
   ^p \         P                  ! RRV 4      p\         P                  ! RRV ^,          4      p\         P                  ! W4      w  r4\         P                  ! W44      ^,          p\        P
                  ! 4       w  rg\        P                  ! \        4      ;_uu_ 4        VP                  W!V4       RRR4       \        P                  ! \        4      ;_uu_ 4        VP                  W4VP                  4       RRR4       \        P                  ! \        4      ;_uu_ 4        VP                  WVRR1RR13,          RR7       RRR4       \        P                  ! \        4      ;_uu_ 4        VP                  W4VRR1RR13,          RR7       RRR4       \         P                  V^ &   \        P                  ! \        4      ;_uu_ 4        VP                  WVRR1RR13,          4       RRR4       \         P                  ! RR7      ;_uu_ 4        \         P                  P                  W^ 8  R7      pRRR4       \        P                  ! \        4      ;_uu_ 4        VP                  WVRR1RR13,          4       RRR4       . ROpR^
.p\         P                  ! W4      w  r4\         P                   ! VP"                  4      p\        P$                  ! \&        RR	7      ;_uu_ 4        VP                  W4VR
R7       RRR4       \         P                  ! R^^4      p\         P                  ! R^^4      p\         P                  ! W4      w  r4\         P                   ! VP"                  4      p\         P(                  P+                  R4       \         P(                  P)                  VP"                  4      p\         P(                  P)                  VP"                  4      p	\        P$                  ! \&        RR	7      ;_uu_ 4       p
VP                  W8,           WI,           VR
R7       \-        V
4      ^ 8X  g   Q hVP                  V^
V,          ,           V^
V	,          ,           VR
R7       \-        V
4      ^8X  g   Q h RRR4       R#   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELw; i  + '       g   i     EL?; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     R# ; i)rD  r   Nr_  r`  r  invalidmaskz.are not monotonically increasing or decreasingrh  autora   rQ  r   )ig  r   r;   r  )rk   r   r  rW  r)   r   r   r   r   r  Tr  r  r  r	   rF  zerosr  r  rH  rl   rm   r  )r  r4   r5   r  r  r  r  r$   noise_Xnoise_Yrecords              r%   test_pcolorargsr    s   
A
D#q!A
D#qs#A;;qDA
ALLNEA	y	!	!
aA 
"	y	!	!
aACC  
"	y	!	!
aAcrc3B3hK; 
"	y	!	!
aAcrc3B3hK; 
"66AaD	z	"	"
aAcrc3B3hK( 
#	X	&	&EEKKQK( 
'	z	"	"
aAcrc3B3hK( 
#
 	A	b	A;;qDA
A	kL
N 
N
aAv.
N 	B1A
B1A;;qDA
AIINN8iiqww'Giiqww'G	k)
* 
*-3 	aiAv>6{a 	a7
lAbjL!VD6{a
* 
*C 
"	!	!	!	!	!	!	!	!	!	!	! 
#	"	"	&	&	&	"	"	"
N 
N 
N
* 
* 
*sm   (R%R(,"R<8"S S$$S8, T8T A7T4R%	(R9	<S	S!	$S5	8T		T	 T1	4U	c                    \         P                  ! RR7      ;_uu_ 4        \         P                  ! ^ ^R4      p \         P                  ! ^ ^R4      p\         P                  P	                  \        V4      \        V 4      4      p\        P                  ! 4       w  r4VP                  WV4       RRR4       R#   + '       g   i     R# ; i)z~
Test that underflow errors don't crop up in pcolormesh.  Probably
a numpy bug (https://github.com/numpy/numpy/issues/25810).
raise)underr   N)	rk   r  rs   rl   randnr  r)   r   r  r4   r5   r  r/   r$   s        r%   test_pcolormesh_underflow_errorr  S  s}    
 
7	#	#IIaC IIaC IIOOCFCF+,,.
aA 
$	#	#	#s   BB66C	c                  t   \         P                  ! ^4      P                  ^^4      p \         P                  ! . ROV P                  4      pVP
                  P                  RJ g   Q h\         P                  P                  WR7      p\        P                  ! V4       \         P                  ! ^ ^^
4      p \         P                  ! ^ ^^
4      p\         P                  ! W4      w  rE\         P                  ! ^\         P                  ,          V,          4      \         P                  ! ^\         P                  ,          V,          4      ,          p\         P                   ! ^
\"        R7      pRVR&   \         P                  ! WvP                  4      pVP
                  P                  RJ g   Q h\         P                  P                  WgR7      p\        P                  ! WEV4       \         P                  P                  WGR7      p	\         P                  P                  WWR7      p
\        P$                  ! WV4       R# )r  FTr  r  NFTFr   )rk   rs   r   broadcast_tor  flags	writeabler	   rF  r)   r  r   r  r   r   r]  r  boolrX  )r4   xmaskmasked_xr5   r  r  r  r  masked_Zmasked_Xmasked_Ys              r%   test_pcolorargs_with_read_onlyr  `  sl   
		!Q"AOO0!'':E;;  E)))uu{{1{)HNN8
Aq"A
Aq"A;;qDA
q255y1}q255y1} 55A88Bd#DDH??4)D::5(((uu{{1{(HNN1"uu{{1{(Huu{{1{(HJJx8,r'   c                    V P                  4       p\        P                  ! ^ ^
4      p\        P                  ! ^ ^4      p\        P                  P	                  R4       \        P                  P                  ^^	4      pVP                  W4VRR7       VP                  4       pVRR \        P                  ! V4      ^,          ,           pVRR \        P                  ! V4      ^,          ,           pVP                  WgVRR7       R# )r   ra   r  r`  Nr   r   r   rk   rs   rl   rm   r  r  diffr"   r#   r$   r4   r5   r  rI  rJ  s   &&      r%   test_pcolornearestr  w  s    				B
		!RA
		!QAIINN8
		1AMM!6M*				B	
3B"''!*q.	 B	
3B"''!*q.	 BMM"!YM/r'   c                    V P                  4       p\        ^
4       Uu. uF)  p\        P                  P                  VR,          4      NK+  	  upp\        P
                  ! ^ ^4      p\        P                  P                  R4       \        P                  P                  ^^	4      pVP                  W4VRR7       VP                  4       p\        ^	4       Uu. uF0  p\        P                  P                  VR,           R,          4      NK2  	  ppVRR \        P                  ! V4      ^,          ,           pVP                  WgVRR7       R# u upi u upi )	rT  i  ra   r  r`  r   Nr   r   )r   r   r5  fromtimestamprk   rs   rl   rm   r  r  r  r  s   &&      r%   test_pcolornearestunitsr    s    				B<A"IFIq			(	(T	2IFA
		!QAIINN8
		1AMM!6M*				BEJ1X	NX(


)
)1s7d*:
;XB	N	
3B"''!*q.	 BMM"!YM/ 	G 
Os   /E6Ec            	         \         P                  ! 4       w  r\        P                  ! ^ ^	4      p\        P                  ! ^ ^4      p\        P                  P                  R4       \        P                  P                  ^^	4      p\        P                  ! \        RR7      ;_uu_ 4        VP                  W#VRR7       RRR4       R#   + '       g   i     R# ; i)r   ra   zDimensions of Crh  r  r`  N)r)   r   rk   rs   rl   rm   r  r   r   r   r  r/   r$   r4   r5   r  s        r%   test_pcolorflaterrorr    s    llnGC
		!QA
		!QAIINN8
		1A	y(9	:	:
aAv. 
;	:	:	:s   )CC	c            	      p   \         P                  ! 4       w  r\        P                  ! \        P                  ! ^4      \        P                  ! ^4      4      w  r#W#,           p\
        P                  ! \        RR7      ;_uu_ 4        VP                  W#VRR7       RRR4       R#   + '       g   i     R# ; i)r  z.*one smaller than Xrh  r  r`  N)	r)   r   rk   r  rs   r   r   r   r  r  s        r%   test_samesizepcolorflaterrorr    sl    llnGC;;ryy|RYYq\2DA	A	y(?	@	@
aAv. 
A	@	@	@s   B$$B5	snapFc                    V P                  4       p\        P                  ! ^ ^
4      p\        P                  ! ^ ^4      p\        P                  P	                  R4       \        P                  P                  ^^	4      pVP                  WEWbR7       VP                  4       pVRR \        P                  ! V4      ^,          ,           pVRR \        P                  ! V4      ^,          ,           pVP                  WxWbR7       R# )r   ra   )r  Nr   r  )	r"   r#   r  r$   r4   r5   r  rI  rJ  s	   &&&      r%   test_pcolorautor    s     
			B
		!RA
		!QAIINN8
		1AMM!M%				B	
3B"''!*q.	 B	
3B"''!*q.	 BMM"!M'r'   	canonicalc                  Z    \         P                  ! 4       w  rVP                  . RO4       R# r;   Nr  r)   r   r   r.   s     r%   test_canonicalr    s     llnGCGGIr'   zarc_angles.pngc                  P   ^p ^pRp^p\         P                  ! ^^4      w  rE\        VP                  4       EF  w  rgVR,          ^	,          pV^-,
          p	VP	                  \
        P                  ! W VRR7      4       VP	                  \
        P                  ! W WVR7      4       VP                  V\        P                  ! \        P                  ! V	4      4      ,          V^ ,          ,           V^ ,          V\        P                  ! \        P                  ! V4      4      ,          V^ ,          ,           .V\        P                  ! \        P                  ! V	4      4      ,          V^,          ,           V^,          V\        P                  ! \        P                  ! V4      4      ,          V^,          ,           .4       VP                  V) V4       VP                  V) V4       V ^
,          p V^
,          pV^ ,          ^
,          V^,          ^
,          3pV^
,          pEK  	  R# )r/  h  r   r  )theta1theta2N)r   r   )r)   r   r  r  rx  ry  EllipseArcr   rk   r]  deg2radr   r  r  )
r^  r  centrer$  r/   r  r:  r$   r  r  s
             r%   test_arc_anglesr    s    	
A	AFE||Aq!HC388$S1"
X%%f#>?
X\\&QfMN


6 233fQi?

6 233fQi?A 

6 233fQi?

6 233fQi?A	B 	UFE"
UFE" 	
R	R)b.&)b.1- %r'   arc_ellipsec            
         R RrRRr2Rp\         P                  ! \         P                  ! R4      4      pVR,          \         P                  ! V4      ,          pVR,          \         P                  ! V4      ,          p\         P                  ! V4      p\         P
                  ! \         P                  ! V4      \         P                  ! V4      ) .\         P                  ! V4      \         P                  ! V4      ..4      p	\         P                  ! WV.4      w  rgW`,          pWq,          p\        P                  ! 4       p
V
P                  ^RR7      pVP                  WgRR	R	^^R
7       \        P                  ! W3W#V^R^R7      pVP                  V4       V
P                  ^RR7      pVP                  WgRRR^R7       \        P                  ! W3W#V^R^R7      pVP                  V4       R# )gRQ?gp=
ף?r   r   r  r   r  )r   r   yellow)r  r*  r+  r,  rs  F)angler,  r9  rs  equalr   )r  r*  r+  rs  N)rk   r  rs   r]  r   rF  rr   r)   r   r   r9  ry  r  rx  )xcenterycenterr  r  r  r  r4   r5   rthetaRr/   r$   e1e2s                 r%   test_arc_ellipser    s   TW$6EJJryy~&E
RVVE]"AbffUm#AZZF
	"&&.)	(* 	+A 66!VDALALA
**,C	V	,BGGAx8  # 
w(%!QU1
FB LL	W	-BGGAw'!GL	w(%!QU1
FB LLr'   c                      \         P                  ! 4       w  r\        P                  ! R 4      pVP	                  . RO. ROVR7       VP                  . RO. ROVR7       VP                  . RO. ROVR7       R# )r   rB  Nr  r  r/  r;   )r  r  r/  )r  r  r  )r)   r   mmarkersMarkerStyler   r<   rI  )fixr$   ms      r%   test_marker_as_markerstyler  
  sU    llnGCS!AGGIyG+JJy)AJ.KK	9QK/r'   zmarkevery.pngc                     \         P                  ! ^ ^
^d4      p \         P                  ! V 4      \         P                  ! V ^
,          R,           4      ,          p\        P
                  ! 4       w  r#VP                  WRRR7       VP                  WRRRR7       VP                  WR	^
R
R7       VP                  WRRRR7       VP                  4        R# )r   r   r   r  r2   r  Nmark all	markeveryr2   r  mark every 10+mark every 5 starting at 10r  r  rk   r   r   r  r)   r   r   rJ   r  s       r%   test_markeveryr    s    
Ar3A
q	BGGAbD3J''A llnGCGGA#YG'GGA#ZG8GGA#?G;GGA#0MGNIIKr'   zmarkevery_line.pngg{Gzt?c                     \         P                  ! ^ ^
^d4      p \         P                  ! V 4      \         P                  ! V ^
,          R,           4      ,          p\        P
                  ! 4       w  r#VP                  WRRR7       VP                  WRRRR7       VP                  WR	^
R
R7       VP                  WRRRR7       VP                  4        R# )r   r   z-or  r  z-dNr  r  z-sr  z-+r  r  r  r  s       r%   test_markevery_liner     s     	Ar3A
q	BGGAbD3J''A llnGCGGA$iG(GGA$$jG9GGA$"OG<GGA$'1NGOIIKr'   zmarkevery_linear_scales.pngrJ  c                  \   R ^R
. RO^ R.\        ^d^^4      RRRRR.p ^p\        P                  P                  \	        V 4      V,          ^,           V4      pRp\
        P                  ! ^ ^
^V,          ,
          ^4      V,           p\
        P                  ! V4      R,           V,           p\        V 4       Ft  w  rgWa,          pWa,          p	\        P                  ! W(V	3,          4       \        P                  ! R\        V4      ,          4       \        P                  ! WERR^VR	7       Kv  	  R # )Nr   r   r   )\(?r   markevery=%sr   rC  lsmsr     r     rE  r  r   r  r   ?r   )slicerX   gridspecGridSpecr  rk   r   r   r  r)   ra  r3   strr   
casescolsgsdeltar4   r5   r:  caserp  rq  s
             r%   test_markevery_linear_scalesr  2  s    Ar73Q#s&E D				%	%c%jD&81&<d	CBE
ArAI~s+e3A
q	C%AU#yhBCxL!		.3t9,-ssqT: $r'   z"markevery_linear_scales_zoomed.pngc                     R ^R
. RO^ R.\        ^d^^4      RRRRR.p ^p\        P                  P                  \	        V 4      V,          ^,           V4      pRp\
        P                  ! ^ ^
^V,          ,
          ^4      V,           p\
        P                  ! V4      R,           V,           p\        V 4       F  w  rgWa,          pWa,          p	\        P                  ! W(V	3,          4       \        P                  ! R\        V4      ,          4       \        P                  ! WERR^VR	7       \        P                  ! R4       \        P                  ! R4       K  	  R # )Nr   r   r   r  r   r  r   rC  r  r  r  r   r  r  )r  g@)r[  g333333?)r	  rX   r
  r  r  rk   r   r   r  r)   ra  r3   r  r   r   r   r  s
             r%   #test_markevery_linear_scales_zoomedr  K  s   Ar73Q#s&E D				%	%c%jD&81&<d	CBE
ArAI~s+e3A
q	C%AU#yhBCxL!		.3t9,-ssqT: $r'   zmarkevery_log_scales.pngc                     R ^R. RO^ R.\        ^d^^4      RRRRR.p ^p\        P                  P                  \	        V 4      V,          ^,           V4      pRp\
        P                  ! ^ ^
^V,          ,
          ^4      V,           p\
        P                  ! V4      R,           V,           p\        V 4       F  w  rgWa,          pWa,          p	\        P                  ! W(V	3,          4       \        P                  ! R\        V4      ,          4       \        P                  ! R4       \        P                  ! R4       \        P                  ! WERR	^VR
7       K  	  R # )Nr   r   r   r  r   r  r%  r   rC  r  r  r  r   r  r  )r	  rX   r
  r  r  rk   r   r   r  r)   ra  r3   r  r  r  r   r  s
             r%   test_markevery_log_scalesr  f  s   Ar73Q#s&E D				%	%c%jD&81&<d	CBE
ArAI~s+e3A
q	C%AU#yhBCxL!		.3t9,-

5

5ssqT: $r'   zmarkevery_polar.pngc                  &   R ^R. RO^ R.\        ^d^^4      RRRRR.p ^p\        P                  P                  \	        V 4      V,          ^,           V4      p\
        P                  ! ^ R^4      p^\
        P                  ,          V,          p\        V 4       Fv  w  rVWQ,          pWQ,          p\        P                  ! W'V3,          RR7       \        P                  ! R\        V4      ,          4       \        P                  ! WCRR	^VR
7       Kx  	  R # )Nr   r   r   r  Tpolarr  r   rC  r  r  r  r   r  r  )r	  rX   r
  r  r  rk   r   r   r  r)   ra  r3   r  r   )	r  r  r  rF  r  r:  r  rp  rq  s	            r%   test_markevery_polarr    s    Ar73Q#s&E D				%	%c%jD&81&<d	CB
AsC AIMEU#yhBCxL-		.3t9,-331> $r'   z markevery_linear_scales_nans.pngc                     R ^R. RO^ R.\        ^d^^4      RRRRR.p ^p\        P                  P                  \	        V 4      V,          ^,           V4      pRp\
        P                  ! ^ ^
^V,          ,
          ^4      V,           p\
        P                  ! V4      R,           V,           p\
        P                  ;VR&   ;VRR % VR&   \        V 4       Ft  w  rgWa,          pWa,          p	\        P                  ! W(V	3,          4       \        P                  ! R\        V4      ,          4       \        P                  ! WER	R
^VR7       Kv  	  R # )Nr   r   r   r  r   :NrT  N:rI  F   Nr  r   rC  r  r  r  r   r  r  )r	  rX   r
  r  r  rk   r   r   r  r  r)   ra  r3   r  r   r  s
             r%   !test_markevery_linear_scales_nansr    s   Ar73Q#s&E D				%	%c%jD&81&<d	CBE
ArAI~s+e3A
q	C%A"$&&(AcF(QstWqxU#yhBCxL!		.3t9,-ssqT: $r'   marker_edgesc            	         \         P                  ! ^ ^^
4      p \        P                  ! 4       w  rVP	                  V \         P
                  ! V 4      RR^ RR7       VP	                  V R,           \         P
                  ! V 4      RR^RR7       VP	                  V R,           \         P
                  ! V 4      RR^RR7       R# )	r   zy.      >@rF  )r  mewmecr   r   r  N)rk   r   r)   r   r   r   r4   r/   r$   s      r%   test_marker_edgesr&    s    
Aq"AllnGCGGArvvay$4QCG8GGAcE266!9dtG<GGAcE266!9dtG<r'   zbar_tick_label_single.pngc                      \         P                  ! 4       p V P                  ^ ^RRR7       R^ R^/p\         P                  ! 4       w  r \         P                  ! 4       p V P                  RRRRVR7       R# )r   edger  )align
tick_labelr   r  )r)  r*  r  N)r)   rZ  r  r   )r$   r  r/   s      r%   test_bar_tick_label_singler+    sa     
BFF1av#F. CDllnGC	BFF36cF=r'   c                  |    \         P                  ! 4       w  rVP                  ^ ^.\        P                  ^.4       R# r   N)r)   r   r  rk   r  r.   s     r%   test_nan_bar_valuesr.    s)    llnGCFFAq6BFFA;r'   c                  X    \         P                  ! 4       w  rVP                  . . 4       R # r  )r)   r   r  r.   s     r%   test_bar_ticklabel_failr0    s    llnGCFF2rNr'   zbar_tick_label_multiple.pngc                  l    \         P                  ! 4       p V P                  ^R.^^.RR.RR.RR7       R# )	r;         @r   r   r   r  r[   r  r*  r)  N)r)   rZ  r  r  s    r%   test_bar_tick_label_multipler4    s;     
BFFAs8aVC:3*  r'   z/bar_tick_label_multiple_old_label_alignment.pngc                      R \         P                  R&   \        P                  ! 4       p V P	                  ^R.^^.RR.RR.R R7       R# )	r[   zytick.alignmentr2  r   r   r   r  r3  N)rX   r   r)   rZ  r  r  s    r%   *test_bar_tick_label_multiple_old_alignmentr6    sL     .6J)*	BFFAs8aVC:3*  r'   c                 "   V P                  4       p. ROp. ROpV Uu. uF  p\        V4      NK  	  uppV Uu. uF  p\        V4      NK  	  uppVP                  WVRR7       VP                  4       pVP                  W4RR7       R# u upi u upi )r   r[   r)  Nr   g @g333333@r  r[  r  gffffff
@g@)r   r   r  r"   r#   r$   x0y0r4   r5   s   &&     r%   test_bar_decimal_centerr>    s    				B	B	B RR A RR AFF1xF 				BFF2F" 	! s
   BBc                 .   V P                  4       p. ROp. ROpV Uu. uF  p\        V4      NK  	  uppV Uu. uF  p\        V4      NK  	  uppVP                  WV. RORR7       VP                  4       pVP                  W4. RORR7       R# u upi u upi )r   r[   r  r)  Nr9  r:  )r   r   r;   r;   )r   r   r  r;  s   &&     r%   test_barh_decimal_centerrA    s    				B	B	B RR A RR AGGA)G:				BGGB+8G< 	! s
   BBc                     . ROp. ROp. ROpV Uu. uF  p\        V4      NK  	  ppV P                  4       pVP                  W#VRR7       VP                  4       pVP                  W#VRR7       R# u upi )r   r[   r  r)  Nr9  r:  r  g333333?r;   r/  )r   r   r  )r"   r#   r4   r5   w0r:  r^  r$   s   &&      r%   test_bar_decimal_widthrF     sn    AA	B RRA 				BFF1qF)				BFF1rF* 	!   A1c                     . ROp. ROp. ROpV Uu. uF  p\        V4      NK  	  ppV P                  4       pVP                  W#VRR7       VP                  4       pVP                  W#VRR7       R# u upi )r   r[   r@  Nr9  r:  rD  )r   r   r  )r"   r#   r4   r5   h0r:  r  r$   s   &&      r%   test_barh_decimal_heightrJ    sn    AA	B RRA 				BGGA(G+				BGGA8G, 	!rG  c                      \         P                  ! 4       p V P                  ^^.^^.RRRR7      pV F1  pVP                  4       R8X  g   Q hVP	                  4       R8X  d   K1  Q h	  R# )r;   r   r&  rF  r  r   r+  Nr   r   r   r   r;   r   r   r   r)   rZ  r  get_facecolorget_edgecolorr$   rectsrects      r%   test_bar_color_none_alpharU    se    	BFFAq6Aq6FcFJE!!#|333!!#~555 r'   c                      \         P                  ! 4       p V P                  ^^.^^.RRRR7      pV F1  pVP                  4       R8X  g   Q hVP	                  4       R8X  d   K1  Q h	  R# )r;   r   rF  r&  rL  NrN  rM  rO  rR  s      r%   test_bar_edgecolor_none_alpharW  $  se    	BFFAq6Aq6C6FJE!!#~555!!#|333 r'   zbarh_tick_label.pngc                  l    \         P                  ! 4       p V P                  ^R.^^.RR.RR.RR7       R# )	r;   r2  r   r   r   r  r[   )r  r*  r)  N)r)   rZ  r  r  s    r%   test_barh_tick_labelrY  ,  s;     
BGGQHq!fc3ZS#J  r'   c                 >   \         P                  ! 4       w  rVP                  \        P                  ! R^^4      R\        P                  ! ^R7      R7       VP                  \        P                  ! R^^4      R\        P                  ! ^R7      \        P                  ! ^R7      R7       \         P                  ! 4       w  rVP                  \        P                  ! R^^4      ^\        P                  ! ^R7      R7       VP                  \        P                  ! R^^4      ^\        P                  ! ^R7      \        P                  ! ^R7      R7       \         P                  ! 4       w  rVP                  \        P                  ! R^^4      \        P                  ! R^^4      .\        P                  ! ^R.4      \        P                  ! ^R7      R7       TP                  \        P                  ! R^^4      \        P                  ! R^^4      .\        P                  ! ^R.4      R
 Uu. uF  p\        P                  ! VR7      NK  	  upR7       VP                  \        P                  ! R^^4      \        P                  ! ^R7      3.R4       R	# u upi )z>Smoketest that bar can handle width and height in delta units.  r   hoursr  )rM  r  )r  )r  rN  r   Nr.  rT  r  )	r)   r   r  r5  r  r  rk   rF  broken_barhr/   r$   r  s      r%   test_bar_timedeltarb  4  s   llnGCFF8T1a("##!,  .FF8T1a("""+##!,  . llnGCGGHdAq)1%%A.  0GGHdAq)1%%A.##!,  . llnGCGGXtQ*H,=,=dAq,IJHHaX%%A.  0 GGXtQ*H,=,=dAq,IJHHaX9?@AH&&Q/@  B NNX&&tQ2''a02 3 As   0 Jc                    \         P                  ! \         P                  ! R4      \         P                  ! R4      \         P                  ! R4      .4      p \         P                  ! \         P                  ! R4      \         P                  ! R4      \         P                  ! R4      .4      p\        P                  ! 4       w  r#VP                  . R
OW,
          V R7       \        VP                  P                  4       \        P                  4      '       g   Q h\        P                  ! 4       w  r#VP                  . R
OW,
          V R7       \        VP                  P                  4       \        P                  4      '       g   Q hR	# )z+test that tickers are correct for datetimesz
2012-01-01z
2012-02-01z
2012-01-15z
2012-02-07z
2012-02-13z
2012-02-12)r  rQ   )r  rR   N)r   r;   r  )rk   rF  rb  r)   r   r  r   r^   r   r7  AutoDateFormatterr  r\   )startstopr/   r$   s       r%   test_bar_datetime_startrg  N  s    HHbmmL12==3NmmL13 4E88R]]<0"--2M]]<02 3D llnGCFF9TZF6bhh224f6N6NOOOOllnGCGGITZeG4bhh224f6N6NOOOOr'   c                     \         P                  P                  ^^4      pV P                  R^V P	                  ^R7      R7      P
                  p\        P                  ! 4        \        P                  ! WR7       R# )r  z1/1/2000)years)periodsfreq	positionsN)	rk   rl   r~   
date_range
DateOffsetyearr)   r   boxplot)pdr  ri  s   &  r%   test_boxplot_dates_pandasrs  ^  sY    99>>!QDMM*"#"--a-*@  BBF$ 
JJLKK&r'   c                  f   \         P                  P                  ^^4      p \        P                  ! ^	4      w  rV^ ,          P                  V . RO. ROR7       V^,          P                  V . RORR7       V^,          P                  V . ROR7       V^,          P                  V R. ROR7       V^,          P                  V RRR7       V^,          P                  V RR7       V^,          P                  V . ROR7       V^,          P                  V RR7       V^,          P                  V 4       R# )	r  r   )	capwidthswidthsru  r   rv  N)r   r   r   r   )rk   rl   r~   r)   r   rq  )r  r/   r  s      r%   test_boxplot_capwidthsry  g  s    99>>!QD||AHCFNN4??NKFNN4?3N?FNN4?N3FNN43N?FNN43sN3FNN43N'FNN4N0FNN4N$FNN4r'   c                    ^ RI HpHp \        P                  ! 4       pVP                  ^o4      p\        P                  ! R^^4      .p\        V4      ^8  d7   VP                  VR,          \        P                  ! ^xR7      ,           4       KF  \        P                  ! ^4      p\        P                  ! WV4      w  rx\        V4      ^,
          \        V4      ^,
          3p	\        P                  ! V	^ ,          V	^,          ,          4      p
Wn         V! 4        VP                  WxV
4      pVP                  P!                  4        V! 4        R#   T! 4        i ; i)r   )register_matplotlib_converters deregister_matplotlib_converters  )secondsNr   )pandas.plottingr{  r|  r)   r   r   r5  r  appendr  rk   rs   r  r  r  canvasr  )rr  r{  r|  r/   r$   timesy_vals	time_axisy_axisr  z_dataims   &           r%   test_pcolor_regressionr  x  s    
 **,C		BtQ*+E
e*q.U2Y!3!3C!@@AYYq\FE2I[1_c%j1n-EYYuQx%(*+FL+&(]]9f5

(*(*s   3E 	Ec                    V P                  R . R
OR. ROR. ROR. RO/4      pV P                  V. RO,          4      VR&   VRR.,          P                  R.4      P                  4       pVP                  pVR,          pVR,          p\
        P                  ! 4       w  rgVP                  W4^
RR7       VP                  W5R^R7       R	# )rp  monthr<  r;  dater[   rC  oranger?  N)r[  r[  r[  r;   r;   r;   r  )rp  r  r<  )		DataFrameto_datetimegroupbyr  indexr)   r   r  r   )rr  dfmonthlydatesforecastbaseliner/   r$   s   &       r%   test_bar_pandasr    s    		#	)			)	
B
 #; <=BvJ&'"#++VH599;GMMEwHwHllnGCFF5"HF5GGE8G2r'   c                     V P                  R . ROR. RO/. ROR7      p\        P                  ! 4       w  r#VP                  VP                  RVP
                  R7       R# )	r4   r   r  r  r^  N)r   r   r  r   r7  r  r  )r  r)   r   r  r4   r  rr  r  r/   r$   s   &   r%   test_bar_pandas_indexedr    sJ    	sL'<@% 
 
'BllnGCFF244288F$r'   c                     V P                  4       pVP                  4       p^^.p^^.pRR.p\        ^4       F*  pVP                  WG,          WW,          RWg,          R7       K,  	  VP                  WEVR7       R# )r;   r4   r   r  )r   r.  r.  N)r   r   r  )r"   r#   rx   ry   r4   r5   hatchesr:  s   &&      r%   test_bar_hatchesr    su     !GF	
AA	
AACjG1X

14T
<  KKGK$r'   
_nolegend_r  barsc                     \         P                  ! 4       w  rVVP                  WVR 7      pV Uu. uF  qP                  4       NK  	  p	pW98X  g   Q hVP                  4       V8X  g   Q hR# u upi )r  N)r)   r   r  	get_label)
r4   r  r2   expected_labelscontainer_labelr  r$   bar_containerr  
bar_labelss
   &&&&&     r%   test_bar_labelsr    sc     LLNEAFF15F1M-:;]c--/]J;(((""$777 <s   A*c                     \         P                  ! 4       w  r\        P                  ! \        4      ;_uu_ 4        VP                  R R.^^.. ROR7       RRR4       \         P                  ! 4       w  r\        P                  ! \        4      ;_uu_ 4        VP                  R R.^^.R.R7       RRR4       R#   + '       g   i     Lm; i  + '       g   i     R# ; i)r4   r5   r  r  N)r  r  r  )r)   r   r   r   r  r  r  s     r%   test_bar_labels_lengthr    s    LLNEA	z	"	"
SzAq69 
#LLNEA	z	"	"
SzAq6#/ 
#	" 
#	" 
#	"	"s   B:C:C
	C	c                    V P                  ^^.RR7      V P                  ^^.RR7      3 Fp  p\        P                  ! W4       \        P                  ! VP                  V4       \        P                  ! V4       \        P                  ! VP                  4       Kr  	  V P	                  R. RO/4      p\        P                  ! V4       \        P                  ! W"4       R# )r;   float64r  Float64rq  Nr  )Seriesr)   r   r  r  )rr  r4   r  s   &  r%   test_pandas_minimal_plotr    s    iiAii0iiAii02!2 
ui(	)BHHRLHHRr'   zhist_log.pngc                      \         P                  ! ^ ^^4      ^,          p \         P                  ! ^V ,
          ^V ,           .4      p\        P                  ! 4       w  r#VP                  VRRR7       R# )r   FT)r9  r%  N)rk   r   concatenater)   r   hist)data0r  r/   r$   s       r%   test_hist_logr    sS    KK1c"A%E>>1u9a%i01DllnGCGGDu$G'r'   c           	         V P                  ^^4      pVP                  ^^4      p\        . RO4       F  w  rEV^ V3,          P                  R4       V^ V3,          P                  ^^VR7       V^V3,          P                  ^^VR7       V^V3,          P                  R4       VRV3,           F  pVP                  ^^RVR7       K  	  K  	  R# )r/  r%  histtypert  T)r%  r  N)r  step
stepfilled)r   r  r  r  )r"   r#   r   r   r:  r  r$   s   &&     r%   test_hist_log_2r    s      A&Hq!$G !>?A!!%(AAq84AAq84A!!%(!Q$--BGGAqdXG6   @r'   c                     \         P                  ! ^4      w  rV^ ,          P                  ^ .^ ^..^RR7       V^ ,          P                  R4       V^,          P                  . RO^RR7       V^,          P                  R4       V P                  P                  4        V^ ,          P                  4       V^,          P                  4       8X  g   Q hR# )r/  
barstackedr  r%  Nr   r   r;   )r)   r   r  r  r  r  r   r/   r  s     r%   test_hist_log_barstackedr  	  s    ||AHCFKK!q!fq<K8FeFKK	1|K4FeJJOOq6??A 1111r'   zhist_bar_empty.pngc                  V    \         P                  ! 4       p V P                  . R R7       R# )r  r  Nr)   rZ  r  r  s    r%   test_hist_bar_emptyr  	  s     
BGGBGr'   c                     \         P                  P                  R 4       \         P                  ! \         P                  P	                  RRRR7      ^ ^4      P                  \         P                  4      p \        P                  ! V ^RR7      pV^,          p\        ^\        V4      4       F[  pW#^,
          ,          P                  4       pW#,          P                  4       pV^,          ^ ,          V^ ,          ^ ,          8:  d   K[  Q h	  R# )ra   r   r   r  size)r  r  N)rk   rl   rm   cliprn   r   float16r)   r  r   r  get_corners)r!  r  bcrF  rleftrrights         r%   test_hist_float16r  	  s    IINN8WW
		c-q!55;VBJJ5G as+A	
1B1c"gQ3##%""$ Qx{fQil*** r'   zhist_step_empty.pngc                  V    \         P                  ! 4       p V P                  . R R7       R# )r  r  Nr  r  s    r%   test_hist_step_emptyr  "	  s     
BGGBG r'   zhist_step_filled.pngc                  p   \         P                  P                  ^ 4       \         P                  P                  R^4      p ^
pRR/RR/RR// .^,          pR.^,          R.^,          ,           p\        P
                  ! ^^R7      w  rE\        W#VP                  4       FE  w  rgpVP                  ! W3R	VR
R/VB  VP                  V RV 24       VP                  RR7       KG  	  VR,          P                  p	\        ;QJ d    R V	 4       F  '       d   K   RM	  RM! R V	 4       4      '       g   Q hR# )r   r  r9  TFNr  r  nrowsncolsr  stackedr,  rQ   c              3   b   "   T F%  qP                  4       VP                  4       8H  x  K'  	  R # 5ir  )rP  rQ  ).0r   s   & r%   	<genexpr>(test_hist_step_filled.<locals>.<genexpr>9	  s!     Gw! AOO$55ws   -/rL  r  )rk   rl   rm   r  r)   r   r  r  r  r7   r  r3  all)
r4   n_binsr  typesr/   r  kg_typer$   r3  s
             r%   test_hist_step_filledr  )	  s   IINN1
		a AFtnvuo~rB1DFHQJ~a''E||!1-HCVCHH52
>E>4>2>
t1UG_%
3 6
 $iG3GwG333GwGGGGGr'   zhist_density.pngc                      \         P                  P                  R 4       \         P                  P                  R4      p \        P
                  ! 4       w  rVP                  V RR7       R# )ra   r  TdensityN)rk   rl   rm   r  r)   r   r  r  r/   r$   s      r%   test_hist_densityr  <	  sC    IINN899$$T*DllnGCGGD$Gr'   c                      \         P                  P                  R 4      p V P                  ^d4      p. ROp\        P
                  ! WRR7      w  p p\         P                  ! WRR7      w  rT\        W54       R# )i  T)r  r  N)r  r   r  r   r;   r  )rk   rl   RandomStater  r)   r  	histogramr   )rngr  r  mpl_heightsr  
np_heightss         r%   test_hist_unequal_bins_densityr  D	  s[     ))


&C		#A"Dt<KALLt<MJK,r'   c                  @   \         P                   ! R ^^4      \         P                   ! R ^^4      .\         P                   ! R ^^4      \         P                   ! R ^^4      ..p \        P                  ! 4       w  rVP                  V RR7       VP                  V RR7       R# )  T)r  FN)r5  r)   r   r  r  s      r%   test_hist_datetime_datasetsr  O	  s    tQ*H,=,=dAq,IJtQ*H,=,=dAq,IJLDllnGCGGD$GGGD%G r'   bins_preprocessc                     V # r  r   r  s   &r%   r  r  Y	  s    tr'   c                 0    \         P                  ! V R 4      # )rb  )rk   r?  r  s   &r%   r  r  Z	  s    rzz$'Er'   c           	         \         P                   ! R ^^4      \         P                   ! R ^^4      \         P                   ! R ^^4      \         P                   ! R ^^4      .\         P                   ! R ^^4      \         P                   ! R ^^4      \         P                   ! R ^^4      \         P                   ! R ^^4      ..p\         P                   ! R ^^4      \         P                   ! R ^^4      \         P                   ! R ^^4      .p\        P                  ! 4       w  r4VP                  W! V4      RR7      w  rVp\        P
                  P                  V\        P                  P                  V4      4       VP                  W! V4      RR7      w  rVp\        P
                  P                  V\        P                  P                  V4      4       R# )i  T)r  r  FN)
r5  r)   r   r  rk   r   r   r   r  r8  )r  r  
date_edgesr/   r$   r  r  s   &      r%    test_hist_datetime_datasets_binsr  W	  sq    tQ*H,=,=dAr,JtQ*H,=,=dAq,IKtQ+X->->tQ-JtQ+X->->tQ-JLMD
 ##D!Q/1B1B4A1N##D!Q/1J llnGCOJ$?NJAQJJtSYY%7%7
%CDOJ$?OJAQJJtSYY%7%7
%CDr'   zdata, expected_number_of_histsc                     \         P                  ! V 4      w  p p\        P                  ! V4      pVP                  ^8X  d   ^V8X  g   Q hR# VP
                  ^ ,          V8X  g   Q hR# r;   N)r)   r  rk   r?  ndimr  )r  expected_number_of_histshistsr  s   &&  r%   test_hist_with_empty_inputr  n	  sV    
 ((4.KE1aJJuEzzQ,,,,{{1~!9999r'   zhisttype, zorderr  r  r  c                     \         P                  ! 4       P                  4       pVP                  ^^.V R7       VP                  '       g   Q hVP                   F  pVP                  4       V8X  d   K  Q h	  R# )r;   r  N)r)   r   r   r  r3  
get_zorder)r  rs  r$   r  s   &&  r%   test_hist_zorderr  |	  s_    
 
	!	!	#BGGQFXG&::::!V+++ r'   c            
          \         P                  ! 4       w  r\        P                  ! \        R R7      ;_uu_ 4        VP                  . RO. RORRRR7       RRR4       R#   + '       g   i     R# ; i)zbaseline=None and fill=Truerh  r   NT)r*  r  r9  )r  r  r;   r   r/  )r;   r/  r  r  r  r  )r)   r   r   r  rH  stairsr.   s     r%   "test_stairs_no_baseline_fill_warnsr   	  sQ    llnGC	k)F	G	G
		 	 	
 
H	G	G	Gs   A!!A2	c                 "
   ^ RI Hp \        P                  ! . RO4      p\        P                  ! . RO4      pV P	                  ^^4      P                  4       pV^ ,          P                  W4RR7       V^,          P                  W4RRR7       V^,          P                  W44       V^,          P                  W4RR7       V^,          P                  W44       V^,          P                  4        V^,          P                  W4RR7       V^,          P                  4        RRRR	/pVP	                  ^^4      P                  4       pV^ ,          P                  ! V\        P                  ! W3R,          4      3R
R/VB  V^,          P                  ! \        P                  ! V^ ,          V4      V3R
R/VB  V^,          P                  ! V\        P                  ! W3R,          4      3R
R/VB  V^,          P                  VP                  ! V^ ,          V^ ,          .^ V^ ,          .3/ VB 4       V^,          P                  VP                  ! VR,          VR,          .^ VR,          .3/ VB 4       V^,          P                  ^ R4       V^,          P                  ! \        P                  ! V^ ,          V4      V3R
R/VB  V^,          P                  VP                  ! ^ V^ ,          .V^ ,          V^ ,          .3/ VB 4       V^,          P                  VP                  ! ^ VR,          .VR,          VR,          .3/ VB 4       V^,          P                  ^ R4       V^,          P                  ! V\        P                  ! W3R,          4      3R
R/VB  V^,          P                  VP                  ! V^ ,          V^ ,          .^ V^ ,          .3/ VB 4       V^,          P                  VP                  ! VR,          VR,          .^ VR,          .3/ VB 4       V^,          P                  4        V^,          P                  ! \        P                  ! V^ ,          V4      V3R
R/VB  V^,          P                  VP                  ! ^ V^ ,          .V^ ,          V^ ,          .3/ VB 4       V^,          P                  VP                  ! ^ VR,          .VR,          VR,          .3/ VB 4       V^,          P                  4        R# )r   Nr  rS   )r  rU   rT   solid_joinstylemitersolid_capstylebutt	drawstyle
steps-post)r     r   %   0   r      r  )	r   r   r  r  r        @      @       @      "@r   )matplotlib.lineslinesrk   rF  r   flattenr  semilogyr  r   r  add_liner   r  r  )r"   r#   mlinesr5   r4   	test_axesr   ref_axess   &&      r%   test_stairsr  	  s   %
01A
56A!!!Q'//1IaLt,aLtFaLaL,7aLaLaL,7aL )96BE1%--/HQKQ		!rU+M|MuMQKRYYqtQ'LlLeLQKQ		!rU+M|MuMQK!ad|a1YH%HIQK"qu~1R5zKUKLQKD!QKRYYqtQ'LlLeLQK1Q4y1Q41,H%HIQK1R5zAbE1R5>KUKLQKD!QKQ		!rU+M|MuMQK!ad|a1YH%HIQK"qu~1R5zKUKLQKQKRYYqtQ'LlLeLQK1Q4y1Q41,H%HIQK1R5zAbE1R5>KUKLQKr'   c           	         . R
O. ROr2RpV P                  ^^4      P                  4       pV^ ,          P                  W#RR7       V^,          P                  W#RRR7       V^,          P                  W#VRR7       V^,          P                  W#VRRR7       VP                  ^^4      P                  4       pV^ ,          P                  V\        P
                  ! W"R,          4      R^ R7       V^ ,          P                  ^ R	4       V^,          P                  V\        P
                  ! W"R,          4      R^ R7       V^,          P                  ^ R	4       V^,          P                  V\        P
                  ! W"R,          4      \        P                  ! \        V4      ^,           4      V,          R^ R7       V^,          P                  VR	4       V^,          P                  V\        P
                  ! W"R,          4      \        P                  ! \        V4      ^,           4      V,          R^ R7       V^,          P                  VR	4       R	# )r;   Tr9  rS   )rU   r9  )r  r9  )r  rU   r9  post)r  r@  N)r;   r/  r  r  r/  r   r;   r/  r  r  r  r  r   )r   r  r  r   rk   r  r  r%  r  r   r  )r"   r#   r  r  bsr  r  s   &&     r%   test_stairs_fillr  	  s   1t	B!!!Q'//1IaLd+aL\EaL"48aL",!  # 1%--/HQKT299Q"#6VJQKD!QKdBIIa2$7fKQKD!QKT299Q"#6WWSVAX.r11  FQKT"QKdBIIa2$7 ggc!fQh/2A  GQKT"r'   c                    RpV P                  4       pVP                  . RO4      pVP                  V4       VP                  . RO4       VP                  \        P
                  ! ^4      ^,           R7       VP                  . RO\        P
                  ! ^4      ^,          4       VP                  . RO4       VP                  R\        P
                  ! ^4      4       \        P                  ! VP                  4       ^ ,          \        P
                  ! ^^4      4      '       g   Q h\        P                  ! VP                  4       ^,          \        P
                  ! ^4      4      '       g   Q hVP                  RR7       VP                  4       P                  R8X  g   Q hVP                  4       pVP                  . RORR7      pVP                  V4       R# )	r  edgesNr  )r  r  r  r  )r;   r/  r;   r  )	r   r  r  set_datark   rs   allcloseget_datar  )r"   r#   r   test_axr  ref_axs   &&    r%   test_stairs_updater(  	  s?    D""$Gy!ATJJyJJRYYq\!^J$JJy"))A,q.)JJyJJtRYYq\";;qzz|A		!Q8888;;qzz|A		!5555JJJ::<  B&&&   "Fi"-A
OODr'   c                 :   \         P                  ! . R	O4      p\         P                  ! . R
O4      pV P                  4       pVP                  W2RR7       RRRR/pVP                  4       pVP                  ! V\         P
                  ! W3R,          4      3RR/VB  R# )r   Nr  r  r  r  r  r  r  )r   r/  r  r  rT  )g|?5^?gV-?g+?rV  r   )rk   rF  r   r  r   r  )r"   r#   r4   r5   r  r   r  s   &&     r%   test_stairs_baseline_Noner*  	  s    
!"A
,-A$$&IQD))96BE""$HMM!RYYqB%(JLJEJr'   c                      \         P                  ! 4       P                  4       p V P                  . ^*.4       V P	                  4       R8X  g   Q hV P                  4       R8X  g   Q hR# )*   N)'   -   rl  )r)   r   r   r  r   r   r  s    r%   test_stairs_emptyr/   
  sN    		!	!	#BIIb2$;;=H$$$;;=M)))r'   c                      \         P                  ! \        R R7      ;_uu_ 4        \        P                  ! ^^.^ \
        P                  ^.4       RRR4       R#   + '       g   i     R# ; i)Nan values in "edges"rh  N)r   r   r  r)   r  rk   r  r   r'   r%   test_stairs_invalid_nanr2  
  s@    	z)@	A	A

Aq6Arvvq>* 
B	A	A	Ar  c                      \         P                  ! \        R R7      ;_uu_ 4        \        P                  ! ^^.^ ^.4       RRR4       R#   + '       g   i     R# ; i)Size mismatchrh  N)r   r   r  r)   r  r   r'   r%   test_stairs_invalid_mismatchr5  
  s8    	z	9	9

Aq6Aq6" 
:	9	9	9s   AA	c                     \         P                  ! ^^.. RO4      p \        P                  ! \        RR7      ;_uu_ 4        V P                  ^\        P                  ^.R7       RRR4       R#   + '       g   i     R# ; i)r;   r1  rh  r!  NrD  )r)   r  r   r   r  r#  rk   r  r  s    r%   test_stairs_invalid_updater8  
  sP    

Aq69%A	z)@	A	A	

!RVVQ
( 
B	A	A	As    $A..A?	c                  
   \         P                  ! ^^.. RO4      p \        P                  ! \        RR7      ;_uu_ 4        V P                  \        P                  ! ^4      R7       RRR4       R#   + '       g   i     R# ; i)r;   r4  rh  r!  NrD  )r)   r  r   r   r  r#  rk   rs   r7  s    r%   test_stairs_invalid_update2r:  
  sL    

Aq69%A	z	9	9	

1
& 
:	9	9	9s    'A11B	ztest_stairs_options.pngc                      \         P                  ! . RO4      \         P                  ! . RO4      P                  \        4      rVP	                  4       p\         P
                  V^&   \        P                  ! 4       w  r4VP                  V^,          V RRRR7       VP                  W^,          ^,
          RRRRR7       VP                  W R	R
^RR7       VP                  V^,          V ^,          ^,
          R
^RRRR7       VP                  VRRR 1,          ^,          ^,           V ^,
          RR
^RRR7       VP                  VRRR 1,          ^,          ^,           V ^RR
^RR7       VP                  VRRR 1,          ^,          ^,           V ^,           \         P                  ! ^^\        V4      4      RR
RRR7       VP                  VRR  RRR 1,          ^,          ^,           V RR  R,           RR
^^RRR7       VP                  ^ R7       R# )!r;   r   TA)r   r9  r2   r1  rS   B)r   r9  rU   r2   r  rD  r  )r   r   r@  r2   r   rW  )r   r@  r  rU   r2   NE)r   r   r@  r  r2   r  F)r  r   r   r@  r2   r   G)r  r   r   r2   r9  r*  //H)r   r   r@  r  r.  r2   rA   r;   r/  r  r  r  r  r   )rk   rF  r   r  copyr  r)   r   r  r   r  rJ   )r4   r5   ynr/   r$   s        r%   test_stairs_optionsrF  
  s   88O$bhh|&<&C&CE&Jq	
BFFBqEllnGCIIac1G$cI:IIa1Qe$&c  3IIb8#I>IIbdAaCEdq3&c  3IIa"gailAaCu!d  IIa"gailA!3  8IIb2hqjmQqS2;;r2s1v+Ft3T  ;IIafTrTl1nR3B7tS  2II!Ir'   ztest_stairs_datetime.pngc            	      ,   \         P                  ! R R7      w  rVP                  \        P                  ! ^$4      \        P                  ! \        P
                  ! R4      \        P
                  ! R4      4      4       \         P                  ! ^R7       R# )T)constrained_layoutz
2001-12-27z
2002-02-02)rotationN)r)   r   r  rk   rs   rb  xticks)fr$   s     r%   test_stairs_datetimerL  5
  sY    LLD1EAIIbiimiil3l356 JJr'   c                     V P                  4       pVP                  . RORRR7       VP                  4       pVP                  . RORR7      pVP                  R4       R# )r;   r1  T)r   r9  r  Nr  )r   r  	set_color)r"   r#   r&  r'  sts   &&   r%   test_stairs_edge_handlingrP  >
  sR     ""$GNN9EN5   "F	yt	,BLLr'   c                      \         P                  ! R^^4      p \         P                  ! R^^x4      p\         P                  ! V 4      \         P                  ! VR\         P                  3,          4      ,           pWV3# )r  rt  r  )rk   r   r]  r   r  )r4   r5   r  s      r%   contour_datrR  J
  sW    
B3A
B3A
q	BFF1Q

]+,,A7Nr'   contour_hatchingc                      \        4       w  rp\        P                  ! 4       w  r4VP                  WV^. RO\        P
                  R,          RRR7       R# )r`  r  r   r   )r  r   extendr  N)r,  \rA  rC  )rR  r)   r   r  r   ru  r  s        r%   test_contour_hatchingrW  Q
  sE    mGA!llnGCKKa$:]]6*S  *r'   contour_colorbargHzG?c                     \        4       w  rp\        P                  ! 4       w  r4VP                  WV\        P
                  ! RRR4      \        P                  R,          RRRR7      pVP                  WV\        P
                  ! RRR4      R.R	^R
7      pVP                  WV\        P
                  ! RRR4      R.^R7      pVP                  WTR7      pVP                  V4       VP                  VRR7       R# )?g7A`?r   RdBur  r   )levelsr   r  r  rU  r  r5   r   )r\  r  
linestylesr  r>   )r\  r  r  r  F)eraseNgg333333gg^I+)rR  r)   r   r  rk   rs   r   ru  r	  rK   	add_lines)	r4   r5   r  r/   r$   cscs1cs2rN   s	            r%   test_contour_colorbarrc  Z
  s     mGA!llnGC	Q1RYYtUC%@--/"	 
 
$B
 **Q1RYYtVS%A E ' !  #C **Q1RYYsC%= E !  #C <<<"DNN3NN3eN$r'   z
hist2d.pngc                     R \         P                  R&   \        P                  P	                  ^ 4       \        P                  P                  ^d4      ^,          ^,           p \        P                  P                  ^d4      ^,
          p\         P                  ! 4       w  r#VP                  W^
RR7       RV RV/p\         P                  ! 4       w  r#VP                  RR^
VRR7       R# )Fr  Tr  
rasterizedr4   r5   )r  r  rf  N)r)   r   rk   rl   rm   r  r   hist2d)r4   r5   r/   r$   r  s        r%   test_hist2drh  q
  s     ',CLL"#IINN1
		Qq A
		QAllnGCIIaI- CDllnGCIIc3RdtI<r'   zhist2d_transpose.pngc                  H   R \         P                  R&   \        P                  P	                  ^ 4       \        P
                  ! ^.^d,          4      p \        P                  P                  ^d4      ^,
          p\         P                  ! 4       w  r#VP                  W^
RR7       R# )Fr  Tre  N)	r)   r   rk   rl   rm   rF  r  r   rg  r  s       r%   test_hist2d_transposerj  
  so     ',CLL"#IINN1 	!SA
		QAllnGCIIaI-r'   c                      \         P                  P                  R4      w  r\        P                  ! 4       P	                  4       pV\        3 F  pVP                  WRR7       K  	  R# )r/  Tr  Nr  )rk   rl   r)   r   r   rg  )r4   r5   r$   objs       r%   test_hist2d_densityrm  
  sJ    99H%DA				 BCy

1
& r'   c            "         a  ] tR tRt o ]! R.RRR7      R 4       t]! R.RR7      R	 4       t]! R
.RR.R7      R 4       t]! R.R7      R 4       t	R t
]P                  P                  RRR/R]P                  ! 4       /R^ /R^ /.4      R 4       tR t]P&                  P)                  R4      R 4       tR tR t]! R.R7      R 4       t]! R.R7      R 4       tR t]! R.R7      R  4       t]! R.R7      R! 4       tR1R#.R$3R2R3R4. R5OR"3R6R&.R$3R&.^,          R$3R'.^,          R"3R'.^,          R"3R'.^,          R(3. R7OR"3. R8OR"3. R9OR$3. R:O.R"3. R:O.^,          R(3. R:O.^,          R"3. R:O.^,          R(3. R;O.R"3. R;O.^,          R(3. R;O.^,          R"3. R;O.^,          R(3. R;O.^,          . R:O.,           R"3. R;OR%R*.R(3. R;OR%R*R).R"3. R;OR%R*R). R<O.R(3. R;OR%R&.R$3. R;OR%R*R&.R$3. R;OR%R*R)R&.R$3.t]P                  P                  R+]4      R, 4       t]P&                  P)                  R4      ]! R.R7      R- 4       4       tR. t R/ t!R0t"V t#R"# )=TestScatteri
  r<   r   Tr  c                   R \         P                  ! . R	O4      R\         P                  ! . R
O4      R. ROR. ROR. RO/p\        P                  ! 4       w  r#VP	                  VR ,          R,
          VR,          R,
          VR,          VR,          R7       VP	                  VR ,          R,           VR,          R,           VR,          VR,          R7       VP	                  R RRRVR7       R# )r4   r5   r>   r  c2r   r>   r  )r>   r  r  Nr  r  r/  r  r/  r  r/  r  rF  r5   r  limerE  r         )0.50.60.7z0.8)rk   rF  r)   r   r<   )ro  r  r/   r$   s   &   r%   test_scatter_plotTestScatter.test_scatter_plot
  s    RXXl+S"((<2H,c3C24 ,,.


49r>49r>T#Y$s)
L


49r>49r>T$Z49
M


3sc
5r'   zscatter_marker.pngr  c                   \         P                  ! ^R7      w  pw  r#pVP                  . RO. R	O. R
O. RO. RORR7       VP                  . RO. R	O. R
O. RO. RO\        P                  ! RRR7      R7       ^^reWV,          \
        P                  ,          p\
        P                  ! ^ ^\
        P                  ,          ^4      p\
        P                  ! \
        P                  ! V4      V,          V,          \
        P                  ! V4      V,          V,          .4      p	VP                  . RO. R	O. R
O. RO. ROV	R7       R# )r  r  r  )r>   r  r]  r   r   r@   	fillstyleNrs  rt  )r;   r   r   r5   r  rv  )<   rI  (   r  )r6  rF  gr  )r)   r   r<   r  r  rk   r   r   column_stackr]  r   )
ro  r/   re  r  r  rxryarear  r  s
   &         r%   test_scatter_markerTestScatter.test_scatter_marker
  s    "||!4_cL,3&3	 	 	 
 	L,3&3#//uE	 	 	G ABwAq255y"-!3d!:!#!3d!:!< =L,3&3 	 	 	"r'   
scatter_2Dr   )r  r   c                    \         P                  ! ^4      p\         P                  ! ^4      p\         P                  ! W4      w  rW,           p\        P                  ! 4       w  rEVP                  WV^RR7       R# )r  face)r>   r  r]  N)rk   rs   r  r)   r   r<   )ro  r4   r5   r  r/   r$   s   &     r%   test_scatter_2DTestScatter.test_scatter_2D
  sT    IIaLIIaL{{1 E,,.


11
7r'   r   c                   \         P                  ! . RO4      p\         P                  ! . RO4      p\         P                  ! V Uu. uF  p\        V4      NK  	  up4      p\         P                  ! V Uu. uF  p\        V4      NK  	  up4      p. ROp. ROp	VP                  4       p
V
P	                  WgWR7       VP                  4       p
V
P	                  W4WR7       R# u upi u upi )r   rr  Nr9  r:  ru  rw  )rk   rF  r   r   r<   )ro  r"   r#   r<  r=  r:  r4   r5   r>   r  r$   s   &&&        r%   test_scatter_decimal TestScatter.test_scatter_decimal
  s    XX*+XX*+HH"-"Qgaj"-.HH"-"Qgaj"-.# 


11
"


2Q
$ .-s   C4C$c                |   \         P                  ! \        4      ;_uu_ 4        \        P                  ! ^^.^^.RR.R7       RRR4       \         P                  ! \        4      ;_uu_ 4        \        P                  ! . RO. RO. ROR7       RRR4       R#   + '       g   i     L\; i  + '       g   i     R# ; i)r;   r   r   rG  Nr  )r   r   r  r)   r<   ro  s   &r%   test_scatter_colorTestScatter.test_scatter_color
  sl    ]]:&&KKAAsCj9 ']]:&&KK	9I> '& '&&&&s    B- B*B'	*B;	r  r   r  r  r  r  c                   R p\         P                  ! \        VR7      ;_uu_ 4        \        P                  ! . . 3/ VB  RRR4       \         P                  ! \        VR7      ;_uu_ 4        \        P                  ! ^^.^^.3R. /VB  RRR4       \        P                  ! . . 3R. /VB  \        P                  ! ^^.^^.3R^^./VB  R#   + '       g   i     L; i  + '       g   i     L_; i)z"No data for colormapping provided rh  Nr>   )r   r  Warningr)   r<   )ro  r  
warn_matchs   && r%   test_scatter_color_warning&TestScatter.test_scatter_color_warning
  s     :
 \\'44KKB)&) 5\\'44KKAA7"77 5 	B+b+F+QFQF7q!f77 5444s   C,C"C	"C2	c           
     8   \         P                  ! . RO. RO. RO\        P                  ! RRR7      . R	OR7      pVP	                  4       P
                  R
8X  g   Q h\        VP                  4       . RO. RO. RO.4       \        VP                  4       . R	O4       R# )r   r   r&  r  r>   r   r  NrD  r;   r  r/  0.1z0.3rz  r[  r)  ?)r   r  r   r   r   r;   r   r   r   r;   r   r   r   r;   )	r)   r<   r  r  get_facecolorsr  r   get_edgecolorsget_linewidthsro  colls   & r%   test_scatter_unfilled!TestScatter.test_scatter_unfilled
  s    {{9i3H"*"6"6sf"M&57 ""$**f4444..03E3E3E3G 	H 	4..0/Br'   r  c                   \         P                  ! . RO. RO. ROR. ROR7      p\        VP                  4       VP	                  4       4       \        VP	                  4       . RO. R	O. R
O.4       \        VP                  4       . RO4       R# )r   r4   r  NrD  r  r  r  r  r  r  )r)   r<   r   r  r  r  r  s   & r%   test_scatter_unfillable#TestScatter.test_scatter_unfillable
  ss    {{9i3H"%&57 	4..0$2E2E2GH4..03E3E3E3G 	H 	4..0/Br'   c                j   \         P                  ! ^4      p\        P                  ! \        RR7      ;_uu_ 4        \
        P                  ! WVR,          4       RRR4       \        P                  ! \        RR7      ;_uu_ 4        \
        P                  ! VR,          VR,          V4       RRR4       \        P                  ! \        RR7      ;_uu_ 4        \
        P                  ! WR4       RRR4       R#   + '       g   i     L; i  + '       g   i     Li; i  + '       g   i     R# ; i)r  zsame size as x and yrh  r;   NNNzfloat array-liker  )rk   rs   r   r   r  r)   r<   )ro  r4   s   & r%   test_scatter_size_arg_size&TestScatter.test_scatter_size_arg_size  s    IIaL]]:-CDDKKae$ E]]:-CDDKK"qua( E]]:-?@@KKe$ A@	 EDDD@@@s#   C;'DD!;D	D	!D2	c                   \         P                  ! . RO^\        P                  \        P                  .RR7      p\        P
                  ! VP                  4       R4      '       g   Q h\         P                  ! . RO^\        P                  \        P                  ^.RR7      p\        P
                  ! VP                  4       R4      '       g   Q hR# )r;   r+  Nr  r  r  r  )r)   r<   rk   r  r  
same_colorrQ  r  s   & r%   test_scatter_edgecolor_RGB&TestScatter.test_scatter_edgecolor_RGB  s    {{9q"&&"&&&9&/1!!$"4"4"6	BBBB{{<!RVVRVVQ)?&24!!$"4"4"6EEEEr'   c           	     
   VP                  4       p\        P                  R ,          P                  ^4      pVP	                  R^4       VP                  \        ^4      \        ^4      ^\        P                  ^\        P                  .. ROVRR7       VP                  4       p\        P                  R ,          P                  ^4      pVP                  ^ ^.^ ^.^^.^^.VR7       VP                  ^^.^^.^^.RR7       R# )rr  r6  Tr>   r  r   plotnonfiniter>   r  r   )r  r   Nr  	r   r   ru  rv  set_badr<   r   rk   r  ro  r"   r#   r$   r   s   &&&  r%   test_scatter_invalid_color&TestScatter.test_scatter_invalid_color  s     }}Y'11"5S! 	

58U1XBFF+|D 	 	2 }}Y'11"5


Aq6Aq6aV1vD
A


Aq6Aq6aV3
7r'   c           	        VP                  4       p\        P                  R ,          P                  ^4      pVP	                  R^4       VP                  \        ^4      \        ^4      ^\        P                  ^\        P                  .. ROVRR7       VP                  4       pVP                  ^ ^.^ ^.^^.^^.VR7       R# )rr  r6  Fr  r  Nr  r  r  s   &&&  r%   test_scatter_no_invalid_color)TestScatter.test_scatter_no_invalid_color&  s      }}Y'11"5S!


58U1XBFF+|E 	 	3 


Aq6Aq6aV1vD
Ar'   c                   . ROp\         P                  ! 4       p\        P                  ! \        RR7      ;_uu_ 4        VP                  WV\        P                  ! R^
4      ^ ^R7       RRR4       R#   + '       g   i     R# ; i)r  r  rh  )r>   r  r  r  Nr  r  )r)   r_  r   r   r  r<   r  r  )ro  r4   r$   s   &  r%   test_scatter_norm_vminvmax&TestScatter.test_scatter_norm_vminvmax2  sq    XXZ]]:"DE E JJqqw'8'8b'AA  'E E E Es   ,A44B	c                    VP                  4       pVP                  ^^^R7       VP                  4       pVP                  ^.^.^.R7       R# )r;   r>  N)r   r<   )ro  r"   r#   r$   s   &&& r%   test_scatter_single_point%TestScatter.test_scatter_single_point<  sH     


1a1



A3s
#r'   c                >   \         P                  ! ^
4      pVP                  4       pVP                  W3P	                  ^^4      VP	                  ^^4      R7       VP                  4       pVP                  VP	                  ^^4      W3P	                  ^^4      R7       R# )rT  r>  N)rk   rs   r   r<   r   )ro  r"   r#   r4   r$   s   &&&  r%   test_scatter_different_shapes)TestScatter.test_scatter_different_shapesC  ss    IIbM 


1ii1o1a
9


199Q?A1a
9r'   Nrgby
conversionr1  jauner   r  C5z0.0zc_case, re_keyc           
        R  p^pRRRR/pVe#   \         P                  ! \        WR,          R7      MQ\        V\        4      '       d(   \        V4      ^8X  d   \         P                  ! RR7      M\        P                  ! 4       pV;_uu_ 4        \        P                  P                  P                  VR/ VVR	7       RRR4       R#   + '       g   i     R# ; i)
c                      R # r   r   r   r'   r%   get_next_color2TestScatter.test_scatter_c.<locals>.get_next_color{  s    r'   r  z!^'c' argument has [0-9]+ elementsr  z^'c' argument must be a colorNrh  (argument looks like a single numeric RGBr*  r>   r]  r  xsizeget_next_color_func)r   r   r  r   r  r  r  
contextlibnullcontextr   r_  r   _parse_scatter_color_args)ro  c_casere_keyr  r  REGEXPassert_contexts   &&&    r%   test_scatter_cTestScatter.test_scatter_cy  s    	  89 ! MM*FN; &$''CK1,< $NO'') 	 ^HHMM33WRu$2 4 4 ^^^s   /CC	c                   . RO.p. RO.pVP                  4       pVP                  \        P                  ! ^4      \	        ^4      VR7       VP                  \        P                  ! ^4      ^,          \	        ^4      VR7       VP                  4       pVP                  \        P                  ! ^4      \	        ^4      VR7       VP                  \        P                  ! ^4      ^,          \	        ^4      VR7       R# )r;   rG  r>  N)r;   r   皙?)r;   r   r  r   )r   r<   rk   r   r   )ro  r"   r#   rgbrgbary   rx   s   &&&    r%   test_scatter_single_color_c'TestScatter.test_scatter_single_color_c  s     "# !!#rwwqz5837rwwqz!|U1XT: ##%
E!H4
1eAh$7r'   c                   \         P                  ! ^4      p\        P                  ! 4       w  r#\	        ^4       FW  pVP                  V\         P                  ! ^V4      RV 2R^dV^,           R7      pVP                  4       V^,           8X  d   KW  Q h	  VP                  V\         P                  ! ^^4      RR^d. \	        ^^4      ORNR7      p\        VP                  4       . \	        ^^4      O\        P                  R,          N4       R# )r  r  r4   )r>   r   r  r  C3Nlines.linewidth)rk   rs   r)   r   r   r<   re   r  r   r   r   )ro  r4   r/   r$   r:  pcs   &     r%   test_scatter_linewidths#TestScatter.test_scatter_linewidths  s    IIaL,,.qAArwwq!}!A3s'(1u  .B$$&!a%/// 
 ZZ2771a=D#7U1a[#7$#7  92,,.JU1a[J#,,7H*IJ	Lr'   c           	     H   \         P                  ! \        R R7      ;_uu_ 4        \        P                  ! . R
O. R
O. RORR7       RRR4       \         P                  ! \        RR7      ;_uu_ 4        \        P                  ! . R
O. R
O. RORR7       RRR4       \         P                  ! \        RR7      ;_uu_ 4        \        P                  ! . R
O. R
O. RORR	7       RRR4       R#   + '       g   i     L; i  + '       g   i     Lr; i  + '       g   i     R# ; i)zGGot both 'linewidth' and 'linewidths', which are aliases of one anotherrh  r   )r  r,  NzGGot both 'edgecolor' and 'edgecolors', which are aliases of one another#ffffff)r]  r+  zGGot both 'facecolors' and 'facecolor', which are aliases of one another)
facecolorsr*  r  )r   r7  r   )r  z#000000z#f0f0f0)r   r   r   r)   r<   r  s   &r%   &test_scatter_singular_plural_arguments2TestScatter.test_scatter_singular_plural_arguments  s    ]]9"#$ $ KK	9TWX$
 ]]9"#$ $ KK	9#D$-/$ ]]9"#$ $ KK	9#D&/1$ $$ $
$ $$ $ $s#   !C*2!C=?!D*C:	=D	D!	r   )rz  N)r1  N)r&  N)NN)rF  r  r  r&  )r  r  )rz  z0.4r{  r|  )rz  r1  r{  r  )rz  r   r{  r  r  r;   r   r   r   r   r;   r   )$rr  rs  rt  ru  r   r}  r  r  r   r  r  r   markparametrizer  r  r  r  r   r   contextr  r  r  r  r  r  r  r  params_test_scatter_cr  r  r  r  rv  rw  ry  s   @r%   ro  ro  
  sZ    ykdC6 D6 +,$?" @"0 |n$E7K8 L8 UG,% -%? [[X%+V$4%+W->->-@$A%+QK%+QK	!"#
8#
8C 	YYy!C "C%F UG,8 -8 UG,	B -	B' UG,$ -$ UG,: -: 	
< 	 $'
L!
1l#
q$
q$
q'	%t,	$d+	"L1
d
Q 
Q
Q 
	4 
	!	W%
	!	T"
	!	W%
	!	yk	)40
%	'1
%	-t4
%i	8'B
%	)<8
%	0,?
%g	6EQ)V [[-/DE4 F4. 	YYy!UG,8 - "8L1 1r'   ro  r]  c                
    WW13# r  r   )r>   r  r]  r  s   &&$,r%   _paramsr    s    6))r'   _resultz	c, colorszparams, expected_result)r>   r  rF  r>  rG  r  c                     R  p\         P                  P                  P                  ! V RV/ w  r4pW1P                  8X  g   Q h\        WAP                  4       R# )c                      R # r  r   r   r'   r%   r  5test_parse_scatter_color_args.<locals>.get_next_color      r'   r  N)r   r_  r   r  r>   r   r  )paramsexpected_resultr  r>   r  _edgecolorss   &&    r%   test_parse_scatter_color_argsr    sQ     !XX]]DD	5%35A{!!!!!F223r'   zkwargs, expected_edgecolors)r]  r  r  r&  )r+  r]  )r>   r+  r]  )r   r+  c                     R  pV P                  RR4      pV P                  RR4      p\        P                  P                  P	                  W4V ^VR7      w   rVWa8X  g   Q hR# )c                      R # r  r   r   r'   r%   r  @test_parse_scatter_color_args_edgecolors.<locals>.get_next_color  r  r'   r>   Nr]  )r  r  )popr   r_  r   r  )r  expected_edgecolorsr  r>   r]  r  result_edgecolorss   &&     r%   (test_parse_scatter_color_args_edgecolorsr    se     	

3AL$/J//6 	0 	P Aq 333r'   c            
      "   R  p \         P                  ! \        RR7      ;_uu_ 4        \        P                  ! . RO. RO.4      p\
        P                  P                  P                  VR/ ^V R7       RRR4       R#   + '       g   i     R# ; i)c                      R # r  r   r   r'   r%   r  ;test_parse_scatter_color_args_error.<locals>.get_next_color   r  r'   z&RGBA values should be within 0-1 rangerh  Nr  r  r  )r   r   r  )r   r7  gffffff?)	r   r   r  rk   rF  r   r_  r   r  )r  r>   s     r%   #test_parse_scatter_color_args_errorr    st     
zE
G 
GHHo78//tBa^ 	0 	M
G 
G 
G 
Gs   AA==B	zYou passed both c and facecolor/facecolors for the markers. c has precedence over facecolor/facecolors. This behavior may change in the future.r1  r   r   r  zc, facecolorc           
        R p\         P                  ! \        \        R7      ;_uu_ 4        \        P
                  P                  P                  V RRV/^VR7       RRR4       \         P                  ! \        \        R7      ;_uu_ 4        \        P
                  P                  P                  V RRV/^VR7       RRR4       R#   + '       g   i     Ls; i  + '       g   i     R# ; i)z<Test the internal _parse_scatter_color_args method directly.c                      R # r  r   r   r'   r%   r  =test_parse_c_facecolor_warning_direct.<locals>.get_next_color  r  r'   rh  Nr  r  r*  )r   r  rH  WARN_MSGr   r_  r   r  )r>   r*  r  s   && r%   %test_parse_c_facecolor_warning_directr    s     
k	2	2//D,	)B 	0 	9 
3 
k	2	2//D+y)A 	0 	9 
3	2 
3	2 
3	2	2s   1C1CC	C,	c           	        \         P                  ! 4       w  r#\        V \        \        34      '       d   ^ ^.M^ .pTp\
        P                  ! \        \        R7      ;_uu_ 4        VP                  WEWR7       RRR4       \
        P                  ! \        \        R7      ;_uu_ 4        VP                  WEWR7       RRR4       R#   + '       g   i     LV; i  + '       g   i     R# ; i)z:Test the warning through the actual scatter plot creation.rh  )r>   r  N)r>   r*  )
r)   r   r   r  tupler   r  rH  r  r<   )r>   r*  r/   r$   r4   r5   s   &&    r%   ,test_scatter_c_facecolor_warning_integrationr  +  s     llnGCQu..AQCA	A 
k	2	2


11
3 
3 
k	2	2


11
2 
3	2	 
3	2 
3	2	2s   %C)CC	C+	c                  h    ! R  R4      p V ! 4       pV ! 4       p\         P                  Vn        \        P                  ! RVR7      p\        V4      \        J g   Q h\        P                  ! 4        \        P                  ! ^yVR7      p\        V4      \        J g   Q h\        P                  ! 4        R# )c                   ,   a  ] tR tRt o R tR tRtV tR# )#test_as_mpl_axes_api.<locals>.Polari=  c                    ^ V n         R# r-  theta_offsetr  s   &r%   __init__,test_as_mpl_axes_api.<locals>.Polar.__init__>  s
     !Dr'   c                *    \         R V P                  /3# r!  )r   r"  r  s   &r%   _as_mpl_axes0test_as_mpl_axes_api.<locals>.Polar._as_mpl_axesA  s    ~t/@/@AAAr'   r!  N)rr  rs  rt  ru  r#  r&  rv  rw  r  s   @r%   Polarr  =  s     	"	B 	Br'   r(  r|  NrE  )	rk   r   r"  r)   r_  typer   rc  ra  )r(  prjprj2r$   s       r%   test_as_mpl_axes_apir,  ;  s    B B 'C7DD 
,3	/B8y   IIK 
SS	)B8y   IIKr'   c                  R   \         P                  ! 4       w  r\         P                  ! 4       w  r#\         P                  ! V4       V\         P                  ! 4       J g   Q hV \         P                  ! 4       J g   Q h\         P
                  ! V 4       \         P
                  ! V4       R # r  )r)   r   scarZ  gcfrc  )fig1r  fig2r  s       r%   test_pyplot_axesr2  T  se    IDIDGGCL#'')3779IIdOIIdOr'   c                     \         P                  ! 4       w  rVP                  \        P                  ! \        P
                  ! R ^d4      4      4       VP                  RRR7       VP                  4        VP                  RRR7       R VP                  VP                  3 4       w  r#V. RO8X  g   Q hV. RO8X  g   Q hR# )	r   r%        @)r  r  c              3      "   T FL  pVP                  4        Uu. uF,  q"P                  4       VP                  P                  4       3NK.  	  upx  KN  	  R # u upi 5ir  )_update_ticksget_loclabel1get_text)r  r  r  s   &  r%   r  "test_log_scales.<locals>.<genexpr>e  sM      (D 6:5G5G5IJ5I))+qxx((*	+5IJ( 	Ks   A2AAN))r   z$\mathdefault{9^{0}}$)r  z$\mathdefault{9^{1}}$)g     @T@z$\mathdefault{9^{2}}$r   r   r  r   r  r   r  r   )r  r   )r  r   )r  r   )g      2@r   )g      ;@r   )g      B@r   )g     F@r   )g      K@r   )g     O@r   )      R@r   ))gF]tE?z$\mathdefault{5.5^{-1}}$)r   z$\mathdefault{5.5^{0}}$)r4  z$\mathdefault{5.5^{1}}$)gF]tE?r   )gtE]t?r   )gF]tE?r   )g]tE?r   r;  r<  r=  r>  )r)   r   r   rk   r%  r   r  r  rF  r\   r^   )r/   r$   rJ  ytickss       r%   test_log_scalesrA  _  s    llnGCGGBFF2;;sC()*MM%cM"OOMM%cM"XXrxx(NF     &     r'   c                     \         P                  ! 4       w  rVP                  R R R7       VP                  P	                  \
        P                  ! ^4      4       VP                  4       VP                  4       u;8X  d	   R8X  g   Q h Q hR# )r%  )r  r  Nr;   rT  )	r)   r   r   r\   r  r   MultipleLocatorr   r   r  s     r%   test_log_scales_no_datarE    sa    LLNEAFF%F&HHw66q9:;;=BKKM4W44444r'   c                     \         P                  ! 4       w  rVP                  R 4       \        P                  ! \
        RR7      ;_uu_ 4        VP                  R^
4       RRR4       VP                  R 4       \        P                  ! \
        RR7      ;_uu_ 4        VP                  R^
4       RRR4       R#   + '       g   i     Lb; i  + '       g   i     R# ; i)r%  zAttempt to set non-positiverh  Nr   )	r)   r   rF  r   r  rH  r  r  r  r.   s     r%   test_log_scales_invalidrG    s    llnGCMM%	k)F	G	G
B 
HMM%	k)F	G	G
B 
H	G 
H	G 
H	G	Gs   B:C:C
	C	zstackplot_test_image.pngc            	         \         P                  ! 4       p \        P                  ! ^ ^
^
4      pRV,          pRV,          ^,           pRV,          ^,           pV P	                  ^^^4      pVP                  WW44       VP                  R
4       VP                  R4       RVRVRVRV/p\         P                  ! 4       w  rVP                  RRRRV. ROR7       VP                  R
4       VP                  R4       R	# )r   r   r   r  r4   r  rJ  y3)r  r  Nr   rT  r   r  )r  C1C2)	r)   r   rk   r   r   	stackplotr  r  r   )r/   r4   r  rJ  rI  r$   r  s          r%   test_stackplotrO    s     **,C
Ar2A	qB	q1B	q1B	Aq	!BLLKKKK D"dBb1DllnGCLLdD$T:LLMKKKKr'   zstackplot_test_baseline.pngc                     \         P                  P                  ^ 4       R p V ! ^^d4      p^ VR&   \        P                  ! ^^4      w  r#VR	,          P                  \        ^d4      VP                  RR7       VR
,          P                  \        ^d4      VP                  RR7       VR,          P                  \        ^d4      VP                  RR7       VR,          P                  \        ^d4      VP                  RR7       R# )r   c                 J   \         P                  ! W34      p\        V 4       F  p\        ^4       F  p^R\         P                  P                  4       ,           ,          p^\         P                  P                  4       ,          R,
          p^
R\         P                  P                  4       ,           ,          pVRV3;;,          V\         P                  ! \         P
                  ! V4      V,          V,
          V,          ^,          ) 4      ,          ,          uu&   K  	  K  	  V# )r  r   r   rt  )rk   r  r   rl   exprs   )r  r  r   r:  jr4   r5   r  s   &&      r%   layers'test_stackplot_baseline.<locals>.layers  s    HHaVqA1Xbii..001		((**R/"ryy//112!Q$1rvv1)9A)=(Bq'H&HIII	   r'   zeror  symwiggleweighted_wiggleN)rI  rt  r  r  r;   r   ru  )rk   rl   rm   r)   r   rN  r   r  )rT  r  r/   r  s       r%   test_stackplot_baseliner[    s    IINN1 	q#AAeH||Aq!HCIc
ACC&9Ic
ACC%8Ic
ACC(;Ic
ACC2CDr'   c           	      p   \         P                  ! ^ ^
^
4      pRV,          pRV,          ^,           pRV,          ^,           pVP                  4       pVP                  W#WE. ROR.R7       VP	                  R4       VP                  R4       \         P                  ! \        V4      4      pV P                  4       pVP                  W'VRRR	7       VP                  W#W4,           RRR	7       VP                  W#V,           W4,           V,           RRR	7       VP	                  R4       VP                  R4       R
# )r   r   r   r  r4   rA  \\r+  )r.  r  )r.  r*  N)r4   rA  r]  rJ  rK  )	rk   r   r   rN  r  r  r  r  r   )	r#   r"   r4   r  rJ  rI  rx   stack_baselinery   s	   &&       r%   test_stackplot_hatchingr_    s   
Ar2A	qB	q1B	q1B!GaR+>yQWWXXc!f%NF
2SGL
ruDGD
b5"%(&GL
OOG
OOGr'   c                     \         P                  ! 4       p V P                  ^^R7      pV F0  pVP                  ^^R7      pVP	                  ^^.^^..R.R7       K2  	  V P                  4        V P                  4        R# )r;   r  r   labelsN)r)   r   
subfiguresr   rN  rJ   draw_without_rendering)r/   subfigs_figr$   s       r%   test_stackplot_subfig_legendrg    sr     **,Cnn1An.G]]!],
aVq!fXse4  JJL r'   c                     V # r  r   )r  s   &r%   r  r    s    1r'   c                    \         P                  P                  R 4       \        P                  P
                  ! \         P                  P                  RRRR7      3/ V B p\        P                  ! 4       w  rEVP                  RR4      R8X  d   VP                  R4       MVP                  R4       VP                  RR4      '       g)   \        P                  R	,          \        P                  R
&   VP                  ! V! V4      3/ VB  R# )  rV  r   )meansigmar  rU   verticalr%  patch_artistFr  boxplot.boxprops.linewidthN)r
  r  )rk   rl   rm   r   cbookboxplot_stats	lognormalr)   r   getr  rF  r   bxp)stats_kwargstransform_stats
bxp_kwargslogstatsr/   r$   s   &&&   r%   _bxp_test_helperry    s    IINN3yy&&
		Rg>PBNPHllnGC~~mZ0J>
e
e >>.%00LL*+ 	12FF?8$3
3r'   zbxp_baseline.png)r(  r   c                      \        4        R # r  ry  r   r'   r%   test_bxp_baseliner|     s
     r'   zbxp_rangewhis.pngc                  6    \        \        ^ ^d.R7      R7       R# )r   whisru  Nry  r  r   r'   r%   test_bxp_rangewhisr    s     $QH"56r'   zbxp_percentilewhis.pngc                  6    \        \        ^^_.R7      R7       R# )r  r~  r  Nr  r   r'   r%   test_bxp_percentilewhisr    s     $QG"45r'   zbxp_with_xlabels.pngc                  $    R  p \        V R7       R# )c                 J    \        V \        R 4      4       F	  w  rW!R&   K  	  V # ABCDr2   r  r  statsr  r2   s   &  r%   r)  (test_bxp_with_xlabels.<locals>.transform  %    E4<0HAgJ 1r'   )rv  Nr{  r)  s    r%   test_bxp_with_xlabelsr    s    
 Y/r'   zbxp_horizontal.pngr   )r  r(  r   r   c                  2    \        \        R R7      R7       R# )rS   rT   rw  Nr  r   r'   r%   test_bxp_horizontalr  !  s      >?r'   zbxp_with_ylabels.png)r(  r   r   c                  :    R  p \        V \        RR7      R7       R# )c                 J    \        V \        R 4      4       F	  w  rW!R&   K  	  V # r  r  r  s   &  r%   r)  (test_bxp_with_ylabels.<locals>.transform/  r  r'   rS   rT   rv  rw  Nr  r  s    r%   test_bxp_with_ylabelsr  *  s    

 Y $ >@r'   zbxp_patchartist.png)r  r(  r   c                  2    \        \        R R7      R7       R# )T)rn  r  Nr  r   r'   r%   test_bxp_patchartistr  8  s    
 $ 78r'   zbxp_custompatchartist.pngc                  L    \        \        R \        RRRR7      R7      R7       R# )Tr  r   :)r*  r+  r   )rn  boxpropsr  Nr  r   r'   r%   test_bxp_custompatchartistr  @  s$    
 GD!F Gr'   zbxp_customoutlier.pngc            
      J    \        \        \        R RRR7      R7      R7       R# )r&  r  r  r   r   mfc)
flierpropsr  Nr  r   r'   r%   test_bxp_customoutlierr  J  s!    
 &#>!@ Ar'   zbxp_withmean_custompoint.pngc                  L    \        \        R \        RRRR7      R7      R7       R# )Tr&  r  r   r  )	showmeans	meanpropsr  Nr  r   r'   r%   test_bxp_showcustommeanr  S  s"    
 A! r'   zbxp_custombox.pngc            
      J    \        \        \        R R^R7      R7      R7       R# )rD  r  r   r   r@  )r  r  Nr  r   r'   r%   test_bxp_customboxr  ^      
 CA6!8 9r'   zbxp_custommedian.pngc            
      J    \        \        \        R R^R7      R7      R7       R# )rD  r  r  medianpropsr  Nr  r   r'   r%   test_bxp_custommedianr  g  s    
 4sq9!; <r'   zbxp_customcap.pngc            
      J    \        \        \        R R^R7      R7      R7       R# )rD  r  r  )cappropsr  Nr  r   r'   r%   test_bxp_customcapr  p  r  r'   zbxp_customwhisker.pngc            
      J    \        \        \        R R^R7      R7      R7       R# )rC  r  r  )whiskerpropsr  Nr  r   r'   r%   test_bxp_customwhiskerr  y  s    
 Csq9!; <r'   c                     \         P                  ! ^4      pR^/p/ VCRR/CpV P                  4       P                  W#R7       VP                  4       P                  W$R7       R# )r  r,  r  r  r  N)rk   rs   r   rq  )r"   r#   r  medianprops_testmedianprops_refs   &&   r%    test_boxplot_median_bound_by_boxr    sa    99Q<D#R(D)D+;VDODtAr'   zbxp_withnotch.pngc                  2    \        \        R R7      R7       R# )T)shownotchesr  Nr  r   r'   r%   test_bxp_shownotchesr    s    
  67r'   zbxp_nocaps.pngc                  2    \        \        R R7      R7       R# )F)showcapsr  Nr  r   r'   r%   test_bxp_nocapsr    s    
 e 45r'   zbxp_nobox.pngc                  2    \        \        R R7      R7       R# )F)showboxr  Nr  r   r'   r%   test_bxp_noboxr    s    
 U 34r'   zbxp_no_flier_stats.pngc                  :    R  p \        V \        RR7      R7       R# )c                 <    V  F  pVP                  R R4       K  	  V # )fliersN)r  )r  r  s   & r%   r)  *test_bxp_no_flier_stats.<locals>.transform  s    AEE(D! r'   F)
showfliersr  Nr  r  s    r%   test_bxp_no_flier_statsr    s    

 Y $ 68r'   zbxp_withmean_point.pngc                  4    \        \        R RR7      R7       R# )TFr  meanliner  Nr  r   r'   r%   test_bxp_showmeanr    s    
 te DEr'   zbxp_withmean_line.pngc                  4    \        \        R R R7      R7       R# )Tr  r  Nr  r   r'   r%   test_bxp_showmeanasliner    s    
 td CDr'   zbxp_scalarwidth.pngc                  2    \        \        R R7      R7       R# )r  rx  r  Nr  r   r'   r%   test_bxp_scalarwidthr    s    
 C 01r'   zbxp_customwidths.pngc                  6    \        \        . ROR7      R7       R# )r   rx  r  N)r   r  g?g333333?r  r   r'   r%   test_bxp_customwidthsr    s    
 ,D EFr'   zbxp_custompositions.pngc                  6    \        \        . ROR7      R7       R# )r;   rl  r  N)r;   r  r  r`  r  r   r'   r%   test_bxp_custompositionsr    s    
 | <=r'   c                      \         P                  ! \        4      ;_uu_ 4        \        \	        ^.R7      R7       RRR4       R#   + '       g   i     R# ; i)r;   rx  r  Nr   r   r  ry  r  r   r'   r%   test_bxp_bad_widthsr    s/    	z	"	"D$45 
#	"	"	"   AA	c                      \         P                  ! \        4      ;_uu_ 4        \        \	        ^^.R7      R7       RRR4       R#   + '       g   i     R# ; i)r/  rl  r  Nr  r   r'   r%   test_bxp_bad_positionsr    s1    	z	"	"DAq6$:; 
#	"	"	"s   AA	zbxp_custom_capwidths.pngc                  6    \        \        . ROR7      R7       R# )r  rw  r  N)r  r   r   r   r  r   r'   r%   test_bxp_custom_capwidthsr    s     /C DEr'   zbxp_custom_capwidth.pngc                  2    \        \        R R7      R7       R# )r  rw  r  Nr  r   r'   r%   test_bxp_custom_capwidthr    s     s 34r'   c                      \         P                  ! \        4      ;_uu_ 4        \        \	        ^.R7      R7       RRR4       R#   + '       g   i     R# ; i)r;   rw  r  Nr  r   r'   r%   test_bxp_bad_capwidthsr    s/    	z	"	"DA3$78 
#	"	"	"r  zboxplot.pngg{Gz?)r   r   c                     \         P                  P                  R 4       \         P                  ! R^^4      p \         P                  ! RV ^.4      p \
        P                  ! 4       w  rVP                  W .R^R7       VP                  R4       RW ./p\
        P                  ! 4       w  rVP                  RR^VR7       VP                  R4       R# )	rj  '  	bootstrapnotchr4   )r  r  r  Nra  r  r  	rk   rl   rm   r   hstackr)   r   rq  r  )r4   r/   r$   r  s       r%   test_boxplotr    s     IINN3
B3A
		32,AllnGCJJvaJ0KK	 !=DllnGCJJse14J8KK	r'   c                    \         P                  ! R^^4      pV P                  4       pW"^ 8  ,          pVP                  V4       \         P                  P                  V^ 4      pVP                  4       pVP                  V4       R# )r;   Nr   )rk   r   r   rq  r	   masked_less)r"   r#   x_origr$   r4   s   &&   r%   test_boxplot_maskedr  	  sj     [[Q$F				B{AJJqM
&!$A				BJJqMr'   zboxplot_custom_capwidths.pngc                      \         P                  ! R^^4      p \         P                  ! RV ^.4      p \        P                  ! 4       w  rVP                  W .^RR.R7       R# )r`  r  r   )r  ru  Nra  r  )rk   r   r  r)   r   rq  r%  s      r%   test_boxplot_custom_capwidthsr    sO     	B3A
		32,AllnGCJJvQ4+J6r'   zboxplot_sym2.pngc                  v   \         P                  P                  R 4       \         P                  ! R^^4      p \         P                  ! RV ^.4      p \
        P                  ! ^^4      w  pw  r#VP                  W .RRR7       VP                  R4       VP                  W .RRR7       VP                  R4       R# )	rj  r  ^)r  rW  r  Nra  r  r  r  )r4   r/   r  r  s       r%   test_boxplot_sym2r  "  s     IINN3
B3A
		32,All1a(OC#KK%SK1LLKK%SK1LLr'   zboxplot_sym.pngc                      \         P                  ! R^^4      p \         P                  ! RV ^.4      p \        P                  ! 4       w  rVP                  W .RR7       VP                  R4       R# )r`  r  rW  Nra  r  r  )rk   r   r  r)   r   rq  r  r%  s      r%   test_boxplot_symr  2  sU    
 	B3A
		32,AllnGCJJv4J KK	r'   z$boxplot_autorange_false_whiskers.pngz#boxplot_autorange_true_whiskers.pngc                     \         P                  P                  R 4       \         P                  ! ^4      p \         P                  ! ^ V ^.4      p \
        P                  ! 4       w  rVP                  W .R^R7       VP                  R4       \
        P                  ! 4       w  r4VP                  W .R^RR7       VP                  R4       R# )rj  r  r  T)r  r  	autorangeN)r  r  )	rk   rl   rm   r   r  r)   r   rq  r  )r4   r0  r  r1  r  s        r%   test_boxplot_autorange_whiskersr  ?  s    
 IINN3
A
		1a)AIDKK%qK1LLIDKK%qDKALLr'   c                    \         P                  ! R^^4      p\         P                  ! RV^.4      p\        P                  ! V4      ;_uu_ 4        V P                  W".4       RRR4       V #   + '       g   i     T # ; i)r`  Nra  r  )rk   r   r  rX   r   rq  )r$   rc_dictr4   s   && r%   _rc_test_bxp_helperr  R  s_    
B3A
		32,A			w	'	'


A6 
(I 
(	'Is   A--A>	zboxplot_rc_parameters.png)r(  r  r   r   c                      \         P                  P                  R 4       \        P                  ! ^4      w  r/ RRbR^^_.bRRbRRbRR	bR
RbRRbR^bRRbRRbRRbRRbRRbRRbRRbRRbRRbRRRR/CpR^ ^d.RR/pRRRR R!R R"R R#RR$RR%RR&RR'RR(RR)RR*R+/pW#V.p\        W4       F  w  rg\        Wg4       K  	  \        P                  P                  V^,          P                  4        Uu. uF  p\        V4      NK  	  up9   g   Q hR,# u upi )-rj  zboxplot.notchTzboxplot.whiskerszboxplot.bootstrapr  zboxplot.flierprops.colorr  boxplot.flierprops.markerr   z"boxplot.flierprops.markerfacecolorr  z"boxplot.flierprops.markeredgecolorzboxplot.flierprops.markersizezboxplot.flierprops.linestylerD  zboxplot.flierprops.linewidthr   zboxplot.boxprops.colorrF  ro  zboxplot.boxprops.linestylezboxplot.capprops.colorr>   zboxplot.capprops.linewidthzboxplot.capprops.linestylezboxplot.medianprops.colorr6  zboxplot.medianprops.linewidthzboxplot.medianprops.linestylezboxplot.patchartistzboxplot.showcapsFzboxplot.showboxzboxplot.showflierszboxplot.showmeanszboxplot.meanlinezboxplot.meanprops.colorzboxplot.meanprops.linewidthzboxplot.meanprops.linestylezboxplot.whiskerprops.colorzboxplot.whiskerprops.linewidthzboxplot.whiskerprops.linestyle-.N)rk   rl   rm   r)   r   r  r  rX   r3  r4  get_childrenr)  )	r/   r$   rc_axis0rc_axis1rc_axis2	dict_listr  rc_axisr  s	            r%   test_boxplot_rc_parametersr  Z  s   
 IINN3ll1oGCQG 	U
 	#C 	$S 	-c 	-c 	( 	' 	' 	!# 	%c 	%d" 	!##$ 	%c%& 	%d'* 	$S+, 	('/H6 	QHtH 	CE5eTD!3%s%t$c(#($H  X.IR+D* , (( e00232T!W234 5 43s   ,Dzboxplot_with_CIarray.pngc                  `   \         P                  P                  R 4       \         P                  ! R^^4      p \         P                  ! RV ^.4      p \
        P                  ! 4       w  r\         P                  ! R	R.R
R..4      pVP                  W .RRR.V^R7       VP                  R4       R# )rj  r  r         @r  N)r  usermediansconf_intervalsr  ra  r  rQ  rR  r  )
rk   rl   rm   r   r  r)   r   rF  rq  r  )r4   r/   r$   CIss       r%   test_boxplot_with_CIarrayr    s     IINN3
B3A
		32,AllnGC
((T2Jc
+
,C JJvT3K!  ,KK	r'   zboxplot_no_inverted_whisker.pngc                  4   \         P                  ! . RO\         P                  R7      p \        P                  ! 4       pVP                  V 4       VP                  R4       VP                  P                  RRR7       VP                  P                  R4       R# )r  r  r%  FminorwhichN)r  i(#     X   i^  i@ ix  i  )
rk   rF  r  r)   r_  rq  r  r^   r  r\   )r4   r  s     r%   test_boxplot_no_weird_whiskerr    sb     	;zz	#A
((*CKKNNN5IINN5N(IINN5r'   c                     \         P                  ! R^^4      p \         P                  ! RV ^.4      p \        P                  ! 4       w  r\
        P                  ! \        4      ;_uu_ 4        VP                  V ^^.R7       RRR4       \
        P                  ! \        4      ;_uu_ 4        VP                  W .^^.^^..R7       RRR4       R#   + '       g   i     LW; i  + '       g   i     R# ; i)r`  )r  Nra  r  	rk   r   r  r)   r   r   r   r  rq  r%  s      r%   test_boxplot_bad_mediansr    s    
B3A
		32,AllnGC	z	"	"


11a&
) 
#	z	"	"


A6AA'7
8 
#	" 
#	"	"	"	"s   +C+C#C 	#C4	c                     \         P                  ! R^^4      p \         P                  ! RV ^.4      p \        P                  ! 4       w  r\
        P                  ! \        4      ;_uu_ 4        VP                  W .^^..R7       RRR4       \
        P                  ! \        4      ;_uu_ 4        VP                  W .^^.^..R7       RRR4       R#   + '       g   i     LV; i  + '       g   i     R# ; i)r`  )r	  Nra  r  r  r%  s      r%   test_boxplot_bad_cir    s    
B3A
		32,AllnGC	z	"	"


A6Aq6(
3 
#	z	"	"


A6Aq6A3-
8 
#	" 
#	"	"	"	"s   +C-C$C!	$C5	c                  4   \         P                  ! ^
4      p \        P                  ! 4       w  rVP	                  V 4      R,          ^ ,          P                  4       ^8X  g   Q hVP	                  V ^
R7      R,          ^ ,          P                  4       ^
8X  g   Q hR# )rT  boxesrs  N)rk   rs   r)   r   rq  r  )r4   r  r$   s      r%   test_boxplot_zorderr    ss    
		"AllnGC::a=!!$//1Q666::a:#G,Q/::<BBBr'   c                     R \         P                  R&   R\         P                  R&   R\         P                  R&   \         P                  ! 4       w  r\        P                  ! ^d4      p^VR&   VP                  VRR7      pR F)  pW4,           F  pVP                  4       R8X  d   K  Q h	  K+  	  VR	,          ^ ,          P                  4       R8X  g   Q hVR
,          ^ ,          P                  4       R8X  g   Q hR# )r  r[  r   r  r  zboxplot.meanprops.markerT)r  r   r  meansNr   )whiskerscapsr  medians)r)   r   r   rk   rs   rq  
get_marker)r/   r$   	test_data
bxp_handle	bxp_lines	each_lines         r%   test_boxplot_marker_behaviorr&    s    #&CLL 03CLL,-/2CLL+,llnGC		#IIbMI6J=	#..I'')R/// / > h"--/3666gq!,,.#555r'   z&boxplot_mod_artists_after_plotting.pngc                      . ROp \         P                  ! 4       w  rVP                  V RR7      pV F#  pW4,           F  pVP                  R4       K  	  K%  	  R# )r  r   r  r   N)r  r  rm  rm  Q?gQ?gQ)r)   r   rq  rN  )r4   r/   r$   bpkeyrl  s         r%   &test_boxplot_mod_artist_after_plottingr+    sL     	4AllnGC	A3	B77CMM'"  r'   zviolinplot_vert_baseline.pngc            	         \         P                  P                  R 4       \        ^4       U u. uF#  p \         P                  P	                  ^dR7      NK%  	  pp \
        P                  ! 4       pVP                  V\        ^4      RRRR7       RV/p\
        P                  ! 4       w  r2VP                  R\        ^4      RRRVR7       R# u up i )ier  Frm  r  showextremashowmediansr  )rm  r  r.  r/  r  N)	rk   rl   rm   r   rn   r)   r_  
violinplotr   )r  r  r$   r/   s       r%   test_vert_violinplot_baseliner1    s     IINN905a91BII#&D9	BMM$%(e#  % ;DllnGCMM#qU#$  0 :s   )C	zviolinplot_vert_showmeans.pngc                  &   \         P                  ! 4       p \        P                  P	                  R 4       \        ^4       Uu. uF#  p\        P                  P                  ^dR7      NK%  	  ppV P                  V\        ^4      RRRR7       R# u upi )iw5+r  TFr-  Nr)   r_  rk   rl   rm   r   rn   r0  r$   r  r  s      r%   test_vert_violinplot_showmeansr5    sl    	BIINN905a91BII#&D9MM$%(d#  % :   )Bzviolinplot_vert_showextrema.pngc                  &   \         P                  ! 4       p \        P                  P	                  R 4       \        ^4       Uu. uF#  p\        P                  P                  ^dR7      NK%  	  ppV P                  V\        ^4      RRRR7       R# u upi )ir  FTr-  Nr3  r4  s      r%    test_vert_violinplot_showextremar8    sl    	BIINN905a91BII#&D9MM$%(e#  % :r6  zviolinplot_vert_showmedians.pngc                  &   \         P                  ! 4       p \        P                  P	                  R 4       \        ^4       Uu. uF#  p\        P                  P                  ^dR7      NK%  	  ppV P                  V\        ^4      RRRR7       R# u upi )ib}&r  FTr-  Nr3  r4  s      r%    test_vert_violinplot_showmediansr:    sl    	BIINN905a91BII#&D9MM$%(e"  $ :r6  zviolinplot_vert_showall.pngc                  @   \         P                  ! 4       p \        P                  P	                  R 4       \        ^4       Uu. uF#  p\        P                  P                  ^dR7      NK%  	  ppV P                  V\        ^4      RRRRR.RR.RR.R	R
..R7       R# u upi )iOr  Tr   ?r   r  r   r  r7  r  )rm  r  r.  r/  	quantilesNr3  r4  s      r%   test_vert_violinplot_showallr>    s    	BIINN905a91BII#&D9MM$%(d"!3Z#sc3Z#sL  N :s   )Bz#violinplot_vert_custompoints_10.pngc            	      (   \         P                  ! 4       p \        P                  P	                  R 4       \        ^4       Uu. uF#  p\        P                  P                  ^dR7      NK%  	  ppV P                  V\        ^4      RRR^
R7       R# u upi )i$r  Frm  r  r.  r/  pointsNr3  r4  s      r%   $test_vert_violinplot_custompoints_10rB  *  sn    	BIINN905a91BII#&D9MM$%(e#B  0 :   )Bz$violinplot_vert_custompoints_200.pngc            	      (   \         P                  ! 4       p \        P                  P	                  R 4       \        ^4       Uu. uF#  p\        P                  P                  ^dR7      NK%  	  ppV P                  V\        ^4      RRR^R7       R# u upi )iYqVr  Fr@  Nr3  r4  s      r%   %test_vert_violinplot_custompoints_200rE  4  sn    	BIINN905a91BII#&D9MM$%(e#C  1 :rC  zviolinplot_horiz_baseline.pngc            	      (   \         P                  ! 4       p \        P                  P	                  R 4       \        ^4       Uu. uF#  p\        P                  P                  ^dR7      NK%  	  ppV P                  V\        ^4      RRRRR7       R# u upi )i\dr  rS   Frm  rU   r  r.  r/  Nr3  r4  s      r%   test_horiz_violinplot_baselinerH  >  so    	BIINN905a91BII#&D9MM$%(PU#  8 :rC  z violinplot_horiz_showmedians.pngc            	      (   \         P                  ! 4       p \        P                  P	                  R 4       \        ^4       Uu. uF#  p\        P                  P                  ^dR7      NK%  	  ppV P                  V\        ^4      RRRRR7       R# u upi )ilo/r  rS   FTrG  Nr3  r4  s      r%   !test_horiz_violinplot_showmediansrJ  H  so    	BIINN905a91BII#&D9MM$%(PU#  7 :rC  zviolinplot_horiz_showmeans.pngc            	      (   \         P                  ! 4       p \        P                  P	                  R 4       \        ^4       Uu. uF#  p\        P                  P                  ^dR7      NK%  	  ppV P                  V\        ^4      RRRRR7       R# u upi )i&r  rS   TFrG  Nr3  r4  s      r%   test_horiz_violinplot_showmeansrL  R  so    	BIINN905a91BII#&D9MM$%(PT#  8 :rC  z violinplot_horiz_showextrema.pngc            	      (   \         P                  ! 4       p \        P                  P	                  R 4       \        ^4       Uu. uF#  p\        P                  P                  ^dR7      NK%  	  ppV P                  V\        ^4      RRRRR7       R# u upi )ie!r  rS   FTrG  Nr3  r4  s      r%   !test_horiz_violinplot_showextremarN  \  so    	BIINN905a91BII#&D9MM$%(PU"  7 :rC  zviolinplot_horiz_showall.pngc                  B   \         P                  ! 4       p \        P                  P	                  R 4       \        ^4       Uu. uF#  p\        P                  P                  ^dR7      NK%  	  ppV P                  V\        ^4      RRRRRR.RR.RR	.R
R..R7       R# u upi )i"r  rS   Tr   r<  r   r  r   r  r7  r  )rm  rU   r  r.  r/  r=  Nr3  r4  s      r%   test_horiz_violinplot_showallrP  f  s    	BIINN805a91BII#&D9MM$%(PT"!3Z#sc3Z#sL  N :s   )Bz$violinplot_horiz_custompoints_10.pngc            
      *   \         P                  ! 4       p \        P                  P	                  R 4       \        ^4       Uu. uF#  p\        P                  P                  ^dR7      NK%  	  ppV P                  V\        ^4      RRRR^
R7       R# u upi )i0r  rS   Frm  rU   r  r.  r/  rA  Nr3  r4  s      r%   %test_horiz_violinplot_custompoints_10rS  q  sr    	BIINN905a91BII#&D9MM$%(PU#r  C :   )Bz%violinplot_horiz_custompoints_200.pngc            
      *   \         P                  ! 4       p \        P                  P	                  R 4       \        ^4       Uu. uF#  p\        P                  P                  ^dR7      NK%  	  ppV P                  V\        ^4      RRRR^R7       R# u upi )i<9!r  rS   FrR  Nr3  r4  s      r%   &test_horiz_violinplot_custompoints_200rV  {  sr    	BIINN905a91BII#&D9MM$%(PU#s  D :rT  zviolinplot_sides.pngc                  t   \         P                  ! 4       p \        P                  P	                  R 4       \        P                  P                  ^dR7      .p\        . RO. R	O4       F  w  r#V P                  W.RRRRVR7       K  	  \        . R
O. R	O4       F  w  r#V P                  W.RRRRVR7       K  	  R# )ra   r  rS   FT)rm  rU   r  r.  r/  siderm  N)r   r  r   )r   lowhigh)r  r        @)r)   r_  rk   rl   rm   rn   r  r0  )r$   r  r   rX  s       r%   test_violinplot_sidesr\    s    	BIINN8II#&'D)@A	
deQV"&Dt 	 	E B (?@	
deu"&Dt 	 	E Ar'   c                     \         P                  ! 4       p \        P                  P	                  R 4       \        ^4       Uu. uF#  p\        P                  P                  ^dR7      NK%  	  pp\        P                  ! \        4      ;_uu_ 4        V P                  V\        ^4      R7       RRR4       R# u upi   + '       g   i     R# ; i)i@ 3r  rl  Nr)   r_  rk   rl   rm   r   rn   r   r   r  r0  r4  s      r%   test_violinplot_bad_positionsr_    s    	BIINN905a91BII#&D9	z	"	"
deAh/ 
#	" :	"	"	"s   )B6B;;C	c                     \         P                  ! 4       p \        P                  P	                  R 4       \        ^4       Uu. uF#  p\        P                  P                  ^dR7      NK%  	  pp\        P                  ! \        4      ;_uu_ 4        V P                  V\        ^4      . ROR7       RRR4       R# u upi   + '       g   i     R# ; i)iA#r  )rm  rv  Nr  r^  r4  s      r%   test_violinplot_bad_widthsra    s    	BIINN905a91BII#&D9	z	"	"
deAhyA 
#	" :	"	"	"s   )B9 B>>C	c                  `   \         P                  ! 4       p \        P                  P	                  R 4       \        P                  P                  ^dR7      .p\        P                  ! \        4      ;_uu_ 4        V P                  VRR.RR..R7       RRR4       R#   + '       g   i     R# ; i)il r  r   r   r   r  r=  N
r)   r_  rk   rl   rm   rn   r   r   r  r0  r$   r  s     r%   test_violinplot_bad_quantilesrf    st    	BIINN9II#&'D 
z	"	"
dSzC:&>? 
#	"	"	"s   8BB-	c                     \         P                  ! 4       p \        P                  P	                  R 4       \        P                  P                  ^dR7      .p\        P                  ! \        4      ;_uu_ 4        V P                  V. RO.R7       RRR4       \        P                  ! \        4      ;_uu_ 4        V P                  V. RO.R7       RRR4       R#   + '       g   i     LS; i  + '       g   i     R# ; i)iq4r  rc  N)r   r   r   ?)皙r   r   rU  rd  re  s     r%   $test_violinplot_outofrange_quantilesrj    s    	BIINN9II#&'D 
z	"	"
d'<&=> 
# 
z	"	"
d'>&?@ 
#	"	 
#	" 
#	"	"s   8C9C-C*	-C>	c                    \         P                  P                  R 4       \         P                  P                  ^dR7      .pV P	                  4       pVP                  V. ROR7       VP	                  4       pVP                  V. RO.R7       R# )+r  rc  N)r   r   r<  )rk   rl   rm   rn   r   r0  )r"   r#   r  r$   s   &&  r%   %test_violinplot_single_list_quantilesrm    sq     IINN9II#&'D 
			BMM$/M2 
			BMM$?"3M4r'   c                 >   \         P                  P                  R 4       VP                  \         P                  P	                  ^R7      . ROR7      pVP                  \         P                  P	                  ^	R7      \        R4      R7      pVP                  \         P                  P	                  ^R7      4      pV P                  4       P                  W4V.4       VP                  4       P                  VP                  VP                  VP                  .4       R# )rl  r  r  	ABCDEFGHIN)rn  r  r`  r  r  r  r  )	rk   rl   rm   r  rn   r  r   r0  r!  )r"   r#   rr  s1s2s3s   &&&   r%   test_violinplot_pandas_seriesrs    s    IINN9	299###+3H	IB	299###+43D	EB	299###,	-B""BB<0!!299bii"CDr'   c                     \         P                  ! 4       w  rVP                  ^ ^4       VP                  4       p\        P
                  P                  ^ 4       \        P
                  P                  ^
^^4      p\        P
                  P                  ^^^4      pVP                  W4.^^.RR7       VP                  4       p\        W%4       R# )r   F)rm  manage_ticksN)
r)   r   r  r   rk   rl   rm   rn   rq  r   )r  r$   old_xlimr  rJ  new_xlims         r%   test_manage_xticksrx    s    LLNEAKK1{{}HIINN1			"a	$B			!Q	#BJJxAq6J>{{}Hx*r'   c                     \         P                  ! 4       w  rVP                  \        P                  P                  ^d4      ^.R7       VP                  \        P                  P                  ^d4      ^.R7       V P                  P                  4        VP                  4       R8X  g   Q h\        VP                  4       4      ^^.8X  g   Q hVP                  4        Uu. uF  q"P                  4       NK  	  upRR.8X  g   Q hR# u upi )rY  rl  r   5N)r2  r4  )r)   r   rq  rk   rl   r~   r  r  r   r  
get_xticksr  r9  ra  s      r%   test_boxplot_not_singler|    s    llnGCJJryy~~c"qcJ2JJryy~~c"qcJ2JJOO;;=J&&& QF***"$"4"4"67"6QJJL"67C:EEE7s   Dc                      \         P                  ! ^ ^.^ ^.4       \        P                  P	                  R^ /4       \
        P                  ! 4       p \         P                  ! V ^PRR7       R# )r   z	font.sizeraw)r'  formatN)r)   r   rX   r   updateioBytesIOsavefigr  s    r%   test_tick_space_size_0r    sN     HHaVaVQ/0


AKKr%(r'   c            
         \         P                  ! R ^R\         P                  R7      p \         P                  ! V ) 4      pR R\         P                  ! V 4      ,          ,           pR V,           p\
        P                  ! 4       pVP                  4       pVP                  WRRR7       VP                  R4       \
        P                  ! ^^RR7      w  rFVR,          pVP                  WVR	R
7       VP                  R4       VP                  ^R7       VR,          pVP                  WVR	RR7       VP                  R4       VR,          pVP                  WV^V,          .V^V,          .RR7       VP                  R4       VR ,          pVP                  R4       \         P                  ! RW,
          4      pW,
          pVP                  WV^V,          .VR	R^R7       VP                  R4       VP                  RR4       VP                  R4       RV RV/p	\
        P                  ! 4       pVP                  4       pVP                  RRRRV	R7       VP                  R4       R# )!r   r   r  r   r7  rL  z&Simplest errorbars, 0.2 in x, 0.4 in yT)r  r  r  r   rN  r   zVert. symmetricnbins)rM  r   r  zHor. symmetric w/ alphaz--orN  rM  r   zH, V asymmetricr%  r  r  )rN  rM  r   ecolorcapthickzMixed sym., log yr.  zVariable errorbarsr4   r5   rM  rN  r  Nr  r  rZ  ru  )rk   rs   
longdoublerR  r  r)   r   rZ  rI  r7   r   locator_paramsr  maximumr  suptitle)
r4   r5   rN  rM  r/   r$   r  ylower
yerr_lowerr  s
             r%   test_errorbarr    s    			#q#R]]3A
r
ARWWQZD:D **,C	BKK3SK)LL9: ||!1T:HC	TBKK4SK)LL"# A	TBKK4SK4LL*+	TBKKD!D&>qvEKJLL"#	TBMM%ZZah'FJKKJ$/da  1LL$%KKcLL%& CD
**,C	BKKSs4K8LL9:r'   zmixed_errorbar_polar_caps.pngc                    \         P                  ! 4       p \         P                  ! ^oRR7      p. ROpR.^,          pVP                  W#RRRR7       \        P
                  ^,          R,           \        P
                  R,           .pR	R
.pVP                  WER\        P
                  ,          RRR7       ^\        P
                  ,          ^,          R,           ^\        P
                  ,          ^,          R,           ^\        P
                  ,          R,
          .pR.^,          p. RO. RO.p. RO. RO.p	VP                  WgWRR7       R.p
R.pVP                  W^
RRR7       R# )z
Mix several polar errorbar use cases in a single test figure.

It is advisable to position individual points off the grid. If there are
problems with reproducibility of this test, consider removing grid.
r  r|  r<  ffffff?r   r   rM  rN  r   r   rZ  r  r  r  r[   @@Nr  )r   r   r   )r   r   r   )r  r   r   )r   r  r   )r)   r   ra  rI  rk   r   )r/   r$   th_symr_symth_longr_longth_asymr_asymrM  rN  th_overr_overs               r%   test_mixed_errorbar_polar_capsr  0  s    **,C	SW	-B FE!GEKKDsK< uuQw|RUURZ(G3ZFKKcBEEk#KF wqy2~qwqy2~qws{;GU1WF,'D=)DKKd3K? eGUFKKbrsK;r'   c                     \         P                  ! 4       w  r\        P                  ! ^
4      p^V,          pVP	                  W#RR7      w  p pVP	                  V^V,          RR7      w  p pVP                  V^V,          4      w  p\        P                  ! VP                  4       4      \        P                  ! R4      8X  g   Q h\        P                  ! VP                  4       4      \        P                  ! R4      8X  g   Q h\        P                  ! VP                  4       4      \        P                  ! R4      8X  g   Q hR# )rT  Nr>  r  rL  rM  )	r)   r   rk   rs   rI  r   r  to_rgba	get_color)rK  r$   r4   r5   r  r  r  ln1s           r%   test_errorbar_colorcycler  R  s    LLNEA
		"A	!A{{14{(HB1{{1acT{*HB1771ac?DC??2<<>*good.CCCC??2<<>*good.CCCC??3==?+wt/DDDDr'   c                    \         P                  ! R ^R4      p\        ^4       Uu. uF!  p\         P                  ! V) V,           4      NK#  	  ppV P	                  4       pVP	                  4       p\        V. R	O4       F@  w  rxVP                  W'VR,          RRRR7       VP                  W'VR,          RRVRR7       KB  	  R# u upi )
r   r   r  rC  r   r*  )rN  r   r   r  )rN  r   r   r   r  N)r  rL  rM  r  )rk   rs   r   rR  r   r  rI  )	r"   r#   r4   r  r5   axtaxryir   s	   &&       r%   test_errorbar_cycle_ecolorr  a  s    
		#q#A$Qx(x!1xA(



C



C45	Q"t) 	 	1Q"t)uW 	 	> 6 	)s   'Cc            
      H   \         P                  ! 4       p V P                  4       p\        P                  ! R ^R4      p\        P
                  ! V) 4      pR R\        P                  ! V4      ,          ,           p\        P                  ! V^V,          34      P                  pR V,           p\        P                  ! \        4      ;_uu_ 4        VP                  W#VRR7       RRR4       \        P                  ! \        4      ;_uu_ 4        VP                  W#VRR7       RRR4       \        P                  ! \        4      ;_uu_ 4        VP                  W#WVRR7       RRR4       R#   + '       g   i     L; i  + '       g   i     Ld; i  + '       g   i     R# ; i)r   r   r   r   r  N)rM  r   r  )r)   r   rZ  rk   rs   rR  r  vstackr  r   r   r  rI  )r/   r$   r4   r5   yerr1rN  rM  s          r%   test_errorbar_shaper  p  s   
**,C	B
		#q#A
r
A#bggaj. E99eQuW%&((D:D	z	"	"
At- 
#	z	"	"
At- 
#	z	"	"
AtC8 
#	"	 
#	"	"	"	"	"	"s$   E*E=F*E:	=F	F!	zerrorbar_limits.pngc                  ,   \         P                  ! R RR 4      p \         P                  ! V ) 4      pRpRpRp\        P                  ! 4       w  rVVP                  WW#VRR7       \         P                  ! V 4      pRV. RO&   VP                  WR ,           W#WtRR	7       \         P                  ! V 4      pRV. RO&   VP                  WR
,           W#WRR7       VP                  WR,           R^W#WVRR7
       Rp\         P                  ! V R4      pRV^^.&   Tp	Tp
\         P                  ! V 4      p\         P                  ! V 4      pRV^.&   RV^.&   VP                  WR,           R^W#WVVRR^ RR7       VP                  R4       VP                  R4       R# )r   r4  r   r   dottedr   )rM  rN  r   r   Tr   )rM  rN  uplimsr   r   r   r1  )rM  rN  lolimsr   r   r   r   magenta)r   r  rM  rN  r  r  r   r   r   r  r&  cyan)r   r  rM  rN  xlolimsxuplimsr  r  r   r$  capsizer   zErrorbar upper and lower limitsN)r;   r  rn  )r/  r  r  )r   r4  )
rk   rs   rR  r)   r   rI  
zeros_like	full_liker  r7   )r4   r5   rM  rN  r   r/   r$   r  r  r  r  s              r%   test_errorbar_limitsr    s   
		#sC A
r
ADD	BllnGC KK4rK@ ]]1FF9KKS5tv   ]]1FF9KKS5tv   KKS59  F D<<3DD!QLGG]]1F]]1FFA3KFA3KKKS5&fa   KKLL23r'   c                  <   \         P                  ! ^4      p \         P                  ! ^4      p\        P                  ! W^^RR7      w  r#pVe   Q hV FF  p\         P                  ! VP                  4       \        P                  ! R4      8H  4      '       d   KF  Q h	  R# )r  r&  r  Nr  )rk   rs   r)   rI  r  r  r  r  )r4   r5   plotliner  barlineserrbars         r%   test_errorbar_nonefmtr    sw    
		!A
		!ALLAA6JHvvf&&(GOOD,AABBBB r'   c                     \         P                  ! ^4      p \         P                  ! ^4      p\        P                  ! 4       w  r#VP	                  W^^R7      p\        VP                  4      ^8X  g   Q h\        VP                  4      ^8X  g   Q h\        VP                  4      ^8X  g   Q hVP                  4        VP                  '       d   Q hVP                  '       d   Q hVP                  '       d   Q hR# )r  rL  N)
rk   rs   r)   r   rI  r  
containersr  r  r`  )r4   r5   r/   r$   ecs        r%   test_errorbar_remover    s    
		!A
		!AllnGC	Q	*Br}}"""rxx=Ar~~!###IIK}}}xxx<~~~~r'   c                     \         P                  ! ^4      p \         P                  ! ^4      p\        P                  ! W^^RRRRRRRRR	7      w  p pVP	                  4       R8X  g   Q hVP                  4       R8X  g   Q hR
# )r  Noner  re   z	steps-midroundr  r  bevel)
rM  rN  r   r   r  r  dash_capstyledash_joinstyler  r  N)rk   rs   r)   rI  get_fillstyleget_drawstyle)r4   r5   r  r  s       r%   "test_errorbar_line_specific_kwargsr    s~     			!A
		!A\\!QQ6),,707181729;NHa !!#v---!!#{222r'   c           
      &   VP                  4       pVP                  . RO. RORRRRR7       VP                  . RO. RORRRRRR	7       VP                  . RO. RORR
RRRR7       VP                  ^^4       \        . RO. RO. RO. ROR7      p\        P
                  ! RVR7       V P                  4       pVP                  . RO. RORR7       VP                  . RO. RORRR7       VP                  . RO. RORR
R7       VP                  ^^4       R# )r/  r   rD  r  r6  )r4   r5   rN  r   r   r  z	tab:greenr  r5   )r4   r5   rN  r   r   r   r  ztab:bluer  r   r>   )r4   r5   rN  r   r   r   r  )r   r   r  r   r_  )
prop_cycler4   r5   rN  )r4   r5   rN  r   )r4   r5   rN  r   N)r/  r  rT  rD  r/  r  r  r  r  r  )rD  r  r  )r  r  r   )r6  r5   r>   r  r  rF  )r   rI  r  r
   r)   rc)r"   r#   r$   _cycles   &&  r%   test_errorbar_with_prop_cycler    s    				BKK*	  .KK*	;s  -KK*	  .KK2('@FFF6f%				BKK*	K4KK*	;KGKK*	KDKK2r'   c            	      T   \         P                  ! ^ ^^4      p V ^V ,
          ,          pV^,          p\        P                  ! 4       P	                  4       p\
        P                  ! \        RR7      ;_uu_ 4        VP                  WVR
R7       RRR4       \
        P                  ! \        RR7      ;_uu_ 4        VP                  WVRR7       RRR4       \
        P                  ! \        RR7      ;_uu_ 4        VP                  WVRR.R7       RRR4       \
        P                  ! \        RR7      ;_uu_ 4        VP                  WVR	R7       RRR4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     Ly; i  + '       g   i     R# ; i)r   znot a tuple of two integersrh  )
erroreveryNznot a valid NumPy fancy indexFTznot a recognized valuefoobarr  )r  r  )	rk   r   r)   r   r   r   r   r  rI  )r4   r5   rN  r$   s       r%   test_errorbar_every_invalidr    s   
Aq"A	QqS	AQ3D				 B	z)F	G	G
A$95 
H	z)F	G	G
A$84 
H	z)H	I	I
A$E4=9 
J	z)A	B	B
A$84 
C	B 
H	G	G	G	I	I	B	B	Bs0   9E:E0;F>FE-	0F 	F	F'	c                     \         P                  ! 4       P                  4       p \        P                  ! \
        R R7      ;_uu_ 4        V P                  ^ .^ .R	.^..R	.^..R7       RRR4       \        P                  ! \
        R R7      ;_uu_ 4        V P                  ^ .^ .R	.^..R7       RRR4       \        P                  ! \
        RR7      ;_uu_ 4        V P                  ^ .^ .R	.^..R7       RRR4       \        P                  ! \
        RR7      ;_uu_ 4        \        P                  ! ^4      pV Uu. uF)  p\        P                  ! R^	V^,          ^,           4      NK+  	  ppV P                  VV\        P                  ! R
R7      R7       RRR4       R#   + '       g   i     ELB; i  + '       g   i     EL; i  + '       g   i     L; iu upi   + '       g   i     R# ; i)z''xerr' must not contain negative valuesrh  r4   r5   rM  rN  NrU  z''yerr' must not contain negative valuesr  r}  r  r  r  )r)   r   r   r   r   r  rI  rk   rs   r5  r  )r$   r4   r:  r5   s       r%   test_xerr_yerr_not_negativer    s   				 B	zF
H 
H
qcaS}TFQC=I
H 
zF
H 
H
qcaS}5
H 
zF
H 
H
qcaS}5
H 
zF
H 
HIIaL<=>AqXtQA	2A>
a!++5 	 	7	
H 
H
H 
H 
H
H 
H 
H
H 
H ?
H 
H 
HsB    F!F5G	"G!=/G,+G!!F2	5G		G	G!!G2	c            	      t   \         P                  ! 4       P                  4       p \        P                  ! \
        R R7      ;_uu_ 4        V P                  ^ .^ .R.^..R.^..R7       RRR4       \        P                  ! \
        R R7      ;_uu_ 4        V P                  ^ .^ .R.^..R7       RRR4       \        P                  ! \
        RR7      ;_uu_ 4        V P                  ^ .^ .R.^..R7       RRR4       R#   + '       g   i     L; i  + '       g   i     Ll; i  + '       g   i     R# ; i)z'xerr' must not contain Nonerh  Nr  rU  z'yerr' must not contain Noner  )r)   r   r   r   r   r  rI  r  s    r%   test_xerr_yerr_not_noner    s    				 B	z;
= 
=
qcaS}TFQC=I
= 
z;
= 
=
qcaS}5
= 
z;
= 
=
qcaS}5
= 
=
= 
=
= 
=
= 
= 
=s$    D DD& D	D#	&D7	c                    \         P                  ! ^ ^^4      pV^V,
          ,          pV^,          pVP                  4       pV P                  4       p\        R. RO4       Fk  w  rxVR,          pVP	                  W#WH^3^VR7       VP                  W#VRR7       VP	                  W(R^1,          W8R^1,          WHR^1,          ^VRR7       Km  	  VP	                  W#R	,           VR^R
R7       VP                  VR,          VR,          R	,           R
RR7       VP	                  W#R	,           V^RR7       VP	                  W#R,           V\        ^R^4      \        ^R^4      ^RR
R7       VP                  VR,          VR,          R,           R
RRR7       VP	                  VR,          VR,          R,           VR,          ^RRR7       VP	                  W#R,           V. RO^,          . RO^,          ^RR
R7       VP                  VR,          VR,          R,           R
RRR7       VP	                  VR,          VR,          R,           VR,          ^RRR7       R# )r   rgbkr  )r  r  r>   r  )r>   rs  Nr&  )r  r>   r   r   r   )r  r  r   :r;   Nr  r  )r  r   r   r  )r  r  r  r>   r   :r/  Nr  rL  :r;   Nr  )r   r   r/  r`  )r;   r  r  )rk   r   r   r  rI  r   r	  )	r"   r#   r4   r5   rN  ry   rx   r   shifts	   &&       r%   test_errorbar_everyr  (  s8   
Aq"A	QqS	AQ3DF!GFL1	S 	t
!"e 	 	-
 	AE#.((Qxax[$xax. !U 	 	8 2 QCL
KK$43CK8
OOA3waVO< QC%42C$Qa0$C  1 KK$43tCK@
OOAdGQtWs]DJ6  3 QC2F2J3a7$C  1 KK$43tCK@
OOAdGQtWs]DJ6  3r'   
elinewidthc                 F    \         P                  ! . RO. RO. ROV R7       R# )r;   )rN  r  Nr  )r)   rI  )r  s   &r%   test_errorbar_linewidth_typer  T  s     LLII*Mr'   c                    V P                  4       p\        ^4      p\        P                  ! ^^\        P                  \        P                  ^.4      p\        P                  ! ^^\        P                  \        P                  ^.4      pVP                  W4VR7       VP                  4       pVP                  ^ ^.^^.^^.R7       VP                  ^.^.^.RR7       R# )r  rN  r  r  N)r   r   rk   rF  r  rI  )r"   r#   r$   xsysess   &&    r%   test_errorbar_nanr  [  s    				B	qB	1a+	,B	1a+	,BKKRK 				BKKAAaVK,KKaSsK-r'   c                    V P                  4       p\        ^4      p\        P                  ! . RO4      p\        P                  P                  . ROVR7      p\        P                  P                  . ROVR7      pVP                  W5VR7       VP                  4       pVP                  ^ ^.^^.^^.R7       VP                  ^.^.^.RR7       R# )	r  r  r  r  r  N)FFTTF)r;   r/  r/  r/  r  )r  r  r   r  r  )r   r   rk   rF  r	   rI  )r"   r#   r$   r  r  r  r  s   &&     r%   test_errorbar_masked_negativer  g  s    				B	qB8856D	_4	0B	'd	3BKKRK 				BKKAAaVK,KKaSsK-r'   zhist_stacked_stepfilled.pngc                      \         P                  ! ^^^4      p \         P                  ! ^ ^
^24      p\        P                  ! 4       w  r#VP	                  W3RRR7       RW3/p\        P                  ! 4       w  r#VP	                  RRRVR7       R# )r;   r  Tr  r  r4   )r  r  r  Nrk   r   r)   r   r  )d1d2r/   r$   r  s        r%   test_hist_stacked_stepfilledr  t  sw     
Q2	B	QB	BllnGCGGRH|TG: "?DllnGCGGC,4G@r'   zhist_offset.pngc                      \         P                  ! ^ ^
^24      p \         P                  ! ^^^4      p\        P                  ! 4       w  r#VP	                  V ^R7       VP	                  V^R7       R# )r   r  Nr  r  r  r/   r$   s       r%   test_hist_offsetr    sU     
QB	B	Q2	BllnGCGGBqGGGBrGr'   zhist_step.pngc                      \         P                  ! ^^^4      p \        P                  ! 4       w  rVP	                  V RR7       VP                  ^ ^
4       VP                  R^4       R# )r;   r  r  Nr   )rk   r   r)   r   r  r  r  r  r/   r$   s      r%   test_hist_stepr    sO     
Q2	BllnGCGGBG KK2KKAr'   zhist_step_horiz.pngc                      \         P                  ! ^ ^
^24      p \         P                  ! ^^^4      p\        P                  ! 4       w  r#VP	                  W3RRR7       R# )r   r  rS   )r  rU   Nr  r  s       r%   test_hist_step_horizr    sI     
QB	B	Q2	BllnGCGGRHv<G@r'   zhist_stacked_weights.pngc                  "   \         P                  ! ^ ^
^24      p \         P                  ! ^^^4      p\         P                  ! RR^24      p\         P                  ! RR^4      p\        P                  ! 4       w  rEVP	                  W3W#3RRR7       R# )	r   r  r  r  r   r  T)weightsr  r  Nr  )r  r  w1w2r/   r$   s         r%   test_hist_stacked_weightedr    sq     
QB	B	Q2	B	T3	#B	T2r	"BllnGCGGRHrhtGLr'   zstem.pngc            	         \         P                  ! R ^\         P                  ,          ^d4      p \        P                  ! 4       w  rVP                  V \         P                  ! V 4      RRRRR7       VP                  4        R# )r   C2-.zk+C1-. )linefmt	markerfmtbasefmtr2   N)rk   r   r   r)   r   r  r]  rJ   r%  s      r%   	test_stemr
    s[    
CRUUC(AllnGC GGArvvaydF#  GIIKr'   c            	     "   R p \         P                  ! 4       w  r. ROp. R	OpV ! VP                  V4      . R
OV3R7       V ! VP                  W44      W43R7       V ! VP                  W4RR7      W43R7       V ! VP                  W4R4      W43R7       V ! VP                  W4RRR7      W43R7       V ! VP                  VRR7      . R
OV3R7       V ! VP                  VR4      . R
OV3R7       \        P                  ! \
        4      ;_uu_ 4        VP                  V..4       RRR4       \        P                  ! \
        4      ;_uu_ 4        VP                  V..V4       RRR4       R#   + '       g   i     LQ; i  + '       g   i     R# ; i)z5Test that stem() correctly identifies x and y values.c                     \        \        V P                  P                  4       4      w  r#W!^ ,          8X  g   Q hW1^,          8X  g   Q hR# r-  )mapr  
markerliner%  )stem_containerexpectedr4   r5   s   &&  r%   _assert_equal%test_stem_args.<locals>._assert_equal  s?    422;;=>QKQKr'   )r  rA  r  zb--)r  r	  Nr;   r  r  rn  r  r`  rD  )r)   r   r  r   r   r  r  r/   r$   r4   r5   s        r%   test_stem_argsr    s*    
 llnGCAA "''!*	1~6"''!-1&1"''!'.!@"''!&!8"''!u'=O"''!U'+y!nE"''!U#y!n=	z	"	"
! 
#	z	"	"
!q 
#	" 
#	"	"	"	"s   E*E=*E:	=F	c            	     @   RR lp \         P                  ! 4       w  r. ROp. ROpV ! VP                  W44      RRR7       V ! VP                  W4RR7      RRR7       V ! VP                  W4RR7      R	RR7       V ! VP                  W4R	4      R	R	RR
7       V ! VP                  W4R4      R	R	RR
7       V ! VP                  W4R	RR7      R	R	RR
7       V ! VP                  W4R	RR7      R	RRR
7       V ! VP                  W4R	RR7      R	RRR
7       V ! VP                  W4R	RR7      R	R	RR
7       V ! VP                  W4R	RR7      R	R	RR
7       V ! VP                  W4R	R7      R	R	RR
7       V ! VP                  W4R	RR7      R	R	RR
7       V ! VP                  W4R	RR7      R	RRR
7       R# )zATest that stem(..., markerfmt=...) produces the intended markers.Nc                ~   Ve8   \         P                  ! V P                  P                  4       V4      '       g   Q hVe8   \         P                  ! V P                  P                  4       V4      '       g   Q hVe"   V P                  P                  4       V8X  g   Q hV P                  P                  4       R8X  g   Q hR# )zT
Check that the given StemContainer has the properties listed as
keyword-arguments.
Nr  )r  r  	stemlinesr  r  r!  get_linestyle)r  	linecolormarkercolorr   s   &&&&r%   r  *test_stem_markerfmt.<locals>._assert_equal  s      %%((224    "%%))335    !,,779VCCC((668FBBBr'   r  r   )r  r   r4   )r  r  rF  )r  r  r   r  gxr  r  r   r  )r  r  )NNNr  r  )r)   r   r  r  s        r%   test_stem_markerfmtr     s   C$ llnGCAA "''!-T#>"''!#'.DM"''!$'/SM 
c3s4 
d3s4 
cS)3s4 
cS)3s4 
cT*3s4 
cS)3v7 
cR(3v7
 
c"3s4 
cS13s4 
cT23s4r'   c                      \         P                  ! ^^4      w  r\        P                  P	                  R4      \        P                  P	                  R4      .p^d^.pVP                  W#4       R# )r;   z2013-9-28 11:00:00z2013-9-28 12:00:00N)r)   r   dateutilparserparser  )r/   r$   r  r  s       r%   test_stem_datesr%    sU    ll1a GC
//

 4
5
//

 4
5
7B
sBGGBOr'   zstem_orientation.pngc            	          \         P                  ! R ^\         P                  ,          ^24      p \        P                  ! 4       w  rVP                  V \         P                  ! V 4      RRRRR7       R# )r   r  kxr  rS   )r  r  r	  rU   N)rk   r   r   r)   r   r  r]  r%  s      r%   test_stem_orientationr(    sP    
C255"%AllnGCGGArvvaydF$  &r'   z!hist_stacked_stepfilled_alpha.pngc                      \         P                  ! ^^^4      p \         P                  ! ^ ^
^24      p\        P                  ! 4       w  r#VP	                  W3RRRR7       R# )r;   r  Tr   )r  r  r  Nr  r  s       r%   "test_hist_stacked_stepfilled_alphar*  $  sK     
Q2	B	QB	BllnGCGGRH|TGEr'   zhist_stacked_step.pngc                      \         P                  ! ^^^4      p \         P                  ! ^ ^
^24      p\        P                  ! 4       w  r#VP	                  W3RRR7       R# )r;   r  Tr  Nr  r  s       r%   test_hist_stacked_stepr,  -  sI     
Q2	B	QB	BllnGCGGRHvtG4r'   zhist_stacked_normed.pngc                      \         P                  ! ^^^4      p \         P                  ! ^ ^
^24      p\        P                  ! 4       w  r#VP	                  W3RRR7       R# )r;   T)r  r  Nr  r  s       r%   test_hist_stacked_densityr.  6  sI     
Q2	B	QB	BllnGCGGRHdDG1r'   zhist_step_bottom.pngc                      \         P                  ! ^^^4      p \        P                  ! 4       w  rVP	                  V \         P
                  ! ^
4      RR7       R# )r;   r  )rQ   r  N)rk   r   r)   r   r  rs   r  s      r%   test_hist_step_bottomr0  ?  s=     
Q2	BllnGCGGBryy}|G<r'   c            	      
   . ROp . ROp^ ^ .^ ^.^^.^^.^^.^^.^^.^^ ..p^^ .^^ .^^ .^^ .^ ^ ..pRV3RW#,           33 F=  w  rE\         P                  ! WVR7      w   pw  p\        VP                  4       V4       K?  	  R# )r   r  r  )r  r  Nr   r;   r/  r  r   r   r;   r;   r;   r/  r)   r  r   get_xyr  r  r@   rQ   r  r  r  polygons           r%   test_hist_step_geometryr8  G  s    DDq6Aq6Aq6Aq6Aq6Aq6Aq6Aq6
JC!fq!fq!fq!fq!f5F #s|(DEHHTxH1kw7>>+R0 Fr'   c            	         . ROp . ROp^ ^.^ ^.^^.^^.^^.^R.^R.^R..p^R.^^.^^.^^.^ ^..pRV3RW#,           33 F@  w  rE\         P                  ! W. R	OVR7      w   pw  p\        VP                  4       V4       KB  	  R# )
r   r2  r   r  r  )r  rQ   r  Nr2  r3  r;   r/  r   r4  r6  s           r%   test_hist_step_bottom_geometryr;  R  s    DDq6Aq6Aq6Aq6Aq6As8aX3x
PC#hAAAA7F #s|(DEHHT[.681kw7>>+R0 Fr'   c            
      P   . ROp . ROp. ROp^ ^ .^ ^.^^.^^.^^.^^.^^.^^ ..^ ^.^ ^.^^.^^.^^.^^.^^.^^...p^^ .^^ .^^ .^^ .^ ^ ..^^.^^.^^.^^.^ ^...p\        W44       UUu. uF  w  rVWV,           NK  	  pppRV3RV33 F  w  r\        P                  ! W.V RVR7      w   r\        V4      ^8X  g   Q hV^ ,          w  p\	        VP                  4       V	^ ,          4       V^,          w  p\	        VP                  4       V	^,          4       K  	  R# u uppi )	r   r  r  T)r  r  r  Nr2  r3  rD  r  r)   r  r  r   r5  r  data_1data_2topsbottomsr  r  combinedr  r  r  r3  r7  s                r%   test_hist_stacked_step_geometryrD  ^  s   DFF
Q!Q!Q!Q!Q!Q!Q!QH
Q!Q!Q!Q!Q!Q!Q!QHD
 Q!Q!Q!Q!Q0
Q!Q!Q!Q!Q0G #&d"45"4$!"4H5 $,)AB&!1d*2417|q   1:7>>+RU31:7>>+RU3 C 6s   1D"c            
      V   . R	Op . R
Op. ROp^ ^.^ ^.^^.^^.^^.^R.^R.^R..^ ^.^ ^.^^.^^.^^.^R.^R.^R...p^R.^^.^^.^^.^ ^..^R.^^.^^.^^.^ ^...p\        W44       UUu. uF  w  rVWV,           NK  	  pppRV3RV33 F  w  r\        P                  ! W.V R. ROVR7      w   r\        V4      ^8X  g   Q hV^ ,          w  p\	        VP                  4       V	^ ,          4       V^,          w  p\	        VP                  4       V	^,          4       K  	  R# u uppi )r   r2  r   r  r  r  T)r  r  rQ   r  Nr2  r3  rD  r:  r=  r>  s                r%   &test_hist_stacked_step_bottom_geometryrF  v  s   DFF
Q!Q!Q!Q!Q!SAs8aXN
Q!Q!Q!Q!Q!SAs8aXND
 SAq6Aq6Aq6Aq62
SAq6Aq6Aq6Aq62G #&d"45"4$!"4H5 $,)AB&!1d(3hH17|q   1:7>>+RU31:7>>+RU3 C 6s   1D%zhist_stacked_bar.pngc            	          . RO. RO. R	O. R
O. RO. RO.p . ROp. ROp\         P                  ! 4       w  r4VP                  V ^
RRVVR7       VP                  RR^R7       R# )rY  r  mid)r  r  r)  r   r2   zupper right)rB   bbox_to_anchorr  N)rY  rY  rY  rY  r  @  i  P   r  r:  6  r9  )r     rI     rY  i  )x   rO  rO     rP  r     )r  r  r  r  r  r  r  r  r  r  rT  r  )+  rR  rR  r  r  r  r  r  rY  rY  rY  rY  r  r  )r  r  r  r  r  r  r  r  r  r  r  r  ))gXxn?r   r  )r  r   g `p?)r  r   gǟ?)r  gˢ`?r   )gC?r  r   )gK?r  r   )r   r  z yellowr  r*  )r   r   )r)   r   r  rJ   )r  r  rb  r/   r$   s        r%   test_hist_stacked_barrS    sl     
D	#%H	8	H	A		CA
OF @FllnGCGGABU&  II-
!IDr'   r  r*  r+  r.  r   r,  r   c           
      @   \         P                  P                  R 4       R Uu. uF"  p\         P                  P                  V4      NK$  	  ppV P	                  ^4      w  rVVP	                  ^4      w  rxRWW3RWh33 F  w  rpV
P
                  ! V3R^
RV	/VB w  rp\        \        VP                  4       4      4      w  r\        \        WO4      4       F=  w  pw  ppVP
                  ! V3RVRV	/VV/BR\        V4      V,
          ^,          /B  K?  	  K  	  R# u upi )ra   r  r  r  r  rs  N)r  rI  rY  )rk   rl   rm   r  r   r  nextiteritemsr  r  r  )r"   r#   r  r  r  axt1axt2axr1axr2r  r  r  r  r  kwr!  r:  r4   r;  s   &&&                r%   test_hist_vectorized_paramsr]    s    IINN8&3	4m"))//!
mB	4$$Q'LT##A&LT ,d9FD;OPsXXbGrGHGG
$v||~./
&s27MAz5HHQ +T +H +U + WQYM+ 8	 Q 
5s   (Dc                     Rp . ROpRp\         P                  P                  ^2R7      p\        P                  ! W0VVR7      w   rE\
        P                  ! V^ ,          P                  4       V 4      '       g   Q h\
        P                  ! V^ ,          P                  4       V4      '       g   Q hV^ ,          P                  4       V8X  g   Q hR# )rF  r  )r*  r+  r   N)rF  r   r   r   r   )r   ru  )
rk   rl   uniformr)   r  r  r  rP  rQ  r  )r*  r+  r   arrr  r  s         r%   test_hist_sequence_type_stylesrb    s    III
))



$C#i$-/JAqd1g335yAAAAd1g335yAAAA7  "i///r'   c                     \         P                  P                  ^2R7      p \        P                  ! V RRR7      w   rV^ ,          P                  4       '       g   Q R4       hV^ ,          P                  4       '       g   Q R4       hR# )rI  r  r&  )r*  r+  NrM  )rk   rl   r`  r)   r  rP  rQ  )ra  r  r  s      r%   test_hist_color_nonerd    sk    
))



$C#6BJAq7  ""0L0"7  ""0L0"r'   zkwargs, patch_face, patch_edger  r6  r  c                   aa \         P                  ! 4       P                  4       P                  ! . RO3/ V B w   r4\        ;QJ d     VV3R lV 4       F  '       d   K   RM	  RM! VV3R lV 4       4      '       g   Q hR# )r;   c              3      <"   T F<  p\         P                  ! VP                  4       VP                  4       .SS.4      x  K>  	  R # 5ir  )r  r  rP  rQ  )r  r   
patch_edge
patch_faces   & r%   r  ,test_hist_color_semantics.<locals>.<genexpr>  sF      NEL !!1??#4aoo6G"H#-z":< <ELs   AAFTNr  )r)   r   r   r  r  )r  rh  rg  r  r3  s   &ff  r%   test_hist_color_semanticsrj    sn    < JJL))+00EfEMAq3 NELN333 NELN N N N Nr'   c                      \         P                  ! ^
^.4      p \        P                  ! ^ ^.^ ^..^RV R7       V P	                  4       ^
^.8X  g   Q hR# )rT  r  )r  rQ   N)rk   rF  r)   r  tolistr  s    r%   %test_hist_barstacked_bottom_unchangedrm    sK    
"bAHHq!fq!fq<B88:"b!!!r'   c                      \         P                  ! 4       w  rVP                  . \        ^
4      \        ^
4      .RR7       R# )rT  r  r  N)r)   r   r  r   r.   s     r%   test_hist_emptydataro    s.    llnGCGGRrE"I&G8r'   c                      \         P                  ! 4       w  rVP                  . RO.. ROR7       VP                  4       w  r#VR.8X  g   Q hR# )r;   r!  r  Nr  )r!  unusedzalso unused)r)   r   r  get_legend_handles_labels)r/   r$   r  rb  s       r%   test_hist_unused_labelsrs    sD     llnGCGGYKBGC,,.IAhZr'   c                  R   \         P                  ! 4       w  rVP                  ^ ^.^ R7      w   r#V^ ,          P                  4       R8X  g   Q hVP                  ^ ^.^ .R7      w   r#V^ ,          P                  4       R8X  g   Q hVP                  ^ ^.RR7      w   r#V^ ,          P                  4       R8X  g   Q hVP                  ^ ^.RR7      w   r#V^ ,          P                  4       R8X  g   Q hVP                  ^ ^.RR7      w   r#V^ ,          P                  4       R8X  g   Q hR# )r   r  r  Nr  00)r)   r   r  r  )r/   r$   r  r  s       r%   test_hist_labelsrv    s   llnGC!Qq)JAq7#%%%!Qs+JAq7#%%%!Qt,JAq7,...!Qs+JAq7#%%%!Qt,JAq7$&&&r'   transparent_markersc                      \         P                  P                  ^ 4       \         P                  P                  ^24      p \        P                  ! 4       w  rVP                  V RR^dR7       R# )r   rW  r&  )r  r   Nrk   rl   rm   r)   r   r   r  s      r%   test_transparent_markersrz    sG    IINN199BDllnGCGGD#6cG2r'   rgba_markersc                     \         P                  ! ^R7      w  rR
R.pRR.pRR.p\        ^d^R7      p\        V4       F  w  rg\        V4       Fu  w  r\        V4       Fa  w  rW,          P                  ! V^,           V
^,           R3RVRV	RV/VB  W,          P                  ! V^,           V
^,           R	3RV	RV/VB  Kc  	  Kw  	  K  	  V F  pVP                  . RO4       K  	  R# )r/  r  Nr   )r  r#  r   r  r$  r  r4   r  r  rE  )r   r   r;   r   )r   r  r   r  )r)   r   r  r  r   r  )r/   r  rcolorsbcolorsalphasr\  r:  r  rS  rcolorr6  bcolorr$   s                r%   test_rgba_markersr    s    ||!$HC^,G^,GC[F	"	Bf%"7+IA&w/	AaC1c /v /6 /"'/+-/AaC1cIvIUIbI 0 , & 
 r'   zmollweide_grid.pngc                  t    \         P                  ! 4       p V P                  R R7      pVP                  4        R# )	mollweider|  N)r)   r   r   r  r.   s     r%   test_mollweide_gridr  ,  s(     **,C	K	0BGGIr'   c                     \         P                  ! 4       p V P                  R R7      p\        P                  ! \        P
                  ) \        P
                  R4      p\        P                  ! \        P
                  ) R,          \        P
                  R,          ^4      ^R p\        P                  ! W#4      w  r#\        P                  ! VP                  4       VP                  4       34      P                  pVP                  P                  V4      pVP                  P                  4       P                  V4      p\        P                  P                  WF^4       R# )r  r|  r  r   Nr   )r)   r   r   rk   r   r   r  r  r  r  transProjectionr)  invertedr   r   )r/   r$   lonlatllr  ll2s          r%   &test_mollweide_forward_inverse_closurer  5  s     **,C	K	0B ++ruufbeeS
)C
++ruufslBEECK
5a
;C{{3$HC	CKKM3;;=1	2	4	4B 
			%	%b	)B 


%
%
'
1
1"
5C JJ((!4r'   c                     \         P                  ! 4       p V P                  R R7      p\        P                  ! ^ ^R4      p\        P
                  ! W"4      w  r#\        P                  ! VP                  4       VP                  4       34      P                  pVP                  P                  4       P                  V4      pVP                  P                  V4      p\        P                  P                  WF^4       R# )r  r|  r  N)r)   r   r   rk   r   r  r  r  r  r  r  r)  r   r   )r/   r$   r4   r5   r  r  xy2s          r%   &test_mollweide_inverse_forward_closurer  L  s     **,C	K	0B 	Aq#A;;qDA	AIIK-	.	0	0B 
			$	$	&	0	0	4B 


&
&r
*C JJ((!4r'   
test_alphac            
         \         P                  P                  ^ 4       \         P                  P                  ^24      p \        P                  ! 4       w  rVP                  V R. RO. RO^^
R7       VP                  V ^,           R. RO. RO^^
^R7       VP                  V ^,           R. RO. RO^^
RR7       VP                  V ^,           R. RO. RO^^
R7       VP                  V ^,           R. RO. RO^^
R7       R# )r   z-Dr   )r   r  r   r@  )r   r  r   r@  r  Nr  r  ry  r  s      r%   r  r  a  s    IINN199BDllnGC GGD$i]b  " GGD1Hd-]b  
 GGD1Hd)b  
 GGD1Hd-]b  " GGD1Hd-Yb  "r'   zeventplot.pngc                     \         P                  P                  ^ 4       \         P                  P                  ^ ^.4      P                  4       p \         P                  P                  ^^.4      P                  4       pW,           p\	        V4      p. R	O.\	        V 4      ,          p. R
O. RO. RO. RO. RO. RO.pWE,           p^\         P
                  ! ^ \	        V 4      4      R,          ,           p. ROpVP                  4       V,           p	R.\	        V 4      ,          p
. ROpW,           p\        P                  ! 4       pVP                  4       pVP                  W&V	VR7      p\	        V4      pVV8X  g   Q hRVRVRV	RV/p\        P                  ! 4       pVP                  4       pVP                  RRRRVR7      p\	        V4      pVV8X  g   Q hR# )r   Q?)r  lineoffsetslinelengthsr   r>   lor  )r  r  r  r  N)r   r;   r  r  r  r  )r;   rU  r   )r;   r   r;   )r   r;   r;   )ir  r;   r   r  rT  )r  r/  r;   r;   r  r   )
rk   rl   rm   rl  r  rs   r)   r   r   	eventplot)rf  data2r  num_datasetscolors1colors2r  lineoffsets1lineoffsets2r  linelengths1linelengths2r  r/   axobjcollsnum_collectionss                    r%   test_eventplotr    s   IINN1IIb"X&--/EIIaW%,,.E=Dt9LlSZ'GG F		!SZ0366L+L%%',6K53u:%L'L-K
**,COOEOOD[(3  5E %jOl*** 4fdK{KD
**,COOEOOE#4(,4  9E%jOl***r'   ztest_eventplot_defaults.pngc                 |   \         P                  P                  ^ 4       \         P                  P                  ^ ^.4      P                  4       p \         P                  P                  ^^.4      P                  4       pW,           p\        P
                  ! 4       pVP                  4       pVP                  V4       R# )zZ
test that eventplot produces the correct output given the default params
(see bug #3728)
N)rk   rl   rm   rl  r)   r   r   r  )rf  r  r  r/   r  s        r%   test_eventplot_defaultsr    s     IINN1IIb"X&--/EIIaW%,,.E=D
**,COOE	OODr'   r  c                   ^ .^.^.^..pV  Uu. uF
  q"e   TMRNK  	  pp\        V4      ^8X  d
   V^ ,          p\        P                  ! \        P                  ! V4      \        V4      ^34      p\
        P                  ! 4       w  rE\        V 4      ^8X  d
   V ^ ,          p VP                  WR7      p\        Wc4       F  w  rx\        VP                  4       V4       K!  	  R# u upi )zBTest the *colors* parameter of eventplot. Inspired by issue #8193.Nr  r  )r  rk   r  r  to_rgba_arrayr)   r   r  r  r   r  )	r  r  r>   r  r/   r$   r  r  r   s	   &        r%   test_eventplot_colorsr    s     C!qcA3D 7==f],fH= 8}A;w44X>TAOHllnGC
6{a,,t,3K;1(%0 2 >s   C"c                     \         P                  ! 4       w  rVP                  . RO. RO.RR7      pV^ ,          P                  4       R8X  g   Q hV^,          P                  4       R8X  g   Q hVP                  . RO. RO.RR.R7      pV^ ,          P                  4       R8X  g   Q hV^,          P                  4       R8X  g   Q h\        P
                  ! \        RR7      ;_uu_ 4        VP                  . RO. RO.. R	OR7       RRR4       \        P
                  ! \        RR7      ;_uu_ 4        VP                  . RORR.R7       RRR4       R#   + '       g   i     LV; i  + '       g   i     R# ; i)
r   r  r  r   zalpha and positions are unequalrh  N)r   r/  r  )r;   r  r  r`  )r   r  r<  )r)   r   r  	get_alphar   r   r  )r/   r$   r  s      r%   test_eventplot_alphar    s&   llnGC ,,	<8,DKq>##%,,,q>##%,,, ,,	<8c
,KKq>##%,,,q>##%,,,	z)J	K	K
i.oF 
L 
z)J	K	K
YsCj1 
L	K 
L	K 
L	K	Ks   (E0E%E"	%E6	z!test_eventplot_problem_kwargs.pngc           
     0   \         P                  P                  ^ 4       \         P                  P                  ^.4      P                  4       p\         P                  P                  ^
.4      P                  4       pW.p\        P
                  ! 4       pVP                  4       pVP                  VRR.RR.^^.^^.RR.RR.R	7       \        V 4      ^8X  g   Q h\        ;QJ d    R
 V  4       F  '       d   K   RM	  RM! R
 V  4       4      '       g   Q hR# )z
test that 'singular' versions of LineCollection props raise an
MatplotlibDeprecationWarning rather than overriding the 'plural' versions
(e.g., to prevent 'color' from overriding 'colors', see issue #4297)
rF  r  r>   r  r   dasheddashdotr  )r  r   r  r,  r]  r   c              3   j   "   T F)  p\        VP                  \        P                  4      x  K+  	  R # 5ir  )
issubclasscategoryr   rc  )r  wis   & r%   r  0test_eventplot_problem_kwargs.<locals>.<genexpr>  s+      " 2 "++s'G'GHH s   13FTN)
rk   rl   rm   rl  r)   r   r   r  r  r  )recwarnrf  r  r  r/   r  s   &     r%   test_eventplot_problem_kwargsr    s     IINN1IIbT"))+EIIbT"))+E>D
**,COOE	OOD:* !1v !f '2((3  5 w<13 " "333 " " " " " "r'   c                      \         P                  ! ^^4      w  rVP                  . .R.R7       \         P                  ! 4        R# )r;   r  N)r  r  r  r  r)   r   r  r  r.   s     r%   test_empty_eventplotr    s3    ll1a GCLL"34L5HHJr'   r  rU   c                    Vf   / MRV/p\         P                  ! ^^4      w  r4VP                  ! V 3/ VB  \         P                  ! 4        R# )z#Introduced when fixing issue #6412.NrU   r  )r  rU   optsr/   r$   s   &&   r%   test_eventplot_orientationr    sA     $2=+*FDll1a GCLLHHJr'   c                    \         P                   ! R ^^4      \         P                   ! R ^^4      \         P                   ! R ^^4      .p\         P                   ! R ^^4      \         P                   ! R ^^4      .pVP                  4       pVP                  V^ R7       VP                  V^R7       V P                  4       pVP                  W#.4       R# )r}  )r  N)r5  r   r  )r"   r#   ts_1ts_2r$   s   &&   r%   test_eventplot_units_listr    s     dAq)8+<+<T1a+HdAq)+DdAr*H,=,=dAr,JKD				BLL1L%LL1L%				BLL$r'   zmarker_styles.pngc            
         \         P                  ! 4       w  r\        \        P                  P
                  P                  R  R7      pVP                  R4       R.VOp\        V4       F|  w  r4VP                  V^,          ^,          \        P                  ! ^
4      ^
,          ,           \        P                  ! ^
4      ^
,          V,          RV^
V^,          ,           VR7       K~  	  R# )c                 J    \        \        V 4      4      \        V 4      ,           # r  )r  r)  r4   s   &r%   r  $test_marker_styles.<locals>.<lambda>.  s    3tAw<A#6r'   )r*  r&  r   )r   r   r   r2   N)r)   r   sortedrX   markersr  r`  r  r   rk   rs   r   )r/   r$   r  r5   r   s        r%   test_marker_stylesr  &  s    llnGC
 Z''33;;68GNN6  Gw'	
Q	BIIbM",,bggbk"nQ.>""QqS& 	 	@ (r'   zrc_markerfill.pnggl?c                      \         P                  ! 4       w  r\        P                  ! ^4      p\	        . RO4       F4  w  pw  rEV\
        P                  R&   VP                  W#,           VR7       K6  	  R# )r`  zmarkers.fillstylerB  N))r@   r  )rQ   r   )r&  r  )r)   r   rk   rs   r  rX   r   r   )r/   r$   r4   idxr   r   s         r%   test_markers_fillstyle_rcparamsr  6  sZ     llnGC
		!A ):!<_e38
/0
f%!<r'   zvertex_markers.pngc                     \        \        ^
4      4      p Rp. ROp\        P                  ! 4       w  r4VP	                  V RVRR7       VP	                  V RRR1,          RVRR7       VP                  R^
.4       VP                  R^
.4       R# )rT  r   r6  r  Nr  r   ))r   r   rj  ru  rk  )r  r   r)   r   r   r  r  )r  marker_as_tuplemarker_as_listr/   r$   s        r%   test_vertex_markersr  A  sv    b	?D:O9NllnGCGGDBCG@GGD2J"^GEKKRKKRr'   zvline_hline_zorder.pngzerrorbar_zorder.pngg9v?c            	         \        \        ^
4      4      p \        P                  ! 4       pVP	                  4       pVP                  V ^
^R7       VP                  ^R^
^R7       VP                  ^R^
^
R7       VP                  ^R^
^R7       VP                  ^R^
^R7       VP                  R4       \        P                  ! 4       pVP	                  4       p\        \        ^
4      4      p \        P                  ! ^
4      p\        \        ^
4      4      pVP                  WV^^RR	7       \        ^
4       F.  pVP                  V^RVR
7       VP                  V) ^RVR
7       K0  	  VP                  R4       R# )rT  )r@  rs  r1  )r   r@  rs  r   r  r6  zaxvline and axhline zorder testrF  )rN  rs  r@  r   )r@  r   rs  zerrorbar zorder testN)r  r   r)   r   rZ  r   ru   axvliner7   rk   r  rI  )r4   r/   r$   r5   rN  rS  s         r%   test_eb_line_zorderr  M  s4    	U2YA **,C	BGGA"QGJJq"QJ/JJqBrJ2JJq1J-JJq1J-LL23 **,C	BU2YA
Ab	?DKK4asK;2Y


1#a
0


A2!3q
1  LL'(r'   c                 F   V P                  4       pVP                  R
RR7       VP                  RR.RR.R4       VP                  RRRR7       VP                  4       pVP                  R
RR7       VP                  RR.RR.R4       VP                  ^^
.RR.RR7       R	# )r   rJ  ri  r   r  z.-r  r6  r>  N)r   rT  )rJ  r;   )r;   rJ  )rT  r  )r   r   r  axliner!   s   && r%   test_axline_loglogr  k  s    				BFF		F*IIr2hR$'IIisI+				BFF		F*IIr2hR$'IIq"gd|sI+r'   c                    V P                  4       pVP                  RRR7       VP                  RR4       VP                  RRRR7       VP                  RRRR7       VP                  R^ RR7       VP                  RRRR7       VP                  R\        R	4      R
R7       VP                  4       pVP                  RRR7       VP	                  R^.R^.4       VP                  ^ RR7       VP                  RRR7       VP                  RRR7       VP	                  R^.RR.RR7       VP                  RR
R7       R# )r;   ri  rL  rG  r   rM  r  )sloper   C4infr  Nr   rk  r  ru  rZ  )r   r   r;   r   r  )gffffffr  )r;   r  )r  r;   )r   r   r  r  r   ru   r  r!   s   && r%   test_axliner  x  s   				BFFgF&IIffIIffDI)IIhI-IIl!4I0IIit4I0IIiuU|4I8				BFFgF&GGRGb!WJJqJJJs$JJJt4J GGRGc4[G-JJt4J r'   c                 D   V P                  4       pVP                  RRR7       VP                  R^VP                  R7       VP                  R^RVP                  R7       VP                  R^ RVP                  R7       VP                  RRRVP                  R7       VP                  4       pVP                  RRR7       VP	                  R
^.R
^.4       VP	                  ^ ^.R
^ .RR7       VP	                  R
^.^ ^ .RR7       VP	                  ^ ^ .R
^.RR7       R	# )r;   ri  r  r)  rL  r  r   r)  rM  r  )r   r)  rG  Nr   rk  r  r  r   r   )r   r   )r   r;   )r   r   r  r7  r   r!   s   && r%   test_axline_transaxesr    s    				BFFgF&IIfAI6IIhatr||IDIIjIFIIhIE				BFFgF&GGRGb!WGGQFRG4G(GGRGaV4G(GGQFRG4G(r'   c                 D   V P                  4       pVP                  RRR7       VP                  R	^VP                  R7       VP                  R
^RVP                  R7       VP                  R
^ RVP                  R7       VP                  RRR7       V P	                  ^^4       VP                  4       pVP                  RRR7       VP	                  ^^4       VP                  ^ ^.^ ^.4       VP                  ^ ^.^ ^
.RR7       VP                  ^ ^.^^.RR7       R# )r;   ri  r  rL  r  rM  rG  Nrk  r  r  )r   r  rJ  )r   r   r  r7  set_size_inchesr   r!   s   && r%   test_axline_transaxes_panzoomr    s     
			BFFgF&IIfAI6IIjIFIIjIFFFWF%Q"				BFFWF%Aq!GGQFQFGGQFQG4G(GGQFQF$G'r'   c                    \         P                  ! 4       w  r\        P                  ! \        4      ;_uu_ 4        VP                  R4       RRR4       \        P                  ! \        4      ;_uu_ 4        VP                  RR^R7       RRR4       VP                  R4       \        P                  ! \        4      ;_uu_ 4        VP                  R^R7       RRR4       VP                  R4       VP                  R4       \        P                  ! \        4      ;_uu_ 4        VP                  R^R7       RRR4       VP                  R4       \        P                  ! \        4      ;_uu_ 4        VP                  RR4       \         P                  ! 4        RRR4       R#   + '       g   i     ELd; i  + '       g   i     EL9; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; i)z3Exactly one of *xy2* and *slope* must be specified.N)r  r%  rC  r  ru  )
r)   r   r   r   r   r  rF  r  r  r  r.   s     r%   test_axline_argsr    s/   llnGC	y	!	!
		& 
"	y	!	!
		&&	* 
"MM%	y	!	!
		&	" 
"MM(MM%	y	!	!
		&	" 
"MM(	z	"	"
		&&!
 
#	" 
"	!	!	!	!	! 
"	! 
"	! 
#	"	"s;   F'6F;G&G"5(G5'F8	;G	G	"G2	5H	c            	      N   . R	Op . ROp\         P                  ! 4       w  r#VP                  V ^ VR^R7       . ROp^R
^^\        P                  ^.p\         P                  ! ^RR7      w  pw  rxp	VP                  V^ VR^R7       . ROp
\        P                  ^R
^^^.pVP                  V
^ VR^RR7       . ROp\        P                  ^R
^^\        P                  .pV	P                  V^ VR^R7       W7W3 F  pVP                  ^ ^
4       K  	  VP                  4       VP                  4       8X  g   Q hVP                  4       VP                  4       8X  g   Q hVP                  4       V	P                  4       8X  g   Q h\         P                  ! 4       w  pp\        P                  P                  . RO^4      p\        P                  P                  . RO^4      p\        P                  P                  . RO^4      pVP                  VVVR^R7       VP                  ^ ^4       R# r/  r  r  r,  )r  r~  rF  rD  )r  r,  r   r6  N)r/  r  r  r  r`  )r/  r  r  r  r/  )r/  r  r  r  r  r`  )r  r  )r/  r  r  r  rT  rD  )r   r;   r   r   r/  r;   )   r	  r   r        )	r)   r   rt   rk   r  r  r   r	   masked_equal)r&  r  r0  r  rI  rJ  r1  r  r  r>  x3rI  x4y4r$   fig3ax5x5ymin5ymax5s                       r%   test_vlinesr        
B	BIDJJr1bJ2 
B
RArvvq	!BLLq&AD/3SJJr1bJ2	B
&&!RAq	!BJJr1bTJB	B
&&!RArvv	&BJJr1bJ2 "
Ar # <<>S\\^+++<<>S\\^+++<<>S\\^+++ID#			0!	4BEE2A6EEE7<EJJr5%qJ9LLBr'   c                  B   \         P                  ! 4       w  r\        P                  ! R R/4      ;_uu_ 4        VP	                  R^ ^4      p\        P
                  P                  VP                  4       R4      '       g   Q h RRR4       R#   + '       g   i     R# ; izlines.colorr1  r   N)r)   r   r   r   rt   r  r  r  r/   r$   r  s      r%   test_vlines_defaultr    h    llnGC	.	/	/		#q!$zz$$U__%6>>>> 
0	/	/	/   A
BB	c            	      N   . R	Op . ROp\         P                  ! 4       w  r#VP                  V ^ VR^R7       . ROp^R
^^\        P                  ^.p\         P                  ! ^RR7      w  pw  rxp	VP                  V^ VR^R7       . ROp
\        P                  ^R
^^^.pVP                  V
^ VR^RR7       . ROp\        P                  ^R
^^\        P                  .pV	P                  V^ VR^R7       W7W3 F  pVP                  ^ ^
4       K  	  VP                  4       VP                  4       8X  g   Q hVP                  4       VP                  4       8X  g   Q hVP                  4       V	P                  4       8X  g   Q h\         P                  ! 4       w  pp\        P                  P                  . RO^4      p\        P                  P                  . RO^4      p\        P                  P                  . RO^4      pVP                  VVVR^R7       VP                  ^ ^4       R# r  )	r)   r   hlinesrk   r  r  r   r	   r  )r  r&  r0  r  rJ  rI  r1  r  r  r>  rI  r  r  r  r$   r  r  y5xmin5xmax5s                       r%   test_hlinesr	    r  r'   c                  B   \         P                  ! 4       w  r\        P                  ! R R/4      ;_uu_ 4        VP	                  R^ ^4      p\        P
                  P                  VP                  4       R4      '       g   Q h RRR4       R#   + '       g   i     R# ; ir  )r)   r   r   r   r  r  r  r  r  s      r%   test_hlines_defaultr	    r  r  c                 V   . ROpV P                  ^^^4      P                  V^ ^V^R7       V P                  ^^^4      P                  V^ ^V^R7       . ROp. ROpVP                  ^^^4      P                  V^ ^V^R7       VP                  ^^^4      P                  V^ ^V^R7       R# )r1  r  N)r1  r   r   r  r  )r;   r/  r  r  )r1  r   r   r  )r   rt   r  )r"   r#   r  test_colors	expect_xyexpect_colors   &&&   r%   test_lines_with_colorsr
	  &  s     ?KAq!((q!0;q ) JAq!((q!0;q ) J I5L1a ''	1a/;q ( J1a ''	1a/;q ( Jr'   vlines_hlines_blended_transform)r   r   c                     \         P                  ! R RR4      p \         P                  ! V ) 4      \         P                  ! ^\         P                  ,          V ,          4      ,           ^
,           p\
        P                  ! ^^RR7      w  pw  r4VP                  WR4       VP                  ^
^	.^ RVP                  4       RR7       VP                  WR4       VP                  ^^.^ RVP                  4       RR	7       R
# )r  r.  r   r5  r  r   rF  )ri   rj   r)  r  r  )yminymaxr)  r  Nr  r  )rk   rs   rR  r   r   r)   r   r   r  get_yaxis_transformrt   get_xaxis_transform)r  r  r/   haxvaxs        r%   $test_vlines_hlines_blended_transformr	  8  s     			#tS!A
r
RVVAIM**R/All1a8OC#HHQ3JJAwQS0023  @HHQ3JJ1vADC4K4K4M  r'   step_linestyler   c            
      $   \         P                  ! ^
4      ;r\        P                  ! ^^4      w  r#VP	                  4       p. ROp\        W44       Fx  w  rVVP                  W^VRR7       VP                  W^,           ^VRR7       VP                  W^,           ^VRR7       VP                  R^.4       VP                  R^.4       Kz  	  RV RVRV^,           RV^,           /p\        P                  ! ^^4      w  r#VP	                  4       p. ROp\        W44       Fp  w  rVVP                  RR^VRVR	7       VP                  RR^VRVR	7       VP                  RR^VRVR	7       VP                  R^.4       VP                  R^.4       Kr  	  R
# )rT  pre)r@  r   r-  rH  r  r  Y0Y1Y2)r@  r   r-  r  N)rC  rD  r  r  r   )	rk   rs   r)   r   r  r  r  r  r  )r4   r5   r/   ax_lst	ln_stylesr$   r   r  s           r%   test_step_linestyler	  F  sj   
 IIbMA ,,q!$KC^^F&If(
b6
q5Q"E:
q5Q"F;
RG
RG ) D!T1Q3ac2D,,q!$KC^^F&If(
Ta2UF
Ta2UF
Ta2V$G
RG
RG )r'   mixed_collectionc                     \         P                  ! 4       w  r\        P                  ! R^RRR7      p\        P
                  P                  V.RR7      pVP                  ^ ^ .^^..4       VP                  ^^.4       \        P
                  P                  V.RR7      pVP                  ^0^ .R	R
..4       VP                  ^^.4       VP                  . RO. RO.4       VP                  P                  R4       VP                  V4       VP                  V4       VP                  ^ ^4       VP                  ^ ^4       R# )r  r&  r   radiusr*  r+  T)match_originalrz  Nr  r  ii)r   r   r   r   )r   r   r   r   )r)   r   ry  Circler   r  PatchCollectionset_offsetsset_linewidthsset_edgecolorsr  rN  r  r  r  )r/   r$   r>   r$  r%  s        r%   test_mixed_collectionr)	  g  s    llnGCqFgNA 
	(	(!T	(	BBNNQFRH%&q!f 
	(	(!T	(	BBNNRGc3Z()q!f')9:;HHubbKK2KK2r'   c                      \         P                  ! \        P                  ! ^4      \        P                  ! ^4      ^4      p V P                  4        V P                  4       P                  4       R8X  g   Q hR# )r  N)r  r;   r   r   )r)   ra  rk   int32r   r  get_subplotspecget_geometryr  s    r%   test_subplot_key_hashr.	    sM    	RXXa["((1+q	1BHHJ,,.,>>>r'   Q?)r  r   r   c                 B   R\         P                  R&   Rp RpV^,          V^,          V^,          .VR,          VR,          VR,          ..p\        ^
V,          \        P                  ! V4      ,          4      p\        P
                  ! ^ V ^V,          4      p\        P                  ! \        P                  ! ^\        P                  ,          \        P                  P                  W$4      ,          4      P                  ^R7      4      p\        ^
V,          ^,          4      p\        P                  P                  ^ 4       \        P                  ! \        P                  P                  V 4      \        P                  P                  V 4      .4      p. ROpWS3Wv33 F  w  rV
^,          p\        ^\        P                   ! \        P"                  ! V
4      4      ,          4      p\%        \&        P(                  ! 4       P+                  ^4      V4       F  w  rVP-                  WWWR	7       K  	  \%        \&        P(                  ! 4       P+                  ^4      V4       F7  w  rVP-                  WWWR
\         P.                  P1                  4       R7       K9  	  K  	  R# )z)Test axes.specgram in default (psd) mode.r   r  r  r.  @ffffff@'@r  )NFFTFsnoverlappad_tosidesrC  )r4	  r5	  r6	  r7	  r8	  r$  r  Nr  onesidedtwosided)rX   r   intrk   rb  rs   r  r   r   multiplyouterr  rl   rm   r  r~   r   log2r  r)   r   r   specgramr  r  )r  r5	  fstims
NFFT_freqsr4   y_freqs
NFFT_noisey_noise	all_sidesr5   r4	  r6	  r7	  r$   r8	  s                  r%   test_specgramrG	    s    2;J-.A	B!tRT2b5!BsFBsFBtG#<=FR"Wrvvf~-.J
		!Q"Ann
q255y2;;,,V778<<!<DFG R"Wr\"JIINN1nnbii77:BIINN1<MNOG3I)G+@A19Q"''"''$-001SZZ\2215yAIBKK%  4 B SZZ\2215yAIBKK%&Z->->-F-F-H  J B Br'   c                 V   R\         P                  R&   Rp RpV^,          V^,          V^,          .VR,          VR,          VR,          ..p\        ^dV,          \        P                  ! V4      ,          4      p\        P
                  ! ^ V ^V,          4      p\        P                  ! ^\        P                  ,          \        P                  P                  W$4      ,          4      P                  ^R7      p^VR&   \        P                  ! V4      p\        ^
V,          ^,          4      p\        P                  P                  ^ 4       \        P                  ! \        P                  P                  V 4      \        P                  P!                  V 4      .4      p. ROp	Wc3W33 F  w  rZV
^,          p\        ^\        P"                  ! \        P$                  ! V
4      4      ,          4      p\'        \(        P*                  ! 4       P-                  ^4      V	4       F  w  rVP/                  WZWWR	R
7       K  	  \'        \(        P*                  ! 4       P-                  ^4      V	4       F8  w  rVP/                  WZWWR	R\         P0                  P3                  4       R7	       K:  	  EK  	  R# )z%Test axes.specgram in magnitude mode.r   r  r  r.  r1	  r2	  r3	  r  	magnituder4	  r5	  r6	  r7	  r8	  rg   rC  )r4	  r5	  r6	  r7	  r8	  rg   r$  r  Nrt  r   r9	  )rX   r   r<	  rk   rb  rs   r   r   r=	  r>	  r  r  rl   rm   r  r  r~   r   r?	  r  r)   r   r   r@	  r  r  )r  r5	  rA	  rB	  r4   r5   rC	  rD	  rE	  rF	  r4	  r6	  r7	  r$   r8	  s                  r%   test_specgram_magnituderL	    s    2;J-.A	B!tRT2b5!BsFBsFBtG#<=FS2Xv./J
		!Q"A
q255y2;;,,V778<<!<DAAeHiilGR"Wr\"JIINN1nnbii77:BIINN1<MNOG3I)G+@A19Q"''"''$-001SZZ\2215yAIBKK%  F B SZZ\2215yAIBKK%&Z->->-F-F-H  J B Br'   c                 <   R\         P                  R&   Rp RpV^,          V^,          V^,          .VR,          VR,          VR,          ..p\        ^
V,          \        P                  ! V4      ,          4      p\        P
                  ! ^ V ^V,          4      p\        P                  ! ^\        P                  ,          \        P                  P                  W$4      ,          4      P                  ^R7      p^VR&   \        P                  ! V4      p\        ^
V,          ^,          4      p\        P                  P                  ^ 4       \        P                  ! \        P                  P                  V 4      \        P                  P!                  V 4      .4      p. ROp	Wc3W33 F  w  rZV
^,          p\        ^\        P"                  ! \        P$                  ! V
4      4      ,          4      pR F  p\'        \(        P*                  ! 4       P-                  ^4      V	4       F[  w  rVP/                  WZWWVR	7       \0        P2                  ! \4        4      ;_uu_ 4        VP/                  WZWWVR
R7       RRR4       K]  	  K  	  K  	  R#   + '       g   i     Kz  ; i)z,Test axes.specgram in angle and phase modes.r   r  r  r.  r1	  r2	  r3	  r  rJ	  dB)r4	  r5	  r6	  r7	  r8	  rg   r$  NrK	  r9	  )r  phase)rX   r   r<	  rk   rb  rs   r   r   r=	  r>	  r  r  rl   rm   r  r  r~   r   r?	  r  r)   r   r   r@	  r   r   r  )r  r5	  rA	  rB	  r4   r5   rC	  rD	  rE	  rF	  r4	  r6	  r7	  rg   r$   r8	  s                   r%   test_specgram_anglerP	    s    2;J-.A	B!tRT2b5!BsFBsFBtG#<=FR"Wrvvf~-.J
		!Q"A
q255y2;;,,V778<<!<DAAeHiilGR"Wr\"JIINN1nnbii77:BIINN1<MNOG3I)G+@A19Q"''"''$-001&D !6!6q!99E	AR#)T  C]]:..KK'-&*   , /. F ' B /..s   J

Jc                     \         P                  ! \        P                  ! R4      RRR7      w  rr#VP	                  4       w  rErgV^ 8X  d   V^`8X  g   Q hR# )z;Test axes.specgram when Fs is None, should not throw error.r  NrC  )r5	  r$  )r)   r@	  rk   r   
get_extent)specfreqsr  r  ri   rj   freq0freq1s           r%   test_specgram_fs_nonerW	    sF    bggclt8LD!}}D2:$"*$$*r'   c                &   \         P                  ! R4      p\         P                  ! V4      pR\        P                  R&   VP                  4       P                  V4       R\        P                  R&   V P                  4       P                  V4       R# )zCTest specgram ignores image.origin rcParam and uses origin 'upper'.r  upperzimage.originr   N)rk   rs   r   r)   r   r   r@	  )r"   r#   r  signals   &&  r%   test_specgram_origin_rcparamr[	    sn     			#AVVAYF#*CLL  ' $+CLL    (r'   c                    \         P                  ! R4      p \         P                  ! V 4      p\        P                  ! \
        4      ;_uu_ 4        \        P                  ! VRR7       RRR4       R#   + '       g   i     R# ; i)z4Ensure passing origin as a kwarg raises a TypeError.r  r   r  N)rk   rs   r   r   r   r   r)   r@	  )r  rZ	  s     r%   test_specgram_origin_kwargr]	    sH    
		#AVVAYF	y	!	!VG, 
"	!	!	!s   A22B	gMb`?c                     R p RpV^,          V^,          V^,          .VR,          VR,          VR,          ..p\        RV,          \        P                  ! V4      ,          4      p\        P                  ! ^ V ^V,          4      p\        P                  ! ^\        P
                  ,          \        P                  P                  W$4      ,          4      P                  ^R7      p\        RV,          ^,          4      p\        P                  P                  ^ 4       \        P                  P                  V 4      \        P                  P                  V 4      .pRR/RR	R
R/RRR
R/.pWS3Wv33 EFx  w  rV
^,          p\        ^\        P                  ! \        P                  ! V
4      4      ,          4      p\        \         P"                  ! 4       P%                  ^4      V4       Fp  w  rVP&                  ! \        P(                  ! V	4      3RV
RVRVRV/VB p\+        V4      ^VP-                  R
R4      ,           8X  g   Q hVP/                  RRR7       Kr  	  \        \         P"                  ! 4       P%                  ^4      V4       F[  w  rVP0                  ! V	RV
RVRVRV/VB p\+        V4      ^VP-                  R
R4      ,           8X  g   Q hVP/                  RRR7       K]  	  EK{  	  R# )r        Y@r1	  r2	  r3	  r  r  r8	  r  r:	  return_lineFr;	  Tr4	  r5	  r6	  r7	  r   xlabelylabelN)r<	  rk   rb  rs   r   r   r=	  r>	  r  rl   rm   r  r~   r   r?	  r  r)   r   r   psdr  r  rs  r   csd)r  r5	  rA	  rB	  r4   ys_freqsrD	  ys_noise
all_kwargsr  r4	  r6	  r7	  r$   r  rets                   r%   test_psd_csdrj	    s    	A	B!tRT2b5!BsFBsFBtG#<=FTBY/0J
		!Q"Avva"%%i"++"3"3F">>?CCCKHTBY^$JIINN1		))!,biinnQ.?@HI&Ju=Jt<>J +h-CD19Q"''"''$-001cjjl33A6
CJB&&+ E$ E2 E"*E39E=CECs8q6::mU#CCCCCFF"RF(	 D
 cjjl33A6
CJB&&" E4 EB E"*E39E=CECs8q6::mU#CCCCCFF"RF(	 D Er'   c                  \   R p RpV^,          V^,          V^,          .p\        RV,          \        V4      ,          4      p\        ^\        P                  ! \        P                  ! V4      4      ,          4      p\        P
                  ! ^ V ^V,          4      p\        P                  ! ^\        P                  ,          \        P                  ! WR4      ,          4      ^
\        P
                  ! ^4      ,          ,          P                  ^R7      p\        P                  P                  ^ 4       \        P                  ! \        P                  P                  V 4      \        P                  P                  V 4      .4      R,
          p. ROpRVRV/p	Wg3 EF  p
\        \         P"                  ! 4       P%                  ^4      V4       F0  w  rVP&                  ! V
3RV/V	B w  rpVP)                  RRR	7       K2  	  \        \         P"                  ! 4       P%                  ^4      V4       F4  w  rVP&                  ! V
3RV/V	BR
R/B w  rpVP)                  RRR	7       K6  	  \        \         P"                  ! 4       P%                  ^4      V4       F0  w  rVP*                  ! V
3RV/V	B w  rpVP)                  RRR	7       K2  	  \        \         P"                  ! 4       P%                  ^4      V4       F0  w  rVP,                  ! V
3RV/V	B w  rpVP)                  RRR	7       K2  	  EK  	  R# )r  r_	  r  r  r   r5	  r7	  r8	  r   ra	  r$  rN	  Nr9	  )r<	  rb  rk   r   r?	  rs   r   r   r>	  r  rl   rm   r  r  r~   r  r)   r   r   magnitude_spectrumr   angle_spectrumphase_spectrum)r  r5	  fstims1r4	  r7	  r4   rC	  rE	  rF	  r  r5   r$   r8	  rS	  rT	  r  s                   r%   test_spectrumrp	  :  s    	A	B!tRT2b5!Gtby3w<'(Dbggbggdm,,-F
		!Q"Aq255y288A#7782ryy|;KK IINN1ii2215ryy~~a7HIJROG3IB&)FSZZ\2215yAIB " 5 5a Ou O ODFF"RF( B SZZ\2215yAIB " 5 5a !Bu !B !B<@!BDFF"RF( B SZZ\2215yAIB " 1 1! K5 KF KDFF"RF( B SZZ\2215yAIB " 1 1! K5 KF KDFF"RF( B  r'   c                     \         P                  ! 4       P                  ^4      p V  F  pVP                  P	                  RR7       K!  	  \
        P                  ! RR7      ;_uu_ 4        V ^ ,          P                  \
        P                  ! ^4      4       V ^,          P                  \
        P                  ! ^4      \
        P                  ! ^4      4       RRR4       R#   + '       g   i     R# ; i)r/  T)r  r  r  N)
r)   r   r   r^   r   rk   r  rd	  r  re	  r  r$   s     r%   test_psd_csd_edge_casesrs	  d  s    
**,


"C
d# 	H	%	%A

288A;A

288A;, 
&	%	%	%s   )A.C!!C2	c                 .   V P                  4       pVP                  4       pVP                  4       pVP                  4        VP                  4        VP                  4       pVP                  P                  4        VP                  P                  4        R # r  )r   r  r  r`  r\   tick_bottomr^   	tick_left)r"   r#   rx   ax_twinxax_twinyry   s   &&    r%   test_twin_removery	  n  sj    ""$G}}H}}HOOOO  "F LL
LLr'   ztwin_spines.pnggI+?c                     R  p \         P                  ! RR7      pVP                  RR7       VP                  4       pVP	                  4       pVP	                  4       pVP
                  P                  P                  R4       V ! V4       VP
                  P                  P                  R4       VP                  . RO. ROR4      w  pVP                  . RO. ROR4      w  pVP                  . RO. ROR4      w  pVP                  ^ ^4       VP                  ^ ^4       VP                  ^ ^4       VP                  ^^A4       VP                  P                  P                  VP                  4       4       VP                  P                  P                  VP                  4       4       VP                  P                  P                  VP                  4       4       \!        ^RR	7      pVP"                  ! RR
RRVP                  4       /VB  VP"                  ! RR
RRVP                  4       /VB  VP"                  ! RR
RRVP                  4       /VB  VP"                  ! RR
R/VB  R# )c                     V P                  R 4       V P                  P                  R4       V P                  R,          P                  R4       R# )TFrt  N)set_frame_onr  r    spinesr  s   &r%   make_patch_spines_invisible5test_twin_spines.<locals>.make_patch_spines_invisible  s6    

U#
		!  'r'   r5  rU  )rD   Tzb-zr-zg-r   )r  r  r  r5   r  r4   N)r  r  )r_  r)  rD  )r   r  r/  )rI  r  r   r   )r)   r   r  r   r  r}	  rD   set_positionr    r   r  r  r^   r2   rN  r  r  tick_params)	r~	  r/   hostpar1par2r$  r%  p3tkws	            r%   test_twin_spinesr	  }  s   (
 **V
$Cd#??D::<D::<D 	KK""=1  %KK!!$'
))Iy$
/CB
))Iy$
/CB
))I|T
2CBMM!QMM!QMM!QMM!RJJr||~.JJr||~.JJr||~.
AS
!C<#<blln<<<#<blln<<<#<blln<<%#%%r'   ztwin_spines_on_top.pngc                     R \         P                  R&   R \         P                  R&   \        P                  ! 4       p V P	                  ^^^4      p\
        P                  ! . RO. RO.4      pVP                  4       pVP                  V^ ,          V^,          R,          RR7       VP                  V^ ,          V^,          R,          RRR7       VP                  V^ ,          V^,          R,          RR7       VP                  V^ ,          V^,          R,          RR	R7       R
V^ ,          RV^,          R,          /p\        P                  ! 4       p V P	                  ^^^4      pVP                  4       pVP                  R
RRVR7       VP                  R
RRRVR7       VP                  R
RRVR7       VP                  R
RRR	VR7       R# )g      H@r'  r  g     @@z#BEAED4rG  r  )r   r  z#7FC97Fr   r:  rS  )r   r  )r   r  r  N)r  iL  i  i  )rL  i-  r  r  )
rX   r   r)   r   r   rk   rF  r  r   r   )r/   r  r  r  s       r%   test_twin_spines_on_topr	    s    -1J()-1J)*
**,C
//!Q
"C88-)+ ,D ))+CHHT!Wd1gckH3T!Wd1gck"EHHT!Wd1gckH3T!Wd1gck"E a#tAws{+D
**,C
//!Q
"C
))+CHHS#YTH2S#YbtDHHS#YTH2S#YbtDr'   z(grid_which, major_visible, minor_visiblec                 Z  aa \         P                  P                  R RRV /4       \        P                  ! 4       w  r4VP
                  P                  4        \        ;QJ d3    V3R lVP                  P                   4       F  '       d   K   RM(	  RM$! V3R lVP                  P                   4       4      '       g   Q h\        ;QJ d3    V3R lVP                  P                   4       F  '       d   K   RM(	  RM$! V3R lVP                  P                   4       4      '       g   Q hR# )r\  Tzaxes.grid.whichc              3   ^   <"   T F"  pVP                   P                  4       S8H  x  K$  	  R # 5ir  gridliner  )r  tickmajor_visibles   & r%   r  *test_rcparam_grid_minor.<locals>.<genexpr>  *      0.4 }}((*m;.   *-Fc              3   ^   <"   T F"  pVP                   P                  4       S8H  x  K$  	  R # 5ir  r	  )r  r	  minor_visibles   & r%   r  r	    r	  r	  N)r   r   r  r)   r   r  r  r  r\   
majorTicks
minorTicks)
grid_whichr	  r	  r/   r$   s   &ff  r%   test_rcparam_grid_minorr	    s     LLd,=zJKllnGCJJOO3 088..0333 088..0 0 0 0 03 088..0333 088..0 0 0 0 0r'   c                  t   \         P                  ! 4       w  rVP                  4        V P                  P	                  4        VP
                  P                  ^ ,          P                  P                  4       '       g   Q hVP                  RR7       V P                  P	                  4        VP
                  P                  ^ ,          P                  P                  4       '       d   Q hVP                  RR7       V P                  P	                  4        VP
                  P                  ^ ,          P                  P                  4       '       g   Q hVP                  4        V P                  P	                  4        VP
                  P                  ^ ,          P                  P                  4       '       d   Q hR# )r   FvisibleTN)	r)   r   r  r  r  r\   r	  r	  r  r.   s     r%   	test_gridr	    s    llnGCGGIJJOO88q!**668888GGEGJJOOxx""1%..::<<<<GGDGJJOO88q!**668888GGIJJOOxx""1%..::<<<<<r'   c                     \         P                  ! 4       w  rVP                  R R^
R7       VP                  P                  ^ ,          P
                  P                  4       '       d   Q hVP                  RR7       VP                  P                  ^ ,          P
                  P                  4       '       g   Q h\         P                  ! RR /4      ;_uu_ 4        VP                  4        VP                  R R^
R7       VP                  P                  ^ ,          P
                  P                  4       '       g   Q h RRR4       R#   + '       g   i     R# ; i)Tmajor)resetr  	labelsizer1  rG  r\  N)
r)   r   r	  r\   r	  r	  r  r  r   r  r.   s     r%   test_reset_gridr	    s    llnGCNNWN;xx""1%..::<<<<GG%G88q!**668888	d+	,	,


TB?xx""1%..::<<<< 
-	,	,	,s   A"EE	c                 D   W3 FQ  pVP                  4       pVP                  R 4       VP                  R^
^R^^R^-RR^RR7       VP                  4        KS  	  V P                   F7  pVP
                  P                  4        VP                  P                  4        K9  	  R# )	Tinr  rL  rM  r  rD  )	directionlengthr  r   padr	  
labelcolorlabelrotation
grid_color
grid_alphagrid_linewidthgrid_linestyleN)r   r  r	  rd  r_  r\   reset_ticksr^   )r"   r#   r/   r$   s   &&  r%   test_reset_ticksr	    s    "__

2QdTA	 	 	!
 	""$ # mm

 r'   c                     \         P                  ! R RR^R^RRR^RRR	RR
^RR/	4      ;_uu_ 4        \         P                  ! 4       w  rRRR4       X P                  4        XP                  P
                  ^ ,          pVP                  P
                  R,           F  pVP                  VP                  8X  g   Q hVP                  VP                  8X  g   Q hVP                  VP                  8X  g   Q hVP                  VP                  8X  g   Q hVP                  VP                  8X  g   Q hVP                  VP                  8X  d   K  Q h	  R#   + '       g   i     EL; i)xtick.directionr	  zxtick.major.sizezxtick.major.widthxtick.colorr  zxtick.major.padxtick.bottomT	xtick.topxtick.labelsizextick.labelcolorrL  Nr  )r)   r   r   rd  r\   r	  _size_width	_base_pad_labelrotation_zorder_tickdir)r/   r$   
first_tickr	  s       r%   test_context_ticksr	  
  s9   	t%7=PRS4!2BD+tr#5t	= 
> 
>
 ,,.
>  $$Q'J##B''zzZ-----{{j/////~~!5!5555""j&?&????||z11111}}
 3 3333 (
> 
> 
>s   EE#	c                      \         P                  ! 4       p V P                  4       pVP                  R 4       VP	                  . RO4       \        VP                  4       R4       R# )r   N)rN  r   r   r   )rN  r   )r)   r   rZ  r  r   r   r   r.   s     r%   test_vline_limitr	     s@    
**,C	BJJsOGG BKKM9-r'   zfv, fh, argsc           	         \         P                  P                  ^4      p\        P                  ! \
        RR7      ;_uu_ 4        V ! VRVR^/  RRR4       \        P                  ! \
        RR7      ;_uu_ 4        V ! VR^RV/  RRR4       \        P                  ! \
        RR7      ;_uu_ 4        V! VRVR	^/  RRR4       \        P                  ! \
        R
R7      ;_uu_ 4        V! VR^R	V/  RRR4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     Lo; i  + '       g   i     R# ; i)r;   z"ymin must be a single scalar valuerh  r	  r	  Nz"ymax must be a single scalar valuez"xmin must be a single scalar valueri   rj   z"xmax must be a single scalar value)rX   r  num2dater   r   r  )fvfhargsbad_lims   &&& r%   test_axline_minmaxr	  (  s     ''*G	z)M	N	N
D'w'Q' 
O	z)M	N	N
D'q'w' 
O 
z)M	N	N
D'w'Q' 
O	z)M	N	N
D'q'w' 
O	N 
O	N	N	N 
O	N	N	N	Ns0   C>;D2D$)D7>D	D!	$D4	7E	c                  $   \         P                  ! ^^RRR7      w  rV^ ,          P                  . RO. RO4       V^,          P                  4       w  r#V^,          P	                  4       w  rEV^8:  g   Q hV^8  g   Q hV^8:  g   Q hV^8  g   Q hR# )r;   T)r  r  r  rX  Nr  )r/  r  r  )r)   r   r   r   r   )r/   r  r<  r&  r=  r  s         r%   test_empty_shared_subplotsr	  8  sz    ||!1T$GHCFKK	9%V__FBV__FB7N77N77N77N7r'   c                     R F  p \         P                  ! ^RR7      w  rV^ ,          P                  ^V RR7       V^,          P                  4       ^8X  g   Q hV^,          P	                  4       V 8X  g   Q h\         P                  ! ^RR7      w  rV^ ,          P                  ^V R7       V^,          P                  4       R8X  d   K  Q h	  R# )boxT)r  r  )
adjustablesharer	  r  Nr	  datalim)r)   r   
set_aspect
get_aspectget_adjustable)r	  r/   r  s      r%   test_shared_with_aspect_1r	  D  s    (
<<a5A!
$?1v  "a'''1v$$&*444<<a5A!
31v  "f,,, )r'   c                     \         P                  ! ^RRR7      w  rV^ ,          P                  ^RR7       V^ ,          P                  ^^.^^.4       V^,          P                  ^^.^^.4       \         P                  ! 4        V^ ,          P                  4       V^,          P                  4       8X  g   Q hV^ ,          P                  4       V^,          P                  4       8X  g   Q hR# )r/  T)r  r  rX  )r	  N)r)   r   r	  r   r  r   r   r  s     r%   test_shared_with_aspect_2r	  Q  s    ||!D>HCFat$FKKAAFKKAAHHJq6??A 1111q6??A 1111r'   c                     R EF  p \         P                  ! ^RR7      w  rV^ ,          P                  ^V R7       V^,          P                  RV R7       V^ ,          P                  ^^.^^.4       V^,          P                  ^^.^^.4       \         P                  ! 4        V^ ,          P                  4       V^,          P                  4       8w  g   Q hV^ ,          P                  4       V^,          P                  4       8X  g   Q hVP                  P                  VP                  P                  ,          pV F  pVP                  4       pVP                  VP                  ,          pVP                  P                  VP                  P                  ,          pW6,          V,          p\        V^4      \        VP                  4       ^4      8X  d   K  Q h	  EK  	  R# )r	  T)r  rX  r	  r   Nr	  )r)   r   r	  r   r  r   r   bbox_inchesr  r  get_positionviewLimr  r	  )	r	  r/   r  
fig_aspectr$   r   
box_aspect
lim_aspectr  s	            r%   test_shared_with_aspect_3r	  \  sd   (
<<a5A!
3A#*5AQFQF#AQFQF#
1v CFOO$55551v CFOO$5555__++coo.C.CC
B!AAGG+J**RZZ-=-==J!.;H1%r}})BBBB  )r'   c                     \         P                  ! ^^RRR7      w  rV^ ,          P                  R4       \        P                  ! \
        RR7      ;_uu_ 4        V P                  4        RRR4       R#   + '       g   i     R# ; i)r;   Tr  rX  r  zset_aspect\(..., adjustable=rh  N)r)   r   r  r   r   RuntimeErrorrd  )r/   r_  s     r%   test_shared_aspect_errorr	  p  sV    Q$t<ICGLL	|+J	K	K""$ 
L	K	K	Ks   A44B	zerr, args, kwargs, matchz@axis\(\) takes from 0 to 1 positional arguments but 2 were givenr  z4Unrecognized string 'foo' to axis; try 'on' or 'off'zThe first argument to axis*z1axis\(\) got an unexpected keyword argument 'foo'c                     \         P                  ! WR 7      ;_uu_ 4        \        P                  ! V/ VB  RRR4       R#   + '       g   i     R# ; irh  N)r   r   r)   r  errr	  r  ri  s   &&&&r%   test_axis_errorsr	  w  s3     
s	(	($!&! 
)	(	(	(   AA	c                  ^   \         P                  ! 4       p \        P                  ! \        R R7      ;_uu_ 4        V P                  R4       RRR4       \        P                  ! \        R R7      ;_uu_ 4        V P                  R4       RRR4       \        P                  ! \        RR7      ;_uu_ 4        V P                  RRR7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        V P                  R4       RRR4       \        P                  ! \        RR7      ;_uu_ 4        V P                  ^R	7       RRR4       \        P                  ! \        R
R7      ;_uu_ 4        V P                  RR^R7       RRR4       \        P                  ! \        R
R7      ;_uu_ 4        V P                  RR^R7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        V P                  ^ ^R7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        V P                  ^ ^R7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        V P                  ^ ^R7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        V P                  ^ ^R7       RRR4       R#   + '       g   i     EL; i  + '       g   i     ELf; i  + '       g   i     EL:; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL_; i  + '       g   i     EL3; i  + '       g   i     EL; i  + '       g   i     R# ; i)zunknown value for which: 'foo'rh  r  Nz!Cannot supply both positional andr  r  zargument must be amongzscilimits must be a sequence)	scilimitszSpecifying 'loc' is disallowedrR   )rB   r4   r@   )rB   r5   zCannot pass both 'left')rR   ri   zCannot pass both 'right')rD   rj   zCannot pass both 'bottom')rQ   r	  zCannot pass both 'top')r@   r	  )r)   rZ  r   r   r  r	  r	  r   set_prop_cycle
set_anchorticklabel_formatr*   r+   r  r  r  s    r%   test_axis_method_errorsr	    s9   	B	z)I	J	J
u% 
K	z)I	J	J
u% 
K	y(K	L	L
%u- 
M	z)A	B	B
e 
C	z)G	H	H
a( 
I	y(H	I	I
e1- 
J	y(H	I	I
e!, 
J	y(A	B	B
# 
C	y(B	C	C
!!$ 
D	y(C	D	D
11% 
E	y(@	A	A
" 
B	A) 
K	J	J	J	J	J	L	L	L	B	B	B	H	H	H	I	I	I	I	I	I	B	B	B	C	C	C	D	D	D	A	A	As   K8K'6K;6L4L#3L74M5M5M35N5NK$	'K8	;L	L 	#L4	7M	M	M0	3N	N	N,	c                    \         P                  ! 4       w  r\        VR V  24      ! 4       pVP                  ^4       VP                  ^4       \	        VP
                  P                  VP
                  P                  4       R# )r  N)r)   r   r  r	  r   bboxextents)r  r/   r$   r9  s   &   r%   test_twin_with_aspectr	    s]    llnGCbD-(*GMM!qrww||++-r'   c                     Rp RpRpRp\         P                  P                  4       pVP                  4       pVP	                  W4       VP                  4       V 8X  g   Q hVP                  4       V8X  g   Q hVP	                  W#4      w  pVP                  4       V8X  g   Q hVP                  4       V8X  g   Q hVP                  R4       VP                  4       V8X  g   Q hVP                  4       V8X  g   Q hVP                  RR7       VP                  4        VP                  4       V 8X  g   Q hVP                  4       V8X  g   Q hR# )r  FT)visible_onlyN)r  r.  )r  rM  )r  r"  )
rX   r   r   r   r   r   r   r    relimr   )r&  r  rI  rJ  r/   r$   r  s          r%   test_relim_visible_onlyr	    s   	B	B	B	B



"
"
$C		BGGBO;;=B;;=BGGBOED;;=B;;=BU;;=B;;=BHH$H;;=B;;=Br'   c                     \         P                  ! 4       p V P                  4       pVP                  RR7       VP                  RR7       R# )z
tests for issue #1172
large)r	  outr	  N)r)   r   rZ  r	  r.   s     r%   test_text_labelsizer	    s6     **,C	BNNWN%NNUN#r'   zpie_default.pngr  c            
      |    Rp . ROp. ROpR	p\         P                  ! R
R7      w  rEVP                  WWRR^ZR7       R# )Frogsr5  %1.1f%%T)exploderb  r  autopctshadow
startangleNr	  HogsDogsLogsr   r  r.  rT  yellowgreengoldlightskyblue
lightcoralr   r   r   r   )r  r  r)   r   pie)rb  sizesr  r	  r0  r  s         r%   test_pie_defaultr
    sD     -FEBFGV,IDGGE6dr  ;r'   )r   r   r   c                     Rp . ROp. ROpRp\         P                  ! WWRR^ZR^ /R7       \         P                  ! R4       RV RVRVR	V/p\         P                  ! 4       pVP	                  4       pVP                  RR	RRRR^ZR^ /VR
7	       VP                  R4       \         P                  ! 4        \         P                  ! RR	RRRR^ZR^ /VR
7	       \         P                  ! R4       R# )r	  r	  Tr,  r	  rb  r  r	  r 
  r
  
wedgepropsr  lr  r>   ex)r	  rb  r  r	  r 
  r
  r
  r  Nr
  r
  r
  r
  )r)   r
  r  r   rZ  )rb  r
  r  r	  r  r/   r$   s          r%   test_pie_linewidth_0r
    s     -FEBFGGGE6dr#Q') HHW eS&$@D
**,C	BFF3STb"A&T  3 GGG JJLGGCc#dr#Q'd4 HHWr'   zpie_center_radius.pngc                      Rp . ROp. ROpRp\         P                  ! WWRR^ZR^ /RRR7
       \         P                  ! RRR\        RRR	7      \        R
RR7      R7       \         P                  ! R4       R# )r	  r	  Tr,  r   )	r	  rb  r  r	  r 
  r
  r
  r[   r!	  zCenter point->arc3)
arrowstyleconnectionstylesquare	lightgrey)boxstyler*  )r  r  r  r	  r  Nr
  r
  r
  r
  r.  )r;   r  )r)   r
  r  r  r  rb  r
  r  r	  s       r%   test_pie_center_radiusr 
    sv     -FEBFGGGE6dr#Q'sD LLF8 D179HDF
 HHWr'   zpie_linewidth_2.pngc                      Rp . ROp. R	OpR
p\         P                  ! WWRR^ZR^/R7       \         P                  ! R4       R# )r	  r	  Tr,  r
  r  Nr
  r
  r
  r
  r)   r
  r  r
  s       r%   test_pie_linewidth_2r#
    sE     -FEBFGGGE6dr#Q') HHWr'   zpie_ccw_true.pngc                      Rp . ROp. ROpR	p\         P                  ! WWRR^ZRR7       \         P                  ! R4       R# )
r	  r	  T)r	  rb  r  r	  r 
  r
  counterclockr  Nr
  r
  r
  r
  r"
  r
  s       r%   test_pie_ccw_truer&
  &  s@     -FEBFGGGE6dr HHWr'   zpie_frame_grid.pngc                  4   Rp . ROp. R	OpR
p\         P                  ! WWRR^ZR^ /RRR7
       \         P                  ! VRRR1,          W0VRR^ZR^ /RRR7
       \         P                  ! WRRR1,          WRR^ZR^ /RRR7
       \         P                  ! R4       R# )r	  r	  Tr,  )	r	  rb  r  r	  r 
  r
  r
  framer[   Nr  r
  r
  r
  r
  rv  r   )r  r/  )r  r  r"
  r
  s       r%   test_pie_frame_gridr)
  5  s     -FEBFGGGE6dr#Q'v'
 GGE$B$Kdr#Q'v'
 GGE4R4=dr#Q'v'
 HHWr'   zpie_rotatelabels_true.pngc                      Rp . ROp. ROpR	p\         P                  ! WWRR^ZRR7       \         P                  ! R4       R# )
Hogwartsr	  T)r	  rb  r  r	  r 
  r
  rotatelabelsr  N)r+
  r	  r
  r
  r
  r
  r
  r"
  r
  s       r%   test_pie_rotatelabels_truer-
  P  s@     1FEBFGGGE6dr HHWr'   zpie_no_label.pngc                      Rp . ROp. R	OpR
p\         P                  ! WWRR^ZRRR7	       \         P                  ! R4       \         P                  ! RR4       \         P                  ! 4        R# )r	  r	  TN)r	  rb  r  r	  r 
  r
  labeldistancer,
  r  r)  r
  r
  r
  r
  g333333)r)   r
  r  r   rJ   r
  s       r%   test_pie_nolabel_but_legendr0
  _  sW    ,FEBFGGGE6dr HHWHHT3JJLr'   zpie_shadow.pngc                     . ROp . ROpRp\         P                  ! ^^4      w  r4V^ ,          ^ ,          P                  WVR^ZR^ /R7       V^ ,          ^,          P                  WVR^ZR^ /R7       V^,          ^ ,          P                  WVRRRRRR	R
R/^ZR^ /R7       V^,          ^,          P                  WVRRR^RR/^ZR^ /R7       R# )r   Tr,  )r	  r  r 
  r
  r
  Foxr  oyshader<  r+  r&  r   Nr
  r
  r
  ri  r
  )r
  r  r	  r  r_  s        r%   test_pie_shadowr5
  m  s     EBFGll1a GAGAJNN5&2*A.  0 	GAJNN5&B*A.  0 	GAJNN5&eWc;PVW k1-=  ? 	GAJNN5&{AwD k1-=  ?r'   c            	         . ROp . ROp\        RR^ZR^RR7      p\        P                  ! 4       P                  WRVR7      w  r4pWE3 F  pV F  pVP	                  4       VR,          8X  g   Q hVP                  4       VR	,          8X  g   Q hVP                  4       VR
,          8X  g   Q hVP                  4       VR,          8X  g   Q hVP                  4       VR,          8X  g   Q hVP                  4       VR,          8X  d   K  Q h	  K  	  R# )rM  r[   r@   anchorr1  )horizontalalignmentverticalalignmentrI  rotation_moder  r   %.2f)rb  r	  	textpropsr8
  r9
  rI  r:
  r  r   N)rM  "   r.  )zLong name 1zLong name 2zLong name 3)
r  r)   rZ  r
  get_haget_vaget_rotationget_rotation_modeget_sizer  )r  rb  r<
  r  textsr	  txs          r%   test_pie_textpropsrE
    s    D:F', #+E	+I 	d609 & ;Ag"B99;),A"BBBB99;),?"@@@@??$	*(===='')Y-GGGG;;=If$5555<<>Yw%7777  #r'   c                      \         P                  ! 4       w  r\        P                  ! \        4      ;_uu_ 4        VP                  . RO. ROR7       RRR4       R#   + '       g   i     R# ; i)r  r	  N)r  r  r  )r   r   r   r)   r   r   r   r  r
  r.   s     r%   test_pie_get_negative_valuesrI
    s=    llnGC	z	"	"
z;/ 
#	"	"	"   AA-	c                      \         P                  ! 4       w  r\        P                  ! \        4      ;_uu_ 4        VP                  . RORR.R7       RRR4       R#   + '       g   i     R# ; i)r;   r   rG
  Nr  rH
  r.   s     r%   test_pie_invalid_exploderL
    sA    llnGC	z	"	"
y3*- 
#	"	"	"rJ
  c                      \         P                  ! 4       w  r\        P                  ! \        4      ;_uu_ 4        VP                  . RORR.R7       RRR4       R#   + '       g   i     R# ; i)r;   OneTwora  Nr  rH
  r.   s     r%   test_pie_invalid_labelsrP
    sA    llnGC	z	"	"
y%0 
#	"	"	"rJ
  c                      \         P                  ! 4       w  r\        P                  ! \        4      ;_uu_ 4        VP                  . RORR7       RRR4       R#   + '       g   i     R# ; i)r;   )r!	  Nr  r  rH
  r.   s     r%   test_pie_invalid_radiusrR
    s=    llnGC	z	"	"
y$ 
#	"	"	"s   AA+	c                  L   \         P                  ! 4       w  r. ROpVP                  VRR7      p\        V^ ,          R,          P                  R,
          4      R8  g   Q hVP                  VRR7      p\        V^ ,          R,          P                  R,
          4      R8  g   Q hR# )	r   T)r4   	normalizeg     v@rJ  FNr   r   r   r   )r)   r   r
  rP  r  )r/   r$   r4   t1t2s        r%   test_normalize_kwarg_pierX
    s    llnGCA	!t	$Br!uRy$&'$...	!u	%Br!uRy$&'$...r'   c                     . ROpRpV P                  4       P                  W#R7       VP                  4       P                  V4      w  rEV Uu. uF  qfP                  V4      NK  	   pR# u upi )r   r  r  NrU
  )r   r
  	set_hatch)r"   r#   r4   r.  wedgesr  r^  s   &&     r%   test_pie_hatch_singler\
    s]    AEA+  "&&q)IF!'(A[[((s   A)c                     . ROp. ROpV P                  4       P                  W#R7       VP                  4       P                  V4      w  rE\        WC4       UUu. uF  w  rgVP                  V4      NK  	   ppR# u uppi )r   r  NrU
  )r,  r  r   )r   r
  r  rZ
  )r"   r#   r4   r.  r[
  r  r^  hps   &&      r%   test_pie_hatch_multir_
    sg    AEA+  "&&q)IF"%f"45"4Q[[_"455s   A9zset_get_ticklabels.pngg?c                     \         P                  ! ^4      w  rRR.pV^ ,          P                  \        P                  ! ^
4      4       V^ ,          P                  V^ ,          4       V^,          P                  \        P                  ! ^
4      4       V^,          P                  V^,          4       V^ ,          P                  \        ^
4      4       V^ ,          P                  \        ^
4      4       V^ ,          P                  . RO^R.,          ,           4       V^ ,          P                  . RO^R.,          ,           4       V^,          P                  V^ ,          P                  4       4       V^,          P                  V^ ,          P                  4       4       V^,          P                  V^ ,          P                  4       4       V^,          P                  V^ ,          P                  4       4       R# )r/  rn   zset_x/yticklabelsr   Nr   r  r>   r  )11121314)r)   r   r   rk   rs   r7   
set_xticksr   
set_yticksset_xticklabelsset_yticklabelsr{  
get_yticksr  get_yticklabels)r/   r$   rG   s      r%   test_set_get_ticklabelsrl
    s^    ll1oGC
'	(BqEJJryy}qEOOBqEqEJJryy}qEOOBqE qEU2YqEU2YqE.bT9:qE2Q"X=> qERU%%'(qERU%%'(qE"Q%//12qE"Q%//12r'   c                     \         P                  ! 4       w  r. ROp\        P                  ! \        RR7      ;_uu_ 4        VP
                  P                  VRR7       RRR4       R#   + '       g   i     R# ; i)zQ
When labels=None and any kwarg is passed, axis.set_ticks() raises a
ValueError.
z)Incorrect use of keyword argument 'alpha'rh  r   r  Nr  )r)   r   r   r   r  r\   	set_ticks)r/   r$   tickss      r%   0test_set_ticks_kwargs_raise_error_without_labelsrp
    sO    
 llnGCE	z)T	U	U
5, 
V	U	U	Us    A((A9	c                   VP                  4       pVP                  . RO4       VP                  . R	ORR7       VP                  . R
O4       VP                  ^^.RR7       VP	                  RR.RR7       V P                  4       pVP                  . RO. R	ORR7       VP                  . R
O4       VP                  ^^.RR.RR7       R# )z
Test that these two are identical::

    set_xticks(ticks); set_xticklabels(labels, **kwargs)
    set_xticks(ticks, labels, **kwargs)

bold)
fontweightT)r  r<  r=  N)r;   r/  r  r  ra
  r  )r   rf
  rh
  rg
  ri
  r!   s   && r%   test_set_ticks_with_labelsrt
    s     
			BMM,+?MM)MM1a&M%Sz.				BMM, 4MHMM)MM1a&3*DM1r'   c                     \         P                  ! 4       P                  4       p \        P                  ! \
        R R7      ;_uu_ 4        V P                  ^^	.R4       RRR4       \        P                  ! \        RR7      ;_uu_ 4        \         P                  ! \        P                  ! ^4      P                  R4      4       RRR4       \        P                  ! \        RR7      ;_uu_ 4        \         P                  ! \        P                  ! ^4      P                  R4      4       RRR4       \        P                  ! \        RR7      ;_uu_ 4        \         P                  ! \        P                  ! ^4      P                  R4      \        ^4      R7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        \         P                  ! \        P                  ! ^4      P                  R4      \        ^4      R7       RRR4       R#   + '       g   i     EL; i  + '       g   i     ELo; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     R# ; i)zmust be a sequencerh  r  Nz
must be 1Dra  rk  rj  )r)   r   r   r   r   r   rf
  r  rJ  rk   rs   r   r   r  s    r%   test_xticks_bad_argsrv
    sS   		!	!	#B	y(<	=	=
q!fc" 
>	z	6	6

299Q<''01 
7	z	6	6

299Q<''01 
7	z	6	6

299Q<''0qB 
7	z	6	6

299Q<''0qB 
7	6 
>	=	=	6	6	6	6	6	6	6	6	6	6	6s>   H	:H)/:H=AIAI$H&	)H:	=I	I!	$I5	c                  "   \         P                  ! 4       w  rVP                  \        P                  ! ^
4      4       VP
                  P                  \        P                  ! ^
4      R,           4       VP                  ^R7       VP
                  P                  R Uu. uF  q"NK  	  up4       \         P                  ! 4        VP
                  P                  4        Uu. uF  q3P                  4       NK  	  ppV. RO8X  g   Q hR# u upi u upi )rT  r   r  
bcdefghijkN)r  r  rK  r  rS  )r)   r   r   rk   rs   r\   rn
  r  set_ticklabelsr  get_ticklabelsr9  )r/   r$   r>   r  rb  s        r%   test_subsampled_ticklabelsr{
    s    llnGCGGBIIbMHHryy}s*+AHH51Q56HHJ$&HH$;$;$=>$=qjjl$=F>.... 6>s   
D Dc                  p   \         P                  ! 4       w  rVP                  \        P                  ! ^
4      4       VP
                  P                  RR.4       \        P                  ! \        4      ;_uu_ 4        VP
                  P                  . RO4       RRR4       R#   + '       g   i     R# ; i)rT  r   r2  Nr   r  r>   )r)   r   r   rk   rs   r\   rn
  r   r   r  ry
  r.   s     r%   test_mismatched_ticklabelsr~
  (  si    llnGCGGBIIbMHHSz"	z	"	"
0 
#	"	"	"s   <B$$B5	c                      \         P                  ! 4       w  rVP                  ^^.^^.4       VP                  ^^.4       VP	                  . 4       R# r  )r)   r   r  rf
  rh
  r.   s     r%   test_empty_ticks_fixed_locr
  0  sC    llnGCFFAq6Aq6MM1a&rr'   zretain_tick_visibility.pngc                      \         P                  ! 4       w  r\         P                  ! . RO. RO4       \         P                  ! VP	                  4       RR7       VP                  RR^ R7       R# )	r   Fr	  r5   r   r  r  r	  NrD  )r   r   r  )r)   r   r   setprk
  r	  r.   s     r%   test_retain_tick_visibilityr
  8  sF    llnGCHHY
#HHR!51NN6!N4r'   c                     \         P                  ! 4       w  r\        P                  ! \        R R7      ;_uu_ 4        VP                  RR.4       RRR4       \         P                  ! 4       w  rVP                  . RO4       \        P                  ! \        RR7      ;_uu_ 4        VP                  RR.4       RRR4       R#   + '       g   i     L|; i  + '       g   i     R# ; i)z:set_ticklabels\(\) should only be used with a fixed numberrh  r  r  Nz$The number of FixedLocator locationsrC  )	r)   r   r   r  rH  rh
  rf
  r   r  r.   s     r%   test_warn_too_few_labelsr
  @  s    llnGC	N
P 
P 	C<(
P
 llnGCMM+	zC
E 
E
C<(
E 
E
P 
P
E 
E 
Es   C&CC	C(	c                     \         P                  ! 4       w  rR  pVP                  P                  \         P                  ! V4      4       VP                  . RO4       VP                  RR4       V P                  P                  4        VP                  P                  4        Uu. uF  q3P                  4       NK  	  ppV. RO8X  g   Q hR# u upi )c                     V ^8X  d   R# R# )r;   
unit valuer   r   r   s   &&r%   formatter_func.test_tick_label_update.<locals>.formatter_funcU  s     Av|-2-r'   r2  N)r   r   r;   r/  r  r  )r   r   r
  r   r   )r)   r   r\   r   r   rf
  r  r  r  rz
  r9  )r/   r$   r
  r	  
tick_textss        r%   test_tick_label_updater
  O  s     llnGC.HH  !2!2>!BC MM"#KKcJJOO.0hh.E.E.GH.Gd--/.GJH7777 Is   %Czo_marker_path_snap.pngc                     \         P                  ! 4       w  rVP                  R 4       \        ^^4       F5  pVP	                  ^^.\
        P                  ! ^4      V,           RVR7       K7  	  \
        P                  ! ^^
^4       F5  pVP	                  ^^.\
        P                  ! ^4      V,           RVR7       K7  	  R# )r   r   )r  N)r)   r   rH  r   r   rk   r   r   )r/   r$   r  s      r%   test_o_marker_path_snapr
  b  s    llnGCJJrNArl
A"''!*r/326  kk!R$
A"''!*r/326 %r'   c                  `   ^^
.p Rp\        V 4      R,
          p\        V 4      p\        V 4      p\        P                  ! ^^4      w  rVVP                  V 4       VP                  ^4       VP                  4       R8X  g   Q hVP                  4       WV,
          ^,          ,
          W"V,
          ^,          ,           38X  g   Q hVP                  4       W4V,
          ^,          ,
          WDV,
          ^,          ,           38X  g   Q h\        P                  ! ^^4      w  rxVP                  V 4       VP                  R^4       VP                  4       R8X  g   Q hVP                  4       WV,
          R,          ,
          W"V,
          R,          ,           38X  g   Q hVP                  4       W4V,
          ^,          ,
          WDV,
          ^,          ,           38X  g   Q h\        P                  ! ^^4      w  rV
P                  V 4       V
P                  RRR7       V
P                  4       R	8X  g   Q hV
P                  4       WV,
          R,          ,
          W"V,
          R,          ,           38X  g   Q hV
P                  4       W4V,
          R,          ,
          WDV,
          R,          ,           38X  g   Q hR# )
r;   r  r   r   r  Nru  )r   r/  皙ɿ)r
  r   )	r  rb  r  r)   r   r   rH  r   r   )r  ri   rj   r	  r	  r0  r  r1  r  r  r  s              r%   test_marginsr
  m  sK   r7DDt9s?Dt9Dt9DQ"IDHHTNKKN;;=F"""<<>dTkQ%66"TkQ%668 8 8 8<<>dTkQ%66"TkQ%668 8 8 8 Q"IDHHTNKKQ;;=H$$$<<>dTkS%88"TkS%88: : : :<<>dTkQ%66"TkQ%668 8 8 8 Q"IDHHTNKK$#K;;=K'''<<>dTkT%99"TkT%99; ; ; ;<<>dTkS%88"TkS%88: : : :r'   c                      \         P                  ! 4       p V P                  4       pVP                  R R4       VP	                  4       R 8X  g   Q hVP                  4       R8X  g   Q hR# )r   r   N)r)   r   r   rH  get_xmarginget_ymarginr.   s     r%   test_margin_gettersr
    sQ    
**,C		BJJsC>>s""">>s"""r'   c                      \         P                  P                  R 4       \        P                  ! 4       w  rVP                  ^^.^^.4       VP                  R^ R7       VP                  4       R8X  g   Q hR# )r  r%  )r  xmarginNr.  )r   r   r   r)   r   r   r   r   r.   s     r%   test_set_margin_updates_limitsr
    sY    IIMM)llnGCGGQFQFFF%F#;;=F"""r'   z!margin must be greater than -0\.5z@Cannot pass both positional and keyword arguments for x and/or yz&Must pass a single positional argumentc                     \         P                  ! WR 7      ;_uu_ 4        \        P                  ! 4       pVP	                  4       pVP
                  ! V/ VB  RRR4       R#   + '       g   i     R# ; ir	  )r   r   r)   r   r   rH  )r	  r	  r  ri  r/   r$   s   &&&&  r%   test_margins_errorsr
    sJ     
s	(	(jjl__


D#F# 
)	(	(	(s   8A""A3	c                  z    \         P                  ! 4       w  rVP                  ^4       VP                  ^.4       R# r  )r)   r   r  r.   s     r%   test_length_one_histr
    s'    llnGCGGAJGGQCLr'   c                  P   \         P                  ! 4       p V P                  4       pVP                  R R4       VP	                  4       R8X  g   Q hVP                  4       R8X  g   Q hVP                  RR7       VP	                  4       R8X  g   Q hVP                  4       R8X  g   Q hVP                  RR7       VP	                  4       R8X  g   Q hVP                  4       R8X  g   Q hVP                  R R4       VP                  4       R8X  g   Q hVP                  4       R8X  g   Q hVP                  RR7       VP                  4       R8X  g   Q hVP                  4       R8X  g   Q hVP                  RR7       VP                  4       R8X  g   Q hVP                  4       R8X  g   Q hR# )	r   r  r  )rY	  )r   N)r   r  )r   r  )r  r  )	r)   r   r   r  
get_xboundr   r  
get_yboundr   r.   s     r%   test_set_xy_boundr
    s]   
**,C		BMM#s==?j(((;;=J&&&MMM==?j(((;;=J&&&MMM==?j(((;;=J&&&MM#s==?j(((;;=J&&&MMM==?j(((;;=J&&&MMM==?j(((;;=J&&&r'   c                      ^
.^d,          p \         P                  ! ^^4      w  rVP                  W 4       VP                  \        P
                  ! 4       4       R# rT  N)r)   r   r  r  r  r  )mylistr/   r$   s      r%   test_pathological_hexbinr
    s=    TCZFll1a GCIIfKK

r'   c                  d    \         P                  ! 4       w  rVP                  ^^.^^.RR7       R# )r;   NrG  r  r.   s     r%   test_color_Noner
    s)    llnGCGGQFQF$G'r'   c                      \         P                  ! 4       w  rVP                  ^ ^.RR7      ^ ,          pRVP                  4       8X  g   Q hR# )r   rv  r>  N)r)   r   r   r  r/   r$   r  s      r%   test_color_aliasr
    s?    llnGC77Aq6V7$Q'DT^^%%%%r'   c                      \         P                  ! 4       w  rVP                  \        ^4      .^,          \        ^4      R7       VP	                  4        R# )r   r  N)r)   r   r  r   rJ   r.   s     r%   test_numerical_hist_labelr
    s6    llnGCGGU2YK!O58G,IIKr'   c                      \         P                  ! 4       w  rRpRpVP                  R4      RVP                  R4      .pVP                  \	        ^4      .^,          VR7       VP                  4        R# )s   很漂亮, s   שלוםzutf-8zhi aardvarkr  Ns    很漂亮, römän chäráctèrs)r)   r   decoder  r   rJ   )r/   r$   r   r  rb  s        r%   test_unicode_hist_labelr
    sc    llnGC
@A+AhhwhhwF
 GGU2YK!O6G*IIKr'   c                  R   \         P                  P                  ^
4      R,          p \        P                  ! 4       w  rVP	                  V 4       VP
                  P                  4        VP                  P                  P                  4       pVP                  P                  P                  4       R8X  g   Q hVP                  P                  4        VP
                  P                  4        VP                  P                  P                  4       pV^ ,          V^ ,          8  d   V^,          V^,          8X  g   Q hVP                  P                  P                  4       R8X  g   Q h\        P                  ! 4       w  rVP	                  V 4       VP
                  P                  4        VP                  P                  P                  4       pVP                  P                  P                  4       R8X  g   Q hVP                  P                  4        VP
                  P                  4        VP                  P                  P                  4       pV^ ,          V^ ,          8X  d   V^,          V^,          8  g   Q hVP                  P                  P                  4       R8X  g   Q hR# )rT  g^ 9^;rR   rD   r@   rQ   N)rk   rl   r)   r   r   r  r  r^   
offsetTextr	  r]   
tick_rightr\   get_verticalalignmentr   )r  r/   r$   beforeafters        r%   test_move_offsetlabelr
    s   99B%'DllnGCGGDMJJOOXX  --/F88668FBBBHHJJOOHH,,.E8fQiE!Hq	$99988668GCCCllnGCGGDMJJOOXX  --/F88446%???HHJJOOHH,,.E8vay U1Xq	%99988446(BBBr'   zrc_spines.pngc                      R RRRRRRR/p \         P                  ! V 4      ;_uu_ 4        \        P                  ! 4        RRR4       R#   + '       g   i     R# ; i)zaxes.spines.leftFzaxes.spines.rightzaxes.spines.topzaxes.spines.bottomN)rX   r   r)   r   )r  s    r%   test_rc_spinesr
    sJ     	EU5e	%G
 
		w	'	' 
(	'	'	's   A		A	zrc_grid.pngc                  "   \         P                  ! 4       p R RRR/pR RRR/pR RRR/pWV.p\        V^4       F?  w  rV\        P                  ! V4      ;_uu_ 4        V P                  ^^V4       RRR4       KA  	  R#   + '       g   i     KV  ; i)r\  Tzaxes.grid.axisr   r4   r5   N)r)   r   r  rX   r   r   )r/   rc_dict0rc_dict1rc_dict2r  r:  r  s          r%   test_rc_gridr
    s    
**,CT&H
 	T#H
 	T#H X.I	1-
""7++OOAq!$ ,+ .+++s   A==Bc                     R RRRRRRR/p \         P                  ! V R7      ;_uu_ 4        \         P                  ! 4       pVP                  ^^^4      pVP                  pVP
                  pVP                  R,          '       d   Q hVP                  R,          '       g   Q hVP                  R,          '       d   Q hVP                  R,          '       g   Q hVP                  R,          '       g   Q hVP                  R,          '       d   Q hVP                  R,          '       g   Q hVP                  R,          '       d   Q h R	R	R	4       R	#   + '       g   i     R	# ; i)
r	  Fr	  T
ytick.leftytick.rightr  tick1Ontick2OnNr)   r   r   r   r\   r^   _major_tick_kw_minor_tick_kwr  r/   r  xaxyaxs        r%   test_rc_tickr
  5  s#   	T	t]E	3A	1		jjlooaA&iiii%%i0000!!),,,,%%i0000!!),,,,!!),,,,%%i0000!!),,,,%%i00000 
			s6   A4EE:EE0EE&EEE	c                     R RRRRRRRRRRRRRR	R/p \         P                  ! V R
7      ;_uu_ 4        \         P                  ! 4       pVP                  ^^^4      pVP                  pVP
                  pVP                  R,          '       d   Q hVP                  R,          '       g   Q hVP                  R,          '       d   Q hVP                  R,          '       g   Q hVP                  R,          '       d   Q hVP                  R,          '       g   Q hVP                  R,          '       d   Q hVP                  R,          '       g   Q h RRR4       R#   + '       g   i     R# ; i)r	  Tr
  r	  r
  zxtick.minor.bottomFzxtick.major.bottomzytick.major.leftzytick.minor.leftr
  r
  r
  Nr
  r
  s        r%   test_rc_major_minor_tickr
  I  s6   	dM4	|T	u&:E	U$6		?A
 
1		jjlooaA&iiii%%i0000!!),,,,%%i0000!!),,,,%%i0000!!),,,,%%i0000!!),,,, 
			s6   A4E'EEE8EE.E	EE'	c                  <   \         P                  ! ^4      p \         P                  ! . RO4      p\        P                  ! 4       w  r#VP                  WR4       VP                  R4       VP                  4       VP                  4       rT\         P                  ! V4      \         P                  ! V4      8X  g   Q hVP                  4       ^8X  g   Q h\        VP                  RR7      P                  R4       \        VP                  RR7      P                  R	4       R# )
r  mor
  T)originalFN)r   r  r  r  g      ?r   r<  r<  )g333333?r   g      ?r<  )rk   rs   rF  r)   r   r   r  r   r   r  r	  r   r	  r	  )r4   r5   r/   r$   r   r   s         r%   test_square_plotr
  `  s    
		!A
!"AllnGCGGA$GGH$774=BGGDM)))==?a
&..0FH
'//1KMr'   c            	         \         P                  ! \        4      ;_uu_ 4        \        P                  ! R 4       R R R 4       \         P                  ! \        4      ;_uu_ 4        \        P                  ! R R 4       R R R 4       \         P                  ! \        4      ;_uu_ 4        \        P                  ! \
        P                  ! R4      \
        P                  ! R4      4       R R R 4       \         P                  ! \        4      ;_uu_ 4        \        P                  ! \
        P                  ! ^4      P                  R4      \
        P                  ! ^4      P                  R^4      34       R R R 4       R #   + '       g   i     ELI; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     R # ; i)Nrv  r  r   rj  )	r   r   r  r)   r   rk   r  rs   r   r   r'   r%   test_bad_plot_argsr
  o  s    	z	"	" 
#	z	"	"t 
#	z	"	"&!288F#34 
#	z	"	""))A,&&w/11E1Eb!1LMN 
#	" 
#	"	"	"	"	"	"	"	"	"	"s1   E:$F&A F"A F5:F	F	"F2	5G	zxy, clsc                 ~    \         P                  ! 4       w  r4\        VP                  ! . V OVN5!  4      V8X  g   Q hR # r  )r)   r   r)  r  )r  r  clsr/   r$   s   &&&  r%   test_pcolorfastr
  z  s5     llnGC(r(4()S000r'   c            	      T   \         P                  ! 4       w  r\        P                  ! \        R R7      ;_uu_ 4        VP                  \        P                  ! ^4      \        P                  ! R4      \        P                  ! R4      4       RRR4       R#   + '       g   i     R# ; i)z)the given X was 1D and the given Y was 2Drh  N)r  r`  r#	  )r)   r   r   r   r   r  rk   emptyr.   s     r%   test_pcolorfast_bad_dimsr
    sk    llnGC	I
L 
L
bhhqk288F#3RXXf5EF
L 
L 
L 
Ls   ABB'	c            
        \         P                  ! 4       w  r\        P                  ! \        RR7      ;_uu_ 4        VP                  \        P                  ! ^4      \        P                  ! ^4      \        P                  P                  ^
^4      4       RRR4       \        P                  ! \        RR7      ;_uu_ 4        VP                  \        P                  ! ^4      \        P                  ! ^4      \        P                  P                  ^
^4      4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)aU  
Test that the sizes of X, Y, C are compatible for regularly spaced X, Y.

Note that after the regualar-spacing check, pcolorfast may go into the
fast "image" mode, where the individual X, Y positions are not used anymore.
Therefore, the algorithm had worked with any regularly number of regularly
spaced values, but discarded their values.
zKLength of X \(5\) must be one larger than the number of columns in C \(20\)rh  NzHLength of Y \(5\) must be one larger than the number of rows in C \(10\))
r)   r   r   r   r  r  rk   rs   rl   r~   r.   s     r%   ,test_pcolorfast_regular_xy_incompatible_sizer
    s     llnGC	 ?
@ 
@ 	biilBIIbM299>>"b3IJ
@
 
 <
= 
= 	biimRYYq\299>>"b3IJ
= 
=
@ 
@

= 
= 
=s   AD&AD9&D6	9E
	c                     \         P                  ! ^^RRR7      w  rVR,          P                  R4       VR,          P                  R4       VP                   F1  pVP                  4       R8X  g   Q hVP                  4       R8X  d   K1  Q h	  VR,          P                  R4       VR,          P                  R4       VP                   F1  pVP                  4       R8X  g   Q hVP                  4       R8X  d   K1  Q h	  R# )r/  Tr	  r%  rC  Nr  ru  )r)   r   rF  r  r  
get_yscale
get_xscaler/   r  r$   s      r%   test_shared_scaler
    s    ||Aqd;HCIIhh}}%'''}}%'''  I"I"hh}}(***}}(*** r'   c                  \   \         P                  ! \        4      ;_uu_ 4        \        P                  ! R R7       RRR4       \         P                  ! \        4      ;_uu_ 4        \        P                  ! R R7       RRR4       R#   + '       g   i     LT; i  + '       g   i     R# ; i)Tr  NrW  )r   r   r   r)   ra  r   r'   r%   test_shared_boolr
    sX    	y	!	!4  
"	y	!	!4  
"	! 
"	!	!	!	!s   B%BB	B+	c                 ^    \         P                  ! \        P                  ! ^ ^ .4      4       R# )z4Violin plot should handle point mass pdf gracefully.N)r)   r0  rk   rF  r   r'   r%   test_violin_point_massr
    s    NN288QF#$r'   c            
          \        R \        P                  ! ^4      .4      \        R\        P                  ! ^4      .4      ,           p \        R^. RO. RO. RO.\        P                  ! ^4      \        P                  ! R4      R.4      p\        RV4      p\        RV4      p\        R . .4      \        R. .4      ,           \        R. R.4      ,          \        R. R.4      ,          pW,          pW,          pW,          V,          p. VOVOVOVO# )r4   r5   r	  NrM  rN  )r;   r;   r;   r;   r;   )r/  r  )r
   rk   rs   r   )base_xy
err_cyclerxerr_cyyerr_cyr
  	xerr_only	yerr_onlyboth_errs           r%   generate_errorbar_inputsr
    s    S299Q<.)F3,EEG /!0!0!2 "
 " $ " #J VZ(GVZ(GS2$&rd"33FRJ'(*0"d*DEE!I!I 7*H6Y66X666r'   c                 t    \         P                  ! 4       pVP                  ! R/ V B pVP                  4        R # )Nr   )r)   rZ  rI  r`  )r  r$   ebs   &  r%   test_errorbar_inputs_shotgunr
    s'    	B		v	BIIKr'   dash_offsetc            	          \         P                  ! 4       w  r\        P                  ! ^ ^
4      p\        P                  ! V4      p\        ^ ^d^4       F!  pVP                  W$V,          VR3^RR7       K#  	  R# )r   r6  )r   r@  r   NrT  rT  )r)   r   rk   r   	ones_liker   r   )r/   r$   r4   r5   rS  s        r%   test_dash_offsetr
    s[    llnGC
ArA
QA1c1
Q3Ax=Qc: r'   c                     \         P                  ! 4       w  rVP                  R RR7       VP                  P	                  4       pVR,          RV P
                  ,          8X  g   Q hVP                  R RR7       VP                  P	                  4       pVR,          R8X  g   Q hVP                  R RR7       VP                  P	                  4       pVR,          \        P                  R,          R,          V P
                  ,          8X  g   Q hR# )	aardvarkr"  r	  r?  r  Nzaxes.titlepadrj  g?)r)   r   r7   titleOffsetTrans
get_matrixr'  rX   r   )r/   r$   r  s      r%   test_title_padr
    s     llnGCLLL%
&&(AU8	CGG+,,,LLL$
&&(AU8r>>LLL&
&&(AU8
++O<sBSWWLMMMr'   c                     \         P                  ! 4       w  rR \         P                  R&   VP                  R4       VP                  RRR7       VP                  RRR7       RVP	                  RR7      8X  g   Q hRVP	                  RR7      8X  g   Q hRVP	                  R R7      8X  g   Q h\
        P                  ! \        4      ;_uu_ 4        VP	                  RR7       RRR4       \
        P                  ! \        4      ;_uu_ 4        VP                  RRR7       RRR4       R#   + '       g   i     LP; i  + '       g   i     R# ; i)	r[   zaxes.titlelocationr
  rR   rA   rD   r  Nfail)r)   r   r   r7   	get_titler   r   r  r.   s     r%   test_title_location_roundtripr
    s    llnGC)1CLL%&LLLLVL$LLgL&R\\f\----bllwl////(3333	z	"	"
 
#	z	"	"
V' 
#	" 
#	"	"	"	"s   D*D=*D:	=E	r  c                 v   \         P                  ! ^^V R7      w  rV^ ,          P                  RRR7       V^,          P                  RRR7       VP                  4        V^ ,          P                  P                  4       w  r4V^,          P                  P                  4       w  r5YEu;8X  d	   R8X  g   Q h Q hR# )r/  r  r<  r
  r=  r   Ni)r)   r   r7   rd  r3   r	  )r  r/   r  r4   r  rJ  s   &     r%   test_title_location_sharedr    s    ||Aq0HCFSc"FSc" FLL%%'EAFLL%%'EA?s???r'   z
loglog.pngc                      \         P                  ! 4       w  r\        P                  ! ^^4      pVP	                  W"^,          ^R7       VP                  ^^R7       VP                  ^^RR7       R# )r;   rB  )r	  r  r  )r	  r  r  N)r)   r   rk   rs   r  r	  )r/   r$   r4   s      r%   test_loglogr    sU    llnGC
		!RAIIaA!INN"AN&NN"AWN5r'   ztest_loglog_nonpos.pnggV-?)r  r   r   c                     \         P                  ! ^^4      w  r\        P                  ! ^^4      pV^,          pRV^&   RV^&   \	        \        . R	O^R7      VP                  4       F  w  w  rEpWT8X  dB   V'       d   VP                  W#^,          ^VR7       K3  VP                  W#^,          ^R7       KO  VP                  W#^,          ^R7       V'       d   VP                  RVR7       V'       g   K  VP                  RVR7       K  	  R# )
r  )r  )r@  nonpositiverB  r%  )r  Ng      r  )r  r  r   )
r)   r   rk   rs   r  r   r  r  rF  r  )r/   r  r4   r5   mcymcxr$   s          r%   test_loglog_nonposr  #  s     ||Aq!HC
		!RA	1AAaDAaDg&:1E!hh(
B:		!TaS	9		!Ta	(IIaA!I$e5se5(r'   c                     \         P                  ! 4       w  rVP                  . RO4       VP                  4       ^ ,          ^ 8w  g   Q h\         P                  ! 4       w  rVP	                  . RO. RO4       VP                  4       ^ ,          ^ 8X  g   Q h\         P                  ! 4       w  rVP                  . RO. RO4       VP                  4       ^ ,          ^ 8X  g   Q h\         P                  ! 4       w  rVP                  \        P                  ! R4      4       VP                  4       R8X  g   Q hVP                  4       R8X  g   Q h\         P                  ! 4       w  rVP                  \        P                  ! R4      4       VP                  4       R8X  g   Q hVP                  4       R8X  g   Q h\         P                  ! 4       w  rVP                  \        P                  ! ^
4      4       VP                  4       ^ ,          ^ 8X  g   Q h\         P                  ! 4       w  rVP                  \        P                  ! R4      4       VP                  4       R8X  g   Q hVP                  4       R8X  g   Q hR# )r   Nr2  )r;   r;   r;   r;   r
  rJ  )r  g      #@)r)   r   r   r
  r  r  r
  rX  rk   r  r  r  rs   r   r.   s     r%   test_axes_marginsr
  :  s   llnGCGGL==?1"""llnGCFF<&==?1"""llnGCGGL,'==?1"""llnGCIIbhhx !==?g%%%==?g%%%llnGCMM"((8$%==?g%%%==?g%%%llnGCGGBIIbM==?1"""llnGCIIbhhx !==?k)))==?k)))r'   )r  c                 <    R  pR pRVRV/V P                   ,          # )c                     V P                  4       pVP                  4        V P                  ^ ^4       V P                  P	                  4       ! 4       pVR,          ^8  g   Q hR# r   Nr   )r  r`  r  r\   get_major_locatorr$   r  rF  s   &  r%   	_helper_x&shared_axis_remover.<locals>._helper_x^  I    hhj


ArHH&&(*urzzr'   c                     V P                  4       pVP                  4        V P                  ^ ^4       V P                  P	                  4       ! 4       pVR,          ^8  g   Q hR# r  )r  r`  r  r^   r  r  s   &  r%   	_helper_y&shared_axis_remover.<locals>._helper_ye  r  r'   r4   r5   )param)requestr  r  s   &  r%   shared_axis_removerr  \  s&     C+GMM::r'   c                    V P                   R 8X  d)   \        P                  ! 4       pVP                  4       pW3# V P                   R8X  d   \        P                  ! 4       w  rW3# V P                   R8X  d0   \        P                  ! ^^RRR7      w  rV^ ,          ^ ,          pW3# V P                   R8X  d)   \        P                  ! 4       pVP                  . RO4      pXX3# )rZ  r   subplots_sharedr  r	  rG  r   r   r  r  )r  r)   r   rZ  r   rG  )r  r/   r$   r	  s   &   r%   shared_axes_generatorr  o  s     }}jjlWWY 7N 
*	$,,. 7N 
+	+ll1aeDAYq\ 7N 
*	$jjl\\*+7Nr'   c                     V w  r#V! V4       R # r  r   )r  r  r/   r$   s   &&  r%   test_remove_shared_axesr    s    #GCr'   c                  .   \         P                  ! ^^RRR7      w  rV^ ,          ^ ,          pV^ ,          ^,          P                  4       pVP                  4        VP	                  ^ ^4       \        V^ ,          ^,          P                  4       V4       R# )r/  r  r	  N)r)   r   r   r`  r  r   )r/   r	  r$   	orig_xlims       r%   test_remove_shared_axes_relimr!    sm    ,,q!E%@KC	1Bq	!%%'IIIKKK1vay|,,.	:r'   c                     \         P                  ! R^Z^(4      p \         P                  P                  V P                  V P                  34      p\
        P                  ! ^^RRR7      w  pw  r4VP                  RR4       VP                  RR4       VP                  W V4       VP                  W V4       VP                  4       '       g   VP                  4       '       d   Q hVP                  4       '       g   VP                  4       '       d   Q hVP                  4       VP                  4       u;8X  d	   R8X  g   Q h Q hVP                  4       VP                  4       u;8X  d	   R8X  g   Q h Q hR# )rK  Tr	  r  Ni)r#  r  )rk   rs   rl   random_sampler  r)   r   r  r  r	  rN  rP  r   r   )r
  r  r/   r  r  s        r%   test_shared_axes_autoscaler%    s   
		#r2A
		 01All1aTBOC#LLLLKKaKKa$$&&s/D/D/F/FFF$$&&s/D/D/F/FFF<<>S\\^<}<<<<<<<>S\\^<}<<<<<r'   c                     \         P                  ! 4       w  rVP                  P                  4       P	                  R R7       VP                  ^ R4       VP                  R4       V P                  P                  4        \        VP                  P                  4       ! 4       4      ^8X  g   Q hVP                  ^ R4       V P                  P                  4        \        VP                  P                  4       ! 4       4      ^8  g   Q hR# )r  r  r  r  N)r)   r   r^   r  
set_paramsr  r	  r  r  r  r  r.   s     r%   test_adjust_numtick_aspectr(    s    llnGCHH ++&+9KK4MM'JJOOrxx))+-.!333KK4JJOOrxx))+-.222r'   c                      \         P                  ! 4       P                  ^^4      p V P                   F9  p. VP	                  4       O. VP                  4       Ou;8X  d   . RO8X  d   K6  Q h Q h	  R# )r  NrC  )r)   r   r   r  r{  rj
  rr	  s     r%   test_auto_numticksr*    sX    
**,

1
%Chh!!%7r}}%7F;FFFFF r'   c                     \         P                  ! 4       w  rR \        P                  R&   VP	                  RR.R^
.4       \
        P                  ! VP                  4       4      \
        P                  ! R^^4      8H  P                  4       '       g   Q h\
        P                  ! VP                  4       4      \
        P                  ! R^
^4      8H  P                  4       '       g   Q hR# )round_numbersaxes.autolimit_modeg#B;g     j@缉ؗҜ<Nir  )r)   r   r   r   r  rk   log10r{  rs   r  rj
  r.   s     r%   test_auto_numticks_logr0    s     llnGC*9CLL&'IIuclUBK(HHR]]_%3A)>>CCEEEEHHR]]_%3A)>>CCEEEEr'   c                  X    \         P                  ! 4       w  rVP                  . R4       R# )r   N)r   r   )r)   r   r`  r.   s     r%   test_broken_barh_emptyr2    s    llnGCNN2x r'   c                    \         P                  ! 4       w  r\        P                  ! R^^	^ ^ ^ 4      pVP                  V\        P                  ! ^R7      3.^^.4      pVP                  4       ^ ,          P                  R,          \        P                  ! V4      8X  g   Q hVP                  4       ^ ,          P                  R,          \        P                  ! V4      R,           8X  g   Q hR# )z9Check that timedelta works as x, dx pair for this method.r[  r\  Nr  r/  r   gUUUUUU?)	r)   r   r5  r`  r  r  verticesr7  r8  )r/   r$   d0pps       r%   test_broken_barh_timedeltar8    s    llnGC			4Q1a	0B	"h00q9:;aV	DB<<>!%%d+vr/BBBB<<>!%%d+vr/BV/KKKKr'   c                     V P                  R ^
R7      p\        P                  ! ^4      p\        P                  P	                  ^^	4      p\
        P                  ! 4       w  rEVP                  WV4       R# )z
2000-01-01)rj  N)rn  rk   rs   rl   r~   r)   r   r  )rr  timedepthr  r/   r$   s   &     r%   test_pandas_pcolormeshr<    sP    ==r=2DIIbME99>>"a DllnGCMM$t$r'   c                    \         P                  ! R RRR7      p\         P                  ! \        \	        V4      4      4      pV P                  RVRV/4      p\        P                  ! 4       pV\         P                  ! VP                  4      ^,          ^8H  ,          P                  4       pVP                  RRVR7       R# )z2005-02z2005-03r/  r  r  r!  r]  N)rk   rs   r   r   r  r  r)   rZ  rF  r  rD  r   )rr  r  r!  r  r$   without_zero_indexs   &     r%   test_pandas_indexing_datesr?    s    IIi/BEVVE#e*%&F	wx8	9B	BBHHRXX.2a78==?GGGX$6G7r'   c                     V P                  \        P                  P                  R	R7      . R
O. ROR7      p\        P
                  ! 4       w  r#VP                  RRRRVR7       R# )r  r  r4   r5   xeye)columnsr  r  N)r  r  )r4   r5   rA  rB  rC  )r  rk   rl   r`  r)   r   rI  r  s   &   r%   test_pandas_errorbar_indexingrD    sT    	bii''V'44+ 
 
-B llnGCKKSt$RK8r'   c                     V P                  R . ROR. RO/4      p\        P                  ! 4       w  r#VP                  VP                  VR,          4       R# )XXYYNr  )r`  r;   r/  )r  r)   r   r   r  r  s   &   r%   test_pandas_index_shaperH    s<    	tYi8	9BllnGCGGBHHbhr'   c                     V P                  . ROR7      pVP                  R,          p\        P                  ! 4       w  r4VP	                  V4       R# )r;   r]  r  N)
r;   r/  r/  r  r  r  r  r  r  r  )r  ilocr)   r   r  )rr  ser_1ser_2r/   r$   s   &    r%   test_pandas_indexing_histrM    s8    II9I:EJJrNEllnGCGGENr'   c                 T   V P                  R \        ^4      R\        ^4      /4      p\        P                  ! ^4      w  r#VP	                  VP
                  VR ,          ^8H  R3,          VP
                  VR ,          ^8H  R3,          RR7       VP                  P                  4        R# )r   r  r[   r8  N)r  r   r)   r   r  rB   r  r  r  s   &   r%   test_pandas_bar_align_centerrO    s    	sE!Hc584	5Bll1oGCFF266"S'Q,#$66"S'Q,#$   JJOOr'   c                  R   \         P                  ! 4       P                  p / V P                  R R7      Cp/ V P                  RR7      CpV P	                  V P
                  RR7      pV P	                  V P                  RR7      pW18X  g   Q hWB8X  g   Q hV P                  ^RRRR7       / V P                  R R7      Cp/ V P                  RR7      CpV P	                  V4      pV P	                  V4      pW8w  g   Q hV P
                  V8X  g   Q hW&8w  g   Q hV P                  V8X  g   Q hR	# )
r	  r  r  T)reverser1  r	  r   )r	  r	  r	  r  N)r)   ra  r^   get_tick_params_translate_tick_paramsr
  r
  set_tick_params)	r  initial_major_style_translatedinitial_minor_style_translatedtranslated_major_kwtranslated_minor_kwnew_major_style_translatednew_minor_style_translatednew_major_stylenew_minor_styles	            r%   test_axis_get_tick_paramsr]    sV   ;;=D%L(<(<7(<(K%L"%L(<(<7(<(K%L"55T 6  55T 6  @@@@@@2%#(  8 "ID$8$8w$8$G!H!HD$8$8w$8$G!H112LMO112LMO)GGG/111)GGG/111r'   c                  0   \         P                  ! 4       p V P                  P                  ^RRR7       V P                  P                  ^ ,          P
                  R8X  g   Q hV P                  P                  ^ ,          P                  P                  4       R8X  g   Q hV P                  P                  ^ ,          P                  P                  4       R8X  g   Q hV P                  P                  ^ ,          P                  P                  4       R8X  g   Q hR# )r  r1  r	  )r	  r	  r	  r  r6  r"  N)
r)   ra  r^   rT  r	  r	  	tick1liner  r8  rB
  )axis_1s    r%   .test_axis_set_tick_params_labelsize_labelcolorra    s    [[]F
LL  2%+0 ! 2 <<""1%++s222<<""1%//99;sBBB<<""1%,,5574???<<""1%,,668EAAAr'   c                  (   \         P                  ! 4       p V P                  R ^RRR7       V P                  V P                  3 F  pVP
                  ^ ,          P                  P                  4       R 8X  g   Q hVP
                  ^ ,          P                  P                  4       ^8X  g   Q hVP
                  ^ ,          P                  P                  4       R8X  g   Q hVP
                  ^ ,          P                  P                  4       R8X  d   K  Q h	  R# )r  r   r  )r	  r	  r	  r	  r  N)r)   ra  r	  r\   r^   r	  r	  r  get_linewidthr  r  )r$   r  s     r%   test_axes_tick_params_gridlinesrd  )  s    	BNNc!"+  -"(("q!**446#===q!**88:a???q!**446#===q!**88:dBBB	 #r'   c                  X   \         P                  ! 4       p V P                  R RRR7       V P                  R RRR7       V P                  P                  ^ ,          P
                  P                  4       R J g   Q hV P                  P                  ^ ,          P                  P                  4       RJ g   Q hV P                  P                  ^ ,          P
                  P                  4       R J g   Q hV P                  P                  ^ ,          P                  P                  4       RJ g   Q hR# )FTr	  )	labelleft
labelrightr  r  N)	r)   ra  r	  r^   r	  r8  r  label2r	  r  s    r%    test_axes_tick_params_ylabelsideri  5  s    	BNNUt   "NNUt   " 88q!((446%???88q!((446$>>>88q!((446%???88q!((446$>>>r'   c                  X   \         P                  ! 4       p V P                  R RRR7       V P                  R RRR7       V P                  P                  ^ ,          P
                  P                  4       RJ g   Q hV P                  P                  ^ ,          P                  P                  4       R J g   Q hV P                  P                  ^ ,          P
                  P                  4       RJ g   Q hV P                  P                  ^ ,          P                  P                  4       R J g   Q hR# )TFr	  )labeltoplabelbottomr  r  N)	r)   ra  r	  r\   r	  r8  r  rh  r	  r  s    r%    test_axes_tick_params_xlabelsiderm  C  s    	BNNDe   "NNDe   "
 88q!((446%???88q!((446$>>>88q!((446%???88q!((446$>>>r'   c                      \         P                  ! 4       P                  4       p V P                  \	        ^ 4      RR7      w  pVP                  4       R8X  g   Q hR# )r   NrE  rC  )r)   r   r   r   r   r  )r$   lns     r%   test_none_kwargsrp  S  sE    				 B
''%)t'
,CB$$$r'   c                      . ROp \         P                  ! \        P                  ! V \        P                  R7      . RORR7      p\        VP                  V 4       F  w  r#VP                  ^ ,          V8X  d   K  Q h	  R# )r   r  r(  r8  Nr2  )r/  r  r  r  )r)   r  rk   rF  uint8r  r3  r  )r  r  r  r4   s       r%   test_bar_uint8rs  Y  sU    	B288,l&IA!))R(
xx{a )r'   zdate_timezone_x.pngr   c                     \        ^4       U u. uF;  p \        P                  ! R^^V \        P                  P	                  R4      R7      NK=  	  pp \
        P                  ! RR7       \
        P                  ! ^^^4       \        P                  ! \        P                  4      ;_uu_ 4        \
        P                  ! V^.^,          RR7       RRR4       \
        P                  ! ^^^4       \        P                  ! \        P                  4      ;_uu_ 4        \
        P                  ! V^.^,          RR7       RRR4       R# u up i   + '       g   i     L; i  + '       g   i     R# ; i)	r    Canada/Easternr   tzinfor5  )tzNUTCr  rD  r   r5  r"  ry  gettzr)   r   ra  r   r  r   rc  rd  r4   
time_indexs     r%   test_date_timezone_xr  `  s    
 !8%#a ##D!Ra+3;;+<+<=M+NP#  %
 JJx KK1a	c66	7	7j1#'.>? 
8 KK1a	c66	7	7j1#'e4 
8	7% 
8	7
 
8	7	7s   AE,"E"EE	E/	zdate_timezone_y.pngc                     \        ^4       U u. uF;  p \        P                  ! R^^V \        P                  P	                  R4      R7      NK=  	  pp \
        P                  ! R
R7       \
        P                  ! ^^^4       \        P                  ! \        P                  4      ;_uu_ 4        \
        P                  ! ^.^,          VRRRR7       RRR4       \
        P                  ! ^^^4       \        P                  ! \        P                  4      ;_uu_ 4        \
        P                  ! ^.^,          VR	RRR7       RRR4       R# u up i   + '       g   i     L; i  + '       g   i     R# ; i)r  ru  rv  rw  r5  FT)ry  xdateydateNrz  r{  r|  r~  s     r%   test_date_timezone_yr  s  s   
 !8%#a ##D!Ra+3;;+<+<=M+NP#  %
 JJx KK1a	c66	7	7qcAgz.>eSWX 
8 KK1a	c66	7	7qcAgze5M 
8	7% 
8	7
 
8	7	7s   AE
,$E$E"E	"E3	zdate_timezone_x_and_y.pngc                     \         P                  P                  p \        ^4       Uu. uF  p\         P                   ! R^^WR7      NK  	  pp\        P
                  ! R	R7       \        P                  ! ^^^4       \        P                  ! \        P                  4      ;_uu_ 4        \        P                  ! W"RRR7       RRR4       \        P                  ! ^^^4       \        P                  ! \        P                  4      ;_uu_ 4        \        P                  ! W"RRR7       RRR4       R# u upi   + '       g   i     L}; i  + '       g   i     R# ; i)
r  ru  rw  r5  rz  T)ry  r  Nz
US/Easternr{  )r5  timezoneutcr   r)   r   ra  r   r  r   rc  rd  )rz  r4   r  s      r%   test_date_timezone_x_and_yr    s     



C 8%#a ##D!RaD#  % JJx KK1a	c66	7	7jdC 
8 KK1a	c66	7	7jTJ 
8	7% 
8	7
 
8	7	7s   #D2(D7E
7E	
E	zaxisbelow.pngc                     \         P                  ! 4       P                  ^RRR7      p Rp\        W4       F  w  r#VP	                  RR^
RR7       \
        P                  ! RRR7      pVP                  V4       VP                  RR	^R
7       VP                  RRRRR7       VP                  R,          P                  R4       VP                  V4       VP                  4       V8X  d   K  Q h	  R# )r  T)r  r  rX  Fr  r  rF  rG  r>   rC  )r   r   r,  )r@   rQ   rR   rD   rt  N)Fr  TrJ  r  )r)   r   r   r  r   ry  r$	  rx  r  r	  r}	  r    set_axisbelowget_axisbelow)r  settingsr$   settingcircs        r%   test_axisbelowr    s    
 **,

aT

BC$H3)
Rs3vS1
T
cSA6
5! 	 	0
		!  '
!!W,,, *r'   c                     \         P                  P                  R 4       \         P                  ! ^HR7      w  rVP	                  4       pVP                  R4      pVP                  R4      pV P                  P                  4        V P                  P                  4       pVP                  V4      P                  pVP                  V4      P                  pWg,
          p\        P                  ! V^4      '       g   Q hR# )r   )r'  Xlabel2TitleN)r)   r   r   r   r  r*   r7   r  r  get_rendererget_window_extentr=  r  rk   isclose)	r/   r$   r  xlabel2r3   rendererbbox_y0_titlebbox_y1_xlabel2y_diffs	            r%   test_titletwinyr    s    IIMM'llr"GC
((*CnnY'GLL!EJJOOzz&&(H++H588M//9<<O,F::fa    r'   c                     \         P                  ! 4       w  rV P                  R R7       VP                  4       pVP	                  R4       VP	                  R4       VP                  R4       RpVP                  P                  V4       V P                  P                  4       pVP                  V4       VP                  P                  4       V8X  g   Q hR# )r  )r@   Xlabelr  r  N)r   g(\?)r)   r   r  r  r*   r7   r3   r	  r  r  _update_title_positionr	  )r/   r$   r  r   r  s        r%   test_titlesetposr    s    llnGCC 
((*CMM(NN9LL
CHH#zz&&(Hh'88  "c)))r'   c                  6   R \         P                  R&   \        P                  ! 4       w  rVP                  P                  R4       VP                  R4       V P                  P                  4        VP                  P                  4       ^,          R8  g   Q hR # )Naxes.titleyr@   
xlabel topp=
ף?)r   r   r)   r   r\   r   r7   r  r  r3   r	  r.   s     r%   test_title_xticks_topr    si    "&CLLllnGCHH&LLJJOO88  "1%,,,r'   c                  ,   R \         P                  R&   \        P                  ! 4       w  rVP	                  RRRRRR7       VP                  R4       V P                  P                  4        VP                  P                  4       ^,          R8  g   Q hR # )Nr  r4   Tr  rQ   r@   rl  rk  r  r  )
r   r   r)   r   r	  r7   r  r  r3   r	  r.   s     r%   test_title_xticks_top_bothr    st    "&CLLllnGCNNDdT  KLLJJOO88  "1%,,,r'   zleft, centerc                 r   R \         P                  R&   \        P                  ! 4       w  r#VP	                  R4       VP                  V RR7       VP                  V4       VP                  4        V '       d3   V'       g+   VP                  P                  4       ^,          R8  g   Q hR # V '       g3   V'       d+   VP                  P                  4       ^,          R8X  g   Q hR # VP                  P                  4       ^,          pVP                  P                  4       ^,          pVR8  g   Q hWT8X  g   Q hR # )Nr  g   vH7BrR   rA   r   )
r   r   r)   r   r  r7   rd  _left_titler	  r3   )rR   r[   r/   r$   yleftr  s   &&    r%   test_title_above_offsetr    s     #'CLLllnGCKKLL6L"LL F~~**,Q/#555fxx$$&q)S000++-a0(('')!,s{{r'   c                  :   R \         P                  R&   \        P                  ! 4       p V P	                  . RO4      pVP                  RRRRRR7       VP                  R4      pV P                  P                  4        VP                  4       ^,          R8X  g   Q hR # )Nr  r4   Tr  Boor   )r   r  r  r   )
r   r   r)   r   rG  r	  r7   r  r  r	  )r/   r$   tts      r%   test_title_no_move_off_pager    s     #'CLL
**,C	+	,BNNDdT  K	e	BJJOO??Q3&&&r'   c                     R \         P                  R&   \        P                  ! 4       w  rVP	                  R4       V P                  4        VP                  P                  4       ^,          ^8X  g   Q hVP                  . RO4       V P                  4        VP                  P                  4       ^,          R8X  g   Q hR # )Nr  r  r[  )r   r;   r;   r   )	r   r   r)   r   r7   rd  r3   r	  
inset_axesr.   s     r%   test_title_inset_axr    s    "&CLLllnGCLL 88  "1%***MM.! 88  "1%,,,r'   c                      \         P                  ! 4       w  rVP                  . RO4       VP                  P	                  RR7       VP                  P                  4       P                  4       R8X  g   Q hR# )   @Ar1  )r	  Nr  g   eAg   FA)r)   r   r   r^   rT  get_offset_textr  r.   s     r%   test_offset_label_colorr    sU    llnGCGG$%HH.88##%//1U:::r'   c                     \         P                  ! 4       w  rVP                  . RO4       VP                  P	                  RRR7       VP                  P                  4       P                  4       '       g   Q hVP                  P	                  RR7       VP                  P                  4       P                  4       '       d   Q hR# )r  FT)label1Onlabel2On)r  Nr  )r)   r   r   r^   rT  r  r  r.   s     r%   test_offset_text_visibler    s    llnGCGG$%HHed;88##%113333HHe,xx'')5577777r'   c                      \         P                  ! 4       w  rVP                  ^\        P                  ! ^ R.4      ,           R,          4       V P
                  P                  4        R# )r;   g-q=gqىEN)r)   r   r   rk   rF  r  r  r.   s     r%   test_large_offsetr  (  s@    llnGCGGQ1f+&&%/0JJOOr'   c            
      P   \         P                  ! 4       w  r\        ^ ^<^
4       Uu. uF  p\        P                  ! R^^^V4      NK  	  pp\        P
                  ! ^ ^\        V4      4      p\        P
                  ! ^ ^2\        V4      4      ;rVVP                  W4WV4       R# u upi r   r  N)r)   r   r   r5  rk   r   r  barbsr/   r$   r:  r  r5   ur  s          r%   test_barb_unitsr  .  s    llnGC<A!R<LM<LqXtQB2<LEM
Aq#e*%AKK2s5z**AHHUq N   #B#c            
      P   \         P                  ! 4       w  r\        ^ ^<^
4       Uu. uF  p\        P                  ! R^^^V4      NK  	  pp\        P
                  ! ^ ^\        V4      4      p\        P
                  ! ^ ^2\        V4      4      ;rVVP                  W4WV4       R# u upi r  )r)   r   r   r5  rk   r   r  quiverr  s          r%   test_quiver_unitsr  6  s    llnGC<A!R<LM<LqXtQB2<LEM
Aq#e*%AKK2s5z**AIIe Nr  c                  l   \         P                  p \        P                  ! 4       w  r\	        ^4       F}  pVP                  \	        ^4      4      w  pVP                  \	        ^4      \	        ^4      4      pV F4  pV ! VP                  4       4      V ! VP                  4       4      8X  d   K4  Q h	  K  	  R# r  N)	r  to_rgbr)   r   r   r   r  r  rP  )r  r/   r$   rS  ro  brsbrs          r%   test_bar_color_cycler  >  s    ^^FllnGC1XggeAhffU1XuQx(B",,.)VB4D4D4F-GGGG  r'   c                     \         P                  ! ^^4      w  p w  rVP                  ^ ^.^ ^.4       VP                  ^ ^.^ ^.4       VP                  P	                  R^KR7       VP
                  P	                  R^ZR7       VP                  RR7       F  pVP                  4       ^K8X  d   K  Q h	  VP                  RR7       F  pVP                  4       ^Z8X  d   K  Q h	  VP                  R^5R7       VP                  R^#R7       VP                  RR7       F  pVP                  4       ^58X  d   K  Q h	  VP                  RR7       F  pVP                  4       ^#8X  d   K  Q h	  R	# )
r;   r   )r  rI  r  r4   )r  r	  r5   )r  rI  r	  N)
r)   r   r   r\   rT  r^   r  r@
  rk
  r	  )r  r$   r  texts       r%   test_tick_param_label_rotationr  H  sP   \\!Q'NC"GGQFQFHHaVaVHH6B7HH6B7"""0  "b((( 1"""0  "b((( 1 OOBO/OOrO*##'#2  "b((( 3##'#2  "b((( 3r'   c                     \         P                  ! 4       w  r\        ^4       Fw  pVP                  \        ^4      \        ^4      4      p\        P
                  ! RV 24      p\        VP                  4       P                  4       4      \        V4      8X  d   Kw  Q h	  \        ^^4       Fw  pVP                  \        ^4      \        ^4      4      p\        P
                  ! RV 24      p\        VP                  4       P                  4       4      \        V4      8X  d   Kw  Q h	  \        P
                  ! R4      pR Fb  pVP                  ! \        ^4      \        ^4      3/ VR/B p\        VP                  4       P                  4       4      \        V4      8X  d   Kb  Q h	  \        P
                  ! R4      p\        RR.^R7       F  w  r'VP                  ! \        ^4      \        ^4      3/ VR/B p\        P
                  ! RV 24      p\        VP                  4       P                  4       4      \        V4      8X  g   Q h\        VP                  4       P                  4       4      \        V4      8X  d   K  Q h	  R# )r  r  r6  r+  r]  )re  N)r*  r  r   )r)   r   r   r   r  r  r  r  squeezer%  r  r  )	r/   r$   rS  cctargetaledge_targetelface_targets	            r%   test_fillbetween_cycler  [  s   llnGC1X__U1XuQx01QC)R&&(0023uV}DDD 
 1a[eAha11QC)R&&(0023uV}DDD 
 __S!F2__U1XuQx=B9=R&&(0023uV}DDD 3 //#&KK6a@__U1XuQx=B9=oo!g.R&&(0023u[7IIIIR&&(0023u[7IIII	 Ar'   c                     R \         P                  R&   \         P                  ! 4       w  rRpVP                  V4       VP	                  ^
^d.^
^d.4       VP                  4       w  r4VP                  P                  4       pVP                  W4.4      w  rgVP                  ^
^d.4      w  rW,
          V,          p
\        Wj,           Wz,
          .W.4       R# )r  r-  r  N)
r)   r   r   set_xmarginr  r   r\   r  r)  r   )r/   r$   marginxlim0xlim1r)  xlim0txlim1tx0tx1tr  s              r%   test_log_marginsr  w  s    *0CLL&'llnGCFNN6KKS	B9%;;=LE&&(I((%8NF""B9-HCY& EV^V^4sjAr'   c                  <   ^p \         P                  ! V 4      \         P                  ! V 4      r!\         P                  ! V ^,           4      p\        P                  ! 4       w  rE\        P
                  ! \        4      ;_uu_ 4        VP                  WVR7       RRR4       \        P                  ! RR7      ;_uu_ 4        VP                  WRR7       RRR4       VP                  WR.V ,          R7       R#   + '       g   i     Lh; i  + '       g   i     L@; i)r  r>  Nr  rh  r_  )	rk   rs   r)   r   r   r   r  r<   r  )r  r4   r5   r  r/   r$   s         r%   test_color_length_mismatchr    s    	A99Q<1qYYqs^FllnGC	z	"	"


16
" 
#	F	G	G


1?
+ 
HJJq(1,J-	 
#	"	G	Gs   C8?D8D	D	c                  b    \         P                  ! R .RR7       \         P                  ! 4        R# )r   Labelr  N)r)   r  rJ   r   r'   r%   test_eventplot_legendr    s    MM3%w'JJLr'   r  zlineoffsets cannot be emptyr  zlinelengths cannot be emptyr  zlinewidths cannot be emptyr]  zlinestyles cannot be emptyr  zalpha cannot be emptyz!positions must be one-dimensionalz5lineoffsets and positions are unequal sized sequencesz5linelengths and positions are unequal sized sequencesz4linewidths and positions are unequal sized sequencesz4linestyles and positions are unequal sized sequencesz/alpha and positions are unequal sized sequencesz0colors and positions are unequal sized sequencesc                     \         P                  ! WR 7      ;_uu_ 4        \        P                  ! V/ VB  RRR4       R#   + '       g   i     R# ; ir	  )r   r   r)   r  r	  s   &&&&r%   test_eventplot_errorsr    s3    * 
s	(	(t&v& 
)	(	(	(r	  c                  :   \         P                  ! 4       w  rVP                  \        ^4      ^4       VP	                  ^ ^\        ^4      ^R7       VP                  ^ ^.^ ^.RR7      w  r#VP                  4       VP                  4       u;8X  d	   R8X  g   Q h Q hR# )r  )rR   r  r  N)r   r   r   r7  )r)   r   r  r   r  rQ  )r/   r$   rect1rect2s       r%   test_bar_broadcast_argsr    s    llnGCFF58QGGAquQxG*661a&1a&4D6ELE E$7$7$9M=MMMMMMr'   c                  N   \         P                  ! ^ ^.^ ^.4       \        P                  ! \        4      ;_uu_ 4        \         P
                  ! \        P                  4       RRR4       \        P                  ! \        4      ;_uu_ 4        \         P
                  ! \        P                  4       RRR4       \        P                  ! \        4      ;_uu_ 4        \         P                  ! \        P                  4       RRR4       \        P                  ! \        4      ;_uu_ 4        \         P                  ! \        P                  4       RRR4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; ir-  )
r)   r   r   r   r  r   rk   r  r  r   r   r'   r%   test_invalid_axis_limitsr    s    HHaVaV	z	"	" 
#	z	"	" 
#	z	"	" 
#	z	"	" 
#	" 
#	"	"	"	"	"	"	"	"s/   %E%E-%F +%FE*	-E=	 F	F$	r  rB  r%  r  c                     \         P                  ! 4       pVP                  . RO4       VP                  V 4       VP	                  V4       VP                  4        R# )r;   Nr  )r)   ra  r   rF  r  r  )r  r  r$   s   && r%   test_minorticks_onr    s?     
BGGLMM&MM&r'   c                     \         P                  ! 4       w  rVP                  ^^4       VP                  4       pVP	                  ^ R.^^.4       \         P                  ! 4       w  r4VP                  ^^4       VP	                  ^ R.^^.4       \        VP                  P                  VP                  P                  4       R# )r;   r   N)r)   r   r  r  r   r   r	  	intervalx)r/   r$   xtwinr1  r  s        r%   test_twinx_knows_limitsr    s    llnGCJJq!HHJE	JJ3x!Q IDKK1HHaX1vu}}..0E0EFr'   c                  B    \         P                  ! ^ ^.^ ^.R^ R7       R# )r   rD  )r   r@  N)r)   r   r   r'   r%   test_zero_linewidthr    s    HHaVaV+r'   c                      \         P                  ! 4       w  rVP                  . . . R R7       VP                  . . . RR7       VP                  4        R# )zempty y)rM  r2   zempty x)rN  r2   N)r)   r   rI  rJ   r.   s     r%   test_empty_errorbar_legendr    s@    llnGCKKBRyK1KKBRyK1IIKr'   c                    \         P                  ! R^
R4      pV Uu. uF=  pRV^,          ,          RV^,          ,          ,
          RV,          ,           R,           NK?  	  ppV Uu. uF  p\        V4      NK  	  ppV Uu. uF  p\        V4      NK  	  ppV P                  4       P	                  W64       VP                  4       P	                  W$4       R# u upi u upi u upi )rT  r   g@r  g\(\@r[  Nr  )rk   rs   r   r   r   )r"   r#   r<  r4   r=  r:  r5   s   &&     r%   test_plot_decimalr    s    	3C	 B@B	C1#Q,qAv
%q
03
6
6B	C RRA  RRA Q"B# 
D  s   AC&C C c                     V P                  4       P                  ^ RRRR7       VP                  4       P                  ^ RRRR7       R# )r   r   r&  r   )r  r  r^  N)r   r   )r"   r#   s   &&r%   test_markerfacecolor_none_alphar    sB    Qr:As26r'   c                    R\         P                  R&   R\         P                  R&   \         P                  ! 4       w  rVP                  V P                  P                  4       4      pVP                  R4       VP                  V P                  P                  4       4      pVP                  VP                  8  g   Q hVP                  VP                  8  g   Q hR# )z5Test that tick padding gets turned off if axis is offr	  r	  zytick.directionoffN)	r)   r   r   get_tightbboxr  r  r  r<  r=  r/   r$   bbbb2s       r%   test_tick_padding_tightbboxr    s    &+CLL"#&+CLL"#llnGC			#**113	4BGGEN


3::224
5C55366>>55366>>r'   c                    RRr\         P                  \        ^^V,           V4      \        ^^V ,           V 4      3,          w  r#\         P                  ! V4      ^
,          \         P                  ! ^
W#,          ,           4      \         P                  ! V4      ,          ,           p\
        P                  ! 4       w  rVVP                  W2VRR	1RR	13,          4       VP                  R4       VP                  4        RR.p^R.pV^ ,          V^ ,          V^,          V^ ,          ,
          V^,          V^ ,          ,
          .p	VP                  V	R7      p
V
P                  e   Q hVP                  P                  4        \         P                  ! RR.RR..4      p\         P                  ! V
P                   P#                  4       P%                  4       V8H  4      '       g   Q hR# )
z2
Ensure that inset_ax argument is indeed optional
r  Nr   r   333333@r2  )boundsr   r   )rk   mgridr	  r   r]  r)   r   r  r	  apply_aspectindicate_inset
connectorsr  r  rF  r  	rectangleget_bbox
get_points)dxdyr5   r4   r  r/   r$   r   r   rT  insetxxs               r%   
test_insetr    sy    488E!QVR(!QVR() *DA
q	R"&&ae,rvvay88AllnGCMM!#2#ss($MM"OO ;Ds8DGT!Wd1gQ/a471BCDT*E###JJOO	C9#;  
!B66%//**,779R?@@@@r'   c                  Z   R R r\         P                  \        ^^V,           V4      \        ^^V ,           V 4      3,          w  r#\         P                  ! V4      ^
,          \         P                  ! ^
W#,          ,           4      \         P                  ! V4      ,          ,           p\
        P                  ! 4       w  rVVP                  W2VRR1RR13,          4       VP                  R4       VP                  4        VP                  . RO4      pVP                  W2VRR1RR13,          4       VP                  RR.4       VP                  ^R.4       VP                  VP                  4       4       \        P                  ! \         P"                  4      ;_uu_ 4        VP%                  V4      w  rRRR4       VP&                  P)                  4        \+        X	4      ^8X  g   Q h\         P,                  ! RR.RR..4      p
\         P.                  ! XP1                  4       P3                  4       V
8H  4      '       g   Q h\         P,                  ! RR.R	R
..4      p
\         P4                  P7                  VP9                  4       P3                  4       V
RR7       R#   + '       g   i     L; i)r  Nr   r   r  r2  r   g=
ףp=?gKXc'?g(\?g?g-C6?rtolr   )r  r  r  r  )rk   r	  r	  r   r]  r)   r   r  r	  r
  r  r  r  r	  r   r  r   rc  indicate_inset_zoomr  r  r  rF  r  r  r  r   r   r	  )r  r  r5   r4   r  r/   r$   axin1recr  r  s              r%   test_zoom_insetr  (  s   488E!QVR(!QVR() *DA
q	2rACx(266!944AllnGCMM!#2#ss($MM"OO MM01E	Q1SbS#2#X;'	NNC;	NNAs8	R]]_%	c66	7	7007 
8JJOOz?a	C":#;  
!B66#,,.++-34444	FH%H%' 
(BJJ'')2D  : 
8	7s   JJ*	zinset_polar.pngc                  >   \         P                  ! 4       w  rVP                  . RORR7      p\        V\        4      '       g   Q h\
        P                  ! ^ ^R4      p^\
        P                  ,          V,          pVP                  WC4       VP                  WC4       R# )r   Tr  r  N)r   r   r  r  )	r)   r   r  r   r   rk   rs   r   r   )r  r$   axinsrF  r  s        r%   test_inset_polarr  J  sp    LLNEAMM0M=EeY''''
		!QAIMEGGE	JJur'   c                      \         P                  ! 4       w  rVP                  . RORR7      p\        V\        4      '       g   Q hR# )r   hammerr|  Nr   r   r   r   )r)   r   r  r   r   r  r$   r  s      r%   test_inset_projectionr#  W  s5    LLNEAMM.8MDEeZ((((r'   c                      \         P                  ! 4       w  rVP                  . RO\        P                  R7      p\        V\        P                  4      '       g   Q hR# )r   )r  Nr!  )r)   r   r  AAr   r   r"  s      r%   test_inset_subclassr&  ]  s=    LLNEAMM.277MCEeRWW%%%%r'   
x_inverted
y_invertedc                $   \         P                  ! ^^4      w  pw  r4\        P                  ! ^
4      pVP	                  WUR4       V '       d   VP                  4        V'       d   VP                  4        VP                  . ROV4      pVP                  w  rxrV '       d   RM^pV'       d   RM^pWP                  ^ ,          VP                  ^ ,          ,
          ,          ^ 8  g   Q hWP                  ^ ,          VP                  ^ ,          ,
          ,          ^ 8  g   Q hWP                  ^,          VP                  ^,          ,
          ,          ^ 8  g   Q hWP                  ^,          V	P                  ^,          ,
          ,          ^ 8  g   Q hR# )zJ
Test that the inset lines are correctly located with inverted data axes.
r   N)r/  r/  r  r  r   )
r)   r   rk   rs   r   r  r  r  r  r  )r'  r(  r/   r  r  r4   r  
lower_left
upper_leftlower_rightupper_rightsign_xsign_ys   &&           r%   test_indicate_inset_invertedr0  c  s'    ll1a(OC#
		"AHHQ3|S1E7<7G7G4JKR1FR1F__Q'*..*;;<q@@@__Q'*..*;;<q@@@^^A&)::;a???__Q'+//!*<<=AAAr'   c                  b   \         P                  ! 4       w  rVP                  R 4       VP                  . R	ORR7       \        P
                  ! VP                  4       P                  R4      '       g   Q hVP                  R4       VP                  . R	ORR7       \        P
                  ! VP                  4       P                  R4      '       g   Q hVP                  R 4       VP                  . R	ORR7       \        P
                  ! VP                  4       P                  R4      '       g   Q hR# )
r  r   r   r  r   r
  r  activeN)r   r   r7  r7  )r)   r   r	  r	  rk   r$  r	  r  r.   s     r%   test_set_positionr3  }  s    llnGCMM"OO(O7;;r(..4444MM"OO(
O;;;r(..5555MM"OO(O9;;r(..4444r'   c                     \         P                  ! 4       w  rVP                  P                  P	                  V P
                  P                  4       4      pVP                  RRRRR4       VP                  P                  P	                  V P
                  P                  4       4      p\        P                  P                  VP                  4       VP                  4       RR7       R# )rJ  r	  NFgư>r  )rJ  rJ  r  r  )r)   r   r}	  rQ   r  r  r  _set_view_from_bboxrk   r   r   r  r  s       r%   !test_spines_properbbox_after_zoomr6    s    llnGC				+	+CJJ,C,C,E	FB//
))


,
,SZZ-D-D-F
GCJJr}}0@tLr'   c                     \         P                  ! 4       w  rRpRpVP                  V4       VP                  V^ ,          V^,          R7       VP	                  R4       \
        P                  P                  W!P                  4       RR7       \
        P                  P                  W1P                  4       RR7       VP	                  R	4       R
pRpVP                  4       pVP                  4       p\
        P                  P                  V^,          V^ ,          ,
          R 4       \
        P                  P                  V^,          V^ ,          ,
          R4       \
        P                  P                  WFRR7       \
        P                  P                  WW4       VP	                  R4       VP                  4       pVP                  4       p\
        P                  P                  V^,          V^ ,          ,
          ^4       \
        P                  P                  V^,          V^ ,          ,
          ^4       \
        P                  P                  W&RR7       \
        P                  P                  W7RR7       R# )r   )r	  r	  r.  atolr   Nr  r   )r   r/  )r  r  r   )r  r  r   )gB!Bؿg{?)g      ڿg     ?)r  r  r   )
r)   r   r  r  r5  rk   r   r   r   r   )r/   r$   r   r   rw  new_ylimres_xlimres_ylims           r%   test_limits_after_scroll_zoomr>    s   llnGCDDKKKKT!W47K+ >*JJt[[]?JJt[[]? >*9H"H{{}H{{}HJJx{Xa[8#>JJx{Xa[8#>JJx>JJx2 ?+{{}H{{}HJJx{Xa[8!<JJx{Xa[8!<JJtE:JJtE:r'   c                  2   \         P                  ! 4       w  r\        V 4       VP                  \        P
                  ^R4       V P                  P                  4       p\        P                  P                  VP                  V4      P                  R4       R# )r;   r  i  N)r)   r   r   r  rk   r  r  r  r   r   r  r  )r/   r$   r  s      r%   test_gettightbbox_ignore_nanr@    sb    llnGCC GGBFFAuzz&&(HJJr//9??Er'   c                 :   \        ^
^4      pV P                  \        P                  P	                  ^R7      VR7      pV P                  \        P                  P	                  ^R7      VR7      pV P                  . ROVR7      p\
        P                  ! W#V4       R# )rT  r  r  N)r;   r;   r;   r;   r;   r   r   r   )r   r  rk   rl   r`  r)   r<   )rr  r  r4   r5   r>   s   &    r%   "test_scatter_series_non_zero_indexrB    sv    
B-C
		"))###+3	7A
		"))###+3	7A
		*#	6AKKar'   c                  h    \         P                  ! . . 4       \         P                  ! . . . . R 7       R# ))r  r>   N)r)   r<   r   r'   r%   test_scatter_empty_datarD    s"    KKBKKB"#r'   zannotate_across_transforms.png)r   r  r   c                  ,   \         P                  ! ^ ^
^4      p \         P                  ! V ) 4      \         P                  ! V 4      ,          p\        P
                  ! R	R7      w  r#VP                  W4       VP                  . R
O4      pVP                  R4       VP                  P                  R4       VP                  P                  R4       VP                  RV ^,          V^,          3VP                  RVP                  \        RR7      R7       R# )r   r5  r   Fr   r
  )r
  )r  r  r  r  r  N)gQ@r  )r7  r   r   r   rZ  )rk   r   rR  r   r)   r   r   r  r	  r\   r    r^   r  	transDatar7  r  )r4   r5   r/   r$   r  s        r%   test_annotate_across_transformsrG    s     	Ar3A
r
RVVAYAll9-GCGGAMMM./E	S	KKE"	KKE"KK##'",,%//40  2r'   c                   :   a  ] tR tRt o ^t^tR tR tR tRt	V t
R# )_Translationi  c                    Wn         R # r  r  )ro  r  s   &&r%   r#  _Translation.__init__  s    r'   c                &    WP                   ,           # r  rK  )ro  r!  s   &&r%   r)  _Translation.transform  s    r'   c                .    \        V P                  ) 4      # r  )rI  r  r  s   &r%   r  _Translation.inverted  s    TWWH%%r'   rK  N)rr  rs  rt  ru  
input_dimsoutput_dimsr#  r)  r  rv  rw  r  s   @r%   rI  rI    s#     JK & &r'   rI  zsecondary_xy.pnggS㥛?c                     \         P                  ! ^^RRR7      w  rR p\        V4       F  w  r4VP                  \        P
                  ! ^^4      \        P
                  ! ^^4      4       V^ 8X  d   VP                  pMVP                  pV! RW"3R7       V! RR R 3R7       V! R	R
 R 3R7       V! R4       T! V^ 8X  d   RMR\        ^4      R7       V! RVP                  R7       K  	  R# )r;   T)r~  rH  c                     \         P                  ! R R7      ;_uu_ 4        ^V ,          uuRRR4       #   + '       g   i     R# ; ir  r  Nrk   r  r  s   &r%   invert!test_secondary_xy.<locals>.invert  '    [[))q5 *)))	   	4A	r   	functionsr7  c                     ^V ,          # r/  r   r  s   &r%   r  #test_secondary_xy.<locals>.<lambda>  s    Ar'   c                     V ^,          # r^  r   r  s   &r%   r  r_    s    Qr'   r  c                     V ^,          # r^  r   r  s   &r%   r  r_     s    1r'   c                     V R,          # r  r   r  s   &r%   r  r_     s    Cr'   r  r@   rD   g      @r  Nr  )
r)   r   r  r   rk   rs   secondary_xaxissecondary_yaxisrI  rF  )r/   r  rW  nnr$   secaxs         r%   test_secondary_xyrg    s     ||Aq'dKHC C.
		!R "))Ar"237&&E&&Ecf-.co?@cn.@ABc
rQweG|AGdbll+ !r'   c                  0   \         P                  ! 4       w  rVP                  \        P                  ! ^^4      \        P                  ! ^^4      4       \
        P                  ! \        4      ;_uu_ 4        VP                  RR R7       RRR4       \
        P                  ! \        4      ;_uu_ 4        VP                  R4       RRR4       \
        P                  ! \        4      ;_uu_ 4        VP                  R4       RRR4       \
        P                  ! \        4      ;_uu_ 4        VP                  RRR7       RRR4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     Lv; i  + '       g   i     R# ; i)	r/  r   c                     ^V ,          # r;   r   r  s   &r%   r  %test_secondary_fail.<locals>.<lambda>
  s    QUr'   r[  NrD   rQ   errorr  )r)   r   r   rk   rs   r   r   r  rc  rd  r   r.   s     r%   test_secondary_failrm    s    llnGCGGBIIabii2./	z	"	"
3?< 
#	z	"	"
7# 
#	z	"	"
8$ 
#	y	!	!
3'2 
"	! 
#	"	"	"	"	"	!	!	!s0   6E5E1E1-FE	E.	1F	F	c                     \         P                  ! RR7      w  rVP                  \        P                  ! ^^4      \        P                  ! ^^4      4       R pVP                  RW"3R7       V P                  P                  4        V P                  R4       \        VP                  4       P                  . RO4       R# )	rT  r5  c                     \         P                  ! R R7      ;_uu_ 4        ^V ,          uuRRR4       #   + '       g   i     R# ; irU  rV  r  s   &r%   rW  %test_secondary_resize.<locals>.invert  rY  rZ  r@   r[  Nr  )r`  r  r
  )r)   r   r   rk   rs   rc  r  r  r  r   r	  r	  )r/   r$   rW  s      r%   test_secondary_resizerq    s    ll7+GCGGBIIabii2./ u(89JJOOBOO%--/EFr'   c                  f   \         P                  ! RR7      w  rVP                  \        P                  ! ^^4      \        P                  ! ^^4      4       R pVP                  RW"3R7      p\        VP                  P                  4       \        P                  4      '       g   Q hVP                  4        \        VP                  P                  4       \        P                  4      '       g   Q hVP                  R4       \         P                  ! 4        \        VP                  P                  4       \        P                  4      '       g   Q hVP                  R4       \         P                  ! 4        \        VP                  P                  4       \        P                  4      '       g   Q hR# )	rT  r5  c                     \         P                  ! R R7      ;_uu_ 4        ^V ,          uuRRR4       #   + '       g   i     R# ; irU  rV  r  s   &r%   rW  'test_secondary_minorloc.<locals>.invert%  rY  rZ  r@   r[  r%  rC  Nr  )r)   r   r   rk   rs   rc  r   _axisget_minor_locatorr   NullLocatorr  AutoMinorLocatorrF  r  
LogLocator)r/   r$   rW  rf  s       r%   test_secondary_minorlocrz  !  sG   ll7+GCGGBIIabii2./ u0@AEekk335))+ + + +	ekk335..0 0 0 0MM%HHJekk335((* * * *MM(HHJekk335))+ + + +r'   c                  |   \         P                  ! 4       w  rVP                  R 4       VP                  R4      pVP                  P                  \        P                  ! 4       4       V P                  P                  4        \        VP                  P                  4       \        P                  4      '       g   Q hR# )r%  r@   N)r)   r   rF  rc  r\   r   r   ScalarFormatterr  r  r   r   r/   r$   rf  s      r%   test_secondary_formatterr~  9  s    llnGCMM%u%E	KK##G$;$;$=>JJOO'')7+B+BD D D Dr'   c                  z    \         P                  ! 4       w  rVP                  R 4      p\        V4      R8X  g   Q hR# )r@   z<SecondaryAxis: >N)r)   r   rc  r8   r}  s      r%   test_secondary_reprr  C  s2    llnGCu%E;----r'   zaxis_options.pngc            
         \         P                  ! ^^4      w  r\        R4       F  w  r#V^ V3,          P                  RR	4       V^ V3,          P	                  V4       V^ V3,          P                  \        P                  ! R
RRRR7      4       V^V3,          P                  RR4       V^V3,          P	                  V4       V^V3,          P                  \        P                  ! RRRRR7      4       K  	  R# )r/  r   r&  r6  r 	  r  N)scaledr  imager.  )r;   g	@)r   r   )r;   g      @)r;   r   )r   rV  )r)   r   r  r   r  r2  ry  r$	  )r/   r_  r:  options       r%   test_axis_optionsr  I  s    Q"IC;<	 	QT
)QT
QT
hooj8>#O 	P 	QT
	9-QT
QT
hook$8>#O 	P =r'   c                   V P                   P                  4        V P                   P                  4       p. p\        VP                  VP
                  .4       F  w  rEVP                  V4      pV'       dZ   \        P                  ! VP                  VP                  3VP                  VP                  RRRR^R7      pV P                  V4       W6.,          pK  	  . p\        . R
O4       F  w  rIVP                  V	,          P                  V4      p\        P                  ! VP                  VP                  3VP                  VP                  RRRR^R7      p
V P                  V
4       W.,          pK  	  VP                  4       p\        P                  ! VP                  VP                  3VP                  VP                  RRRR^R7      pV P                  V4       TpVP                  V4      p\        P                  ! VP                  VP                  3VP                  VP                  ^R	RR^R7      pV P                  V4       TpW8W3# )zK
Helper for the tests below that test the extents of various Axes elements
r  r5   r&  N)r  r  r,  r+  r*  r)  rs  r   r   r  r1  )rQ   r@   rR   rD   )r  r  r  r  r\   r^   r  ry  rz  r<  r=  r  r  r2  r}	  r  )r/   r$   r  bbaxisre  axxr  axisrbbspinesr   spinerr  bbaxr  bbtbs   &&             r%   color_boxesr  [  s    JJOOzz&&(HFbhh12x(&&bhhryy$E NN5!$ 3 H=>YYq\++H5##UUBEEN"((299W$ 	vD ? 
			B	bhhryyfE NN5D


8
$C			#**u$E NN5DT''r'   c                  n   \        R R/4      ;_uu_ 4        \        P                  ! ^RR7      w  rV P                  P	                  4        \        P
                  ! V 4       \        W4      w  r#rERRR4       . RO. RO.p\        X4       FK  w  rx\        P                  P                  ! Wg,          !  p	\        VP                  V	P                  ^R7       KM  	  . RO. R	O. R
O. RO.p\        X4       FK  w  rx\        P                  P                  ! Wg,          !  p	\        VP                  V	P                  ^R7       KM  	  . ROp\        P                  P                  ! V!  p	\        XP                  V	P                  ^R7       . ROp\        P                  P                  ! V!  p	\        XP                  V	P                  ^R7       XP                  4       P                  X P                  4      P                  p
\        WP!                  4       P                  ^R7       R#   + '       g   i     EL; i)_internal.classic_modeFr'  r~  N)decimalr	  )g     ^@g8R@g     @g     @@)g8`U@gX@g     J@g     @     b@-]@     @F8&@r  g     @r  r  r  Nё\]@r        @gR!@r  r  r  r  g]@r  r  )g+e`U@gbhR@g{G@g{Gȏ@)r   r)   r   r  r  rc  r  r  r
  Bboxfrom_boundsr   r  r	  transformedtransFigurer  )r/   r$   r  r  r  r  r  re  r  targetbbaxbbs              r%   test_normal_axesr    s   	-u5	6	6,,37

		#'23';$$	 
7 	3=F 6"##//<!!((HOOQG #
 	(#(,	F 8$##//<!!((HOOQG % 7F++V4Hdkk8??AF2F++V4Hdkk8??AF ??((9@@Dd$8$8$:$A$A1MG 
7	6	6s   AH##H4	c                  (   \        R R/4      ;_uu_ 4        \        P                  ! ^RR7      w  rV P                  P	                  4        VP                  . . R7       \        W4      w  r#rERRR4       \        X4       F  w  rgVf   K  Q h	  . RO. R	O. R
O. RO.p\        X4       FK  w  rg\        P                  P                  ! W,          !  p	\        VP                  V	P                  RR7       KM  	  . ROp\        P                  P                  ! V!  p	\        XP                  V	P                  RR7       . ROp\        P                  P                  ! V!  p	\        XP                  V	P                  RR7       R#   + '       g   i     EL; i)r  Fr  xticklabelsyticklabelsNr  r8  r	  r  r  r  r  r  )r        ^@r  r  )r   r)   r   r  r  r   r  r  r
  r  r  r   r  )
r/   r$   r  r  r  r  re  r  r  r  s
             r%   test_nodecoratorr    s4   	-u5	6	6,,37


22.'23';$$	 
7 6"yy # 	(#(,	F 8$##//<(//= % 7F++V4HDKKt<%F++V4HDKKt<5 
7	6	6s   AF  F	c                  2   \        R R/4      ;_uu_ 4        \        P                  ! ^RR7      w  rVP                  . . R7       VP                  P
                  P                  R4       V P                  P                  4        \        W4      w  r#rERRR4       . R	O. R
O. RO. RO.p\        VX4       FE  w  rx\        P                  P                  ! V!  p	\        VP                  V	P                  RR7       KG  	  . ROp\        P                  P                  ! V!  p	\        XP                  V	P                  RR7       . ROp\        P                  P                  ! V!  p	\        XP                  V	P                  RR7       R#   + '       g   i     L; i)r  Fr  r  Nr  r8  r	  )r_  rN  )r        8@r  gs~8&@r  r  r  r  )r  r  r  g     @)r   r)   r   r   r}	  rQ   r	  r  r  r  r  r
  r  r  r   r  )
r/   r$   r  r  r  r  targetsr  bbspiner  s
             r%   test_displaced_spiner    s,   	-u5	6	6,,37
22.
		%%n5

'23';$$ 
7 	%#(,	G w1##//8dC 2 7F++V4HDKKt<%F++V4HDKKt</ 
7	6s   A;FF	c            
     >   . RO. R	O.. R
O. RO.. RO. RO..p \        . RO4       F  w  r\        RR/4      ;_uu_ 4        \        P                  ! ^RR7      w  r4VP	                  VR7       VP
                  P                  4        \        W44      w  rVrx\        ^ ^.4       FX  w  r\        P                  P                  ! W,          V	,          !  p\        Wj,          P                  VP                  RR7       KZ  	  RRR4       K  	  R#   + '       g   i     K  ; i)z?
Switch the tickdirs and make sure the bboxes switch with them
r  Fr  r	  r  r8  N)r  r  r  +e8&@)r  r  r  r  )r  gZӼ8[@r  88&@)g r\a@rO  r  r  )r  gqq\@r  r  )g88b@r  r  r  )r	  r	  inoutr	  )r  r   r)   r   r	  r  r  r  r
  r  r  r   r  )r  dnumdirsr/   r$   r  r  r  r  re  r   r  s               r%   test_tickdirsr    s     /-/<-/F<>	?G   67
159::llsF;GCNNTN*JJOO+6s+?(Fd$aV,&++77r9JKM(((//F - ;: 8:::s   B>DDc            	      
   \        R R/4      ;_uu_ 4        \        P                  ! ^RR7      w  rV P                  P	                  4        VP                  RRR7       \        W4      w  r#rE\        W4      w  r#rE. RO. RO.p\        ^4       FV  p\        P                  P                  ! Wg,          !  p\        W7^,          ,          P                  VP                  RR7       KX  	  \        P                  ! ^RR7      w  rV P                  P	                  4        VP                  RRR7       VP                  4        VP                  RR^R	7       V P                  P	                  4        \        W4      w  r#rE. RO. RO.p\        ^4       FV  p\        P                  P                  ! Wg,          !  p\        W7^,          ,          P                  VP                  RR7       KX  	  R
R
R
4       R
#   + '       g   i     R
# ; i)r  Fr  r   r	  )r  r	  r  r8  r  r
  Nr	  )r  g88[@r  r  )gCiq\a@r  r  r  )r  gPUUUUUB@r  gVUUUUT@)gz6P@r  goTT@r  )r   r)   r   r  r  r	  r  r   r
  r  r  r   r  r  )	r/   r$   r  r  r  r  r  r  r  s	            r%   test_minor_accountedforr    s   	-u5	6	6,,37


Vu5'23';$$'23';$$I79qA"''33WZ@HQ&&dD 
 ,,37


Vu5

F'"=

'23';$$G35 qA"''33WZ@HQ&&dD 1 
7	6	6	6s   GG11H	c                 ,   V P                  ^4      P                  R4       VP                  ^4      P                  R4       V P                  ^4      pVP                  R4       VP                  R4       VP                  ^4      P                  R4       R# )   Fr   TonN)r   r  r!   s   && r%   test_axis_bool_argumentsr     su     ""5)!!%(			c	"BGGENGGDM!!$'r'   c                      \         P                  ! 4       w  r^p^
p^p^pVP                  W#WE.4      p\        V4      W#WE38X  g   Q hW#3VP	                  4       8X  g   Q hWE3VP                  4       8X  g   Q hR# r  r)   r   r  r  r   r   r/   r$   ri   rj   r	  r	  r  s          r%   test_axis_extent_argr  *   s}    llnGCDDDDWWd$-.F =T4444 <2;;=(((<2;;=(((r'   c                      \         P                  ! 4       w  r^p^
p^p^pVP                  W#WER7      p\        V4      W#WE38X  g   Q hW#3VP	                  4       8X  g   Q hWE3VP                  4       8X  g   Q hR# )r  )ri   rj   r	  r	  Nr  r  s          r%   test_axis_extent_arg2r  :   s|    llnGCDDDDWW$W@F =T4444 <2;;=(((<2;;=(((r'   c                      \         P                  ! . RO. RO.RR7      w  rp V^ ,          ^8:  g   Q hVR,          ^8  g   Q hR# )r;   r  r  Nr  )r  r  r  r  r   )r)   r  r  r  s     r%   test_hist_auto_binsr  K   s;    9l3&AJAQ7a<<8q==r'   c                     \         P                  ! ^4      w  p w  r. ROpV\        P                  .,           pVP	                  V4      w  rVp\        P
                  ! RR7      ;_uu_ 4        VP	                  V4      w  rpRRR4       \        P                  P                  VX4       \        P                  P                  VX	4       R#   + '       g   i     LR; i)r/  r  r  Nr  )r)   r   rk   r  r  r  r   r   )
r/   r  r  r  nan_datar  r"  r  nanbinsnanedgess
             r%   test_hist_nan_datar  Q   s    ll1oOC#DrvvhHXXd^ND	X	&	&"xx11 
' JJtW-JJuh/	 
'	&s   +C

C	c                      \         P                  ! \        P                  P	                  ^
4      RRRR7      w  rp V^ ,          ^ 8X  g   Q hVR,          ^8X  g   Q hR# )rT  r  T)r   r  Nr  r   )r)   r  rk   rl   r~   r  s     r%   test_hist_range_and_densityr  _   sJ    "))..,f &6JAQ7a<<8q==r'   c                  V   \         P                  ! 4       w  r. ROpVP                  W"V^^R7      pVP                  P                  w  rEpVP
                   FO  pV F   pVP                  VP                  8  d   K   Q h	  V F   p	V	P                  VP                  8  d   K   Q h	  KQ  	  R# )r;   )r4   r  rN  r  rs  Nr  )r)   r   r  rI  r  r3  rs  )
r/   r$   r4   barcont	data_linecaplinesbarlinecolsr  capline
barlinecols
             r%   test_bar_errbar_zorderr  f   s     llnGCAffqAaf@G'.'7'7'='=$IG>>CJJ...  %J$$szz111 & r'   c                      \         P                  ! 4       w  rVP                  4        VP                  R R.4       VP	                  4       R8X  g   Q hVP                  R.4       VP	                  4       R8X  g   Q hR# )r   r  NrZ  r   rj  )r)   r   r  rf
  r   r.   s     r%   test_set_ticks_invertedr  u   s_    llnGCOOMM2r(;;=F"""MM2$;;=G###r'   c            	         \         P                  ! R	R7      p V P                  4       pVP                  RR.RR.4       VP	                  RR
RR^RR7       VP                  ^ 4       V P                  P                  VP                  4       4      pVP                  VP                  ,          \        P                  ! ^4      8X  g   Q hR# )rT  r5  r7  r  r%  logitr	  r  r   r  r   r   r	  Nr
  rC  )F]tE?g'^P?)r)   r   r   r   r   rH  r  transform_bboxr	  r  r  r   approx)r/   r$   r   s      r%   $test_aspect_nonlinear_adjustable_boxr  ~   s    
**X
&C		BGGRHr2hFF%g  ' JJqM
//
(
():
;C::		!V]]1%5555r'   c            	      ~   \         P                  ! R	R7      p V P                  . R
O4      pVP                  RR.RR.4       VP	                  RRRR^RR7       VP                  ^ 4       VP                  4        VP                  4       \        P                  ! RR.4      8X  g   Q hVP                  4       R8X  g   Q hR# )rT  r5  r7  r  r%  r  r	  r  Nr
  r  )r;   rY  )gbeF?r  gS[:XL	@g'In?@)r)   r   rG  r   r   rH  r
  r   r   r  r   r.   s     r%   (test_aspect_nonlinear_adjustable_datalimr     s    
**X
&C	&	'BGGRHr2hFF%h 1	  + JJqMOO;;=FMM;*FGGGG;;=----r'   c                     \         P                  ! 4       w  rVP                  4       pVP                  ^R.4       VP	                  ^4       VP                  4       R8X  g   Q h\         P                  ! 4       w  r4VP                  ^ 4       VP                  ^ ^.^^.4       VP                  RRR7       V P                  P                  4        VP                  P                  4        VP                  4       pVP                  4       pVP                  4       p\        VP                  VP                  4       \        VP                  VP                  4       R# )rD  iX  r   r  r	  r	  N)r)   r   r  r   set_box_aspectget_box_aspectrH  r	  r  r  r	  r   r	  )r0  r  axtwinr1  r  bb1bbtr  s           r%   test_box_aspectr     s     IDYY[F
KKS	q3&&&IDKKNHHaVaVNN7uN-KKKK



C



C



Cs{{CKK0s{{CKK0r'   c                  B   \         P                  ! 4       w  rVP                  . RO4       V P                  P	                  4        VP                  R4       \         P                  ! 4       w  r#VP                  R4       VP                  P	                  4        VP                  . RO4       V P                  P	                  4        VP                  P	                  4        VP                  4       pVP                  4       p\        VP                  VP                  4       R# )r   r   N)r   r   r<  r   )	r)   r   r	  r  r  r  r	  r   r	  )r0  r  r1  r  r  r  s         r%   test_box_aspect_custom_positionr     s     ID)*KKrIDrKK)*KKKK



C



Cs{{CKK0r'   c                  x   \         P                  ! ^^\        ^R7      RR7      w  rV P                  P	                  4        V P                  P                  4       p. pVP                   F;  pVP                  V4      pVP                  VP                  VP                  .4       K=  	  \        W3^ ,          4       R# )r/  )r	  T)r  rH  N)r)   r   r  r  r  r  r  r  rU  r  r  r   )r/   r  r  r
  r$   r  s         r%   test_bbox_aspect_axes_initr     s     ||AqTQ-?/35HCJJOOzz&&(HEhh!!(+bhh		*+  E8$r'   c                     \         P                  ! 4       w  r\        P                  ! \        R R7      ;_uu_ 4        VP                  R4       RRR4       \        P                  ! \        R R7      ;_uu_ 4        VP                  ^ 4       RRR4       \        P                  ! \        R R7      ;_uu_ 4        VP                  \        P                  4       RRR4       \        P                  ! \        R R7      ;_uu_ 4        VP                  \        P                  ) 4       RRR4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; i)zmust be finite and positiverh  Nr   )r)   r   r   r   r  r	  rk   r  r.   s     r%   test_set_aspect_negativer     s    llnGC	z)F	G	G
b 
H	z)F	G	G
a 
H	z)F	G	G
bff 
H	z)F	G	G
rvvg 
H	G 
H	G	G	G	G	G	G	G	Gs/   D/:E8 E!E(/D?	E	E%	(E9	c                      \         P                  ! ^^4      w  rVP                  . RO4       V P                  P	                  4        VP                  4        R# r  )r)   r   r   r  r  redraw_in_framer.   s     r%   test_redraw_in_framer     s:    ll1a GCGGIJJOOr'   c                      \         P                  ! 4       w  rV P                  P                  R4      f   Q hVP	                  R4       V P                  P                  R4      e   Q hR# )r  NF)r  r  )r)   r   r  inaxesr    r.   s     r%   test_invisible_axes_eventsr     sQ    llnGC::Z(444NN5::Z(000r'   c                      R \         P                  R&   \         P                  ! 4       p V P                  P	                  4       pV F$  pVP
                  P                  4       R 8w  d   K$  Q h	  R# r+  lines.markeredgecolorN)r)   r   r_  r\   get_major_ticksr_  get_markeredgecolorr$   ro
  r	  s      r%   "test_xtickcolor_is_not_markercolorr     S    ,3CLL()	BHH$$&E~~113w>>> r'   c                      R \         P                  R&   \         P                  ! 4       p V P                  P	                  4       pV F$  pVP
                  P                  4       R 8w  d   K$  Q h	  R# r  )r)   r   r_  r^   r  r_  r  r  s      r%   "test_ytickcolor_is_not_markercolorr     r  r'   r  r  c                    \         P                  ! 4       w  r#\        P                  ! ^d4      p\        P                  ! R	R^d4      pVP                  WT4       \        VRV  R24      p\        VRV  R24      p\        VRV  R24      pVf   V! 4       MTp	V! R
VR7       W! 4       8X  g   Q hVP                  P                  4        \        V! 4       R
4       R# )rY  r   get_autoscale_onr#  limget_N)r  rN  r:  )
r)   r   rk   rs   r   r<   r  r  r  r   )
r  r  r/   r$   r4   r5   r  set_limget_lim	post_autos
   &&        r%   test_unautoscaler  !  s     llnGC
		#A
CS!AJJqr]4&#<=bDc*+GbDc*+G&*l "IKd#(****JJOOwy+.r'   c                 p   V P                  R R7      P                  ^ \        P                  ^,          .^^.4      w  p^dVP	                  4       n        VP                  R R7      P                  \        P                  ! ^ \        P                  ^,          ^e4      \        P                  ! ^^^e4      4       R# )r  r|  N)r   r   rk   r   get_path_interpolation_stepsr   )r"   r#   r
  s   && r%   )test_polar_interpolation_steps_variable_rr	  !  s    					1	6	62557|aV	LBA(+AJJL%7+00
AruuQw$bkk!Q&<>r'   c                      \         P                  ! 4       w  rVP                  ^ R4       V P                  P	                  4        VP                  4       R8X  g   Q hR# )r   g&.>N)r   g	>)r)   r   r  r  r  r   r.   s     r%   test_autoscale_tiny_stickyr  "!  s>    llnGCFF1dOJJOO;;=L(((r'   c                  F   R \         P                  R&   R\         P                  R&   \         P                  ! 4       p V P                  P	                  4       pV FE  pVP
                  P                  4       R 8X  g   Q hVP                  P                  4       R8X  d   KE  Q h	  R# )r  r	  r   r	  N)r)   r   r_  r\   r  r_  r  r8  r  s      r%   &test_xtickcolor_is_not_xticklabelcolorr  *!  |    "*CLL'-CLL#$	BHH$$&E~~'')X555{{$$&&000 r'   c                  F   R \         P                  R&   R\         P                  R&   \         P                  ! 4       p V P                  P	                  4       pV FE  pVP
                  P                  4       R 8X  g   Q hVP                  P                  4       R8X  d   KE  Q h	  R# )r  ytick.colorr   ytick.labelcolorN)r)   r   r_  r^   r  r_  r  r8  r  s      r%   &test_ytickcolor_is_not_yticklabelcolorr  4!  r  r'   c                  x   R \         P                  R&   \         P                  ! 4       p V P                  P                  P                  4       R 8X  g   Q hR\         P                  R&   R\         P                  R&   \         P                  ! 4       p V P                  P                  P                  4       R8X  g   Q hR# )r   r	  r  r	  inheritN)r)   r   r_  r\   r
  r  r  s    r%   test_xaxis_offsetText_colorr  >!  s    '-CLL#$	B88((*f444"*CLL'0CLL#$	B88((*h666r'   c                  x   R \         P                  R&   \         P                  ! 4       p V P                  P                  P                  4       R 8X  g   Q hR\         P                  R&   R\         P                  R&   \         P                  ! 4       p V P                  P                  P                  4       R8X  g   Q hR# )r   r  r1  r  r  N)r)   r   r_  r^   r
  r  r  s    r%   test_yaxis_offsetText_colorr  I!  s    '.CLL#$	B88((*g555"'CLL'0CLL#$	B88((*e333r'   r  c                    V \         P                  R &   V \         P                  R&   \        P                  ! 4       w  rVP                  P                  4        \        RR.VP                  VP                  .4       FL  w  r4VP                  4        F3  pVP                  P                  4       VP                  V4      8X  d   K3  Q h	  KN  	  R# )r	  zytick.labelsizer4   r5   N)r   r   r)   r   r  r  r  r\   r^   r  r8  rB
  _get_tick_label_size)r  r/   r$   namer  r	  s   &     r%   test_relative_ticklabel_sizesr  T!  s     '+CLL"#&*CLL"#llnGCJJOO3*rxx&:;
((*D;;'')T-F-Ft-LLLL + <r'   c                     \         P                  ! 4       p V P                  ^^RR7      w  rVP                  . RO. RO4       VP	                  R^4       VP                  4       p\        P                  ! VRR.4      '       g   Q hR# )	r/  r  r  PF  ipI  N)r  iJG  iDH  i>I  )r/  r  r/  r  r  )r)   r   r   r   r  r   rk   r$  )r/   r  r  r   s       r%   test_multiplot_autoscaler  b!  sf    
**,C||Aq|/HCHH)<8KKA<<>D;;teU^,,,,r'   c                  J   \         P                  ! 4       p V P                  ^4      pV P                  . ROVR7      pVP	                  4       pV P                  ^ R7       VP	                  4       P                  4       VP                  4       8H  P                  4       '       g   Q hR# )   r  rR   N)r  r  r   r   )r)   r   r   rG  r	  r  r  r  )r/   re  r  init_poss       r%   $test_sharing_does_not_link_positionsr#  k!  s    
**,C
//#
C
,,',
4C!HQ))+x/B/B/DDIIKKKKr'   c           	      V   \         P                  ! . RO4      pV P                  ^4      pV^ ,          P                  ^^.^^.VP	                  R4      R7       \
        P                  ! RR7      ;_uu_ 4        V^,          P                  ^^.^^.VP	                  R4      R7       RRR4       V^,          P                  ^^.^^.VP	                  R4      R7       V^,          P                  \         P                  ! ^
4      VP	                  R4      R7       V^,          P                  \         P                  ! ^
4      \         P                  ! ^
4      VP	                  R4      R7       VP                  ^4      pV^ ,          P                  ^^.^^.VP	                  R4      R7       V^,          P                  ^^.^^.VP	                  R4      R7       V^,          P                  ^^.^^.VP	                  R4      R7       V^,          P                  \         P                  ! ^
4      VP	                  R4      R7       V^,          P                  \         P                  ! ^
4      \         P                  ! ^
4      VP	                  R4      R7       R#   + '       g   i     EL; i)	r   r>  r  rh  NrG  r   r   rj  )rk   rF  r   r   r   r   r  r<   r  r  rs   r  )r"   r#   r   r  s   &&  r%   test_2dcolor_plotr%  t!  s   HH_%E


A
CFKKAA%--"3K4	F	G	GA1v1vr):; 
HFKKAA%--"3K4FKK		"U]]2%6K7FJJryy}biim5==3DJE


1
CFKKAA%--"8K9FNNAq6Aq6U]]7%;N<FKKAA%--"8K9FKK		"U]]7%;K<FJJryy}biim5==3IJJ 
H	G	Gs   7/JJ(	c                    \         P                  ! R ^\         P                  ,          R4      p\         P                  ! V4      pVP	                  ^^RRR7      pVP
                   F  pVP                  W#4       K  	  V P	                  ^^RRR7      pVP
                   F$  pVP                  4        VP                  W#4       K&  	  R# )r  r  Tr	  N)rk   rs   r   r   r   r  r   r  )r"   r#   r4   r5   r  r$   s   &&    r%   test_shared_axes_clearr'  !  s    
		#qw%A
q	A


1aT

:Chh
  

Aqd

;Chh


 r'   c                     \         P                  ! ^^RRR7      w  rVP                   F  pVP                  ^ ^.R4       K  	  VR,          P	                  . RO4       VP                   F/  pVP                  4       VR,          P                  4       8X  d   K/  Q h	  VR,          P                  . RO4       VP                   F/  pVP                  4       VR,          P                  4       8X  d   K/  Q h	  R# )r/  r  r	  zo-Nr  )r  r   r;   r   )r  r   r/  r2  )r)   r   r  r   rf
  r   rg
  r   r
  s      r%   test_shared_axes_retickr)  !  s    ||Aqu=HChh
A  I*+hh{{}D	 2 2 4444  I*+hh{{}D	 2 2 4444 r'   rG   c                     \        4       pVP                  4       pVP                  R ^V R7       VP                  P	                  R4       VP                  P
                  P                  4       V 8X  g   Q hR# )testrF   rD   N)r   r   r+   r^   set_label_positionr2   r>
  )rG   r/   r$   s   &  r%   test_ylabel_ha_with_positionr-  !  sW    
(C	BMM&A"M%HH(88>>  "b(((r'   c                     \         P                  ! 4       p ^^.^R.r!V P                  W4      pV P                  V4      pV^ ,          P                  V^ ,          V^ ,          38X  g   Q hV^ ,          P                  4       R8X  g   Q hV^ ,          P                  4       R8X  g   Q hV^,          P                  V^,          V^,          38X  g   Q hV^,          P                  4       R8X  g   Q hV^,          P                  4       R8X  g   Q hR# )r;   r[   rQ   r@   Nr)   rZ  r  	bar_labelr  r]   r
  r$   r  heightsrS  rb  s        r%    test_bar_label_location_verticalr4  !  s    	Ba&1b'FF2E\\% F!9<<BqE71:....!9,,.(:::!9**,888!9<<BqE71:....!9,,.(:::!9**,555r'   c                  :   \         P                  ! 4       p V P                  4        ^^.^R.r!V P                  W4      pV P	                  V4      pV^ ,          P
                  V^ ,          V^ ,          38X  g   Q hV^ ,          P                  4       R8X  g   Q hV^ ,          P                  4       R8X  g   Q hV^,          P
                  V^,          V^,          38X  g   Q hV^,          P                  4       R8X  g   Q hV^,          P                  4       R8X  g   Q hR# )r;   r[   r@   rQ   Nr/  )r)   rZ  r  r  r1  r  r]   r
  r2  s        r%   *test_bar_label_location_vertical_yinvertedr6  !  s    	BOOa&1b'FF2E\\% F!9<<BqE71:....!9,,.(:::!9**,555!9<<BqE71:....!9,,.(:::!9**,888r'   c                     \         P                  ! 4       p ^^.^R.r!V P                  W4      pV P                  V4      pV^ ,          P                  V^ ,          V^ ,          38X  g   Q hV^ ,          P                  4       R8X  g   Q hV^ ,          P                  4       R8X  g   Q hV^,          P                  V^,          V^,          38X  g   Q hV^,          P                  4       R8X  g   Q hV^,          P                  4       R8X  g   Q hR# r;   rR   r[   rD   Nr/  r)   rZ  r  r1  r  r]   r
  r$   r  rv  rS  rb  s        r%   "test_bar_label_location_horizontalr;  !  s    	BQ!RGGBE\\% F!9<<F1Ir!u----!9,,.&888!9**,888!9<<F1Ir!u----!9,,.'999!9**,888r'   c                  :   \         P                  ! 4       p V P                  4        ^^.^R.r!V P                  W4      pV P	                  V4      pV^ ,          P
                  V^ ,          V^ ,          38X  g   Q hV^ ,          P                  4       R8X  g   Q hV^ ,          P                  4       R8X  g   Q hV^,          P
                  V^,          V^,          38X  g   Q hV^,          P                  4       R8X  g   Q hV^,          P                  4       R8X  g   Q hR# r8  )r)   rZ  r  r  r1  r  r]   r
  r:  s        r%   ,test_bar_label_location_horizontal_yinvertedr=  !  s    	BOOQ!RGGBE\\% F!9<<F1Ir!u----!9,,.&888!9**,888!9<<F1Ir!u----!9,,.'999!9**,888r'   c                  :   \         P                  ! 4       p V P                  4        ^^.^R.r!V P                  W4      pV P	                  V4      pV^ ,          P
                  V^ ,          V^ ,          38X  g   Q hV^ ,          P                  4       R8X  g   Q hV^ ,          P                  4       R8X  g   Q hV^,          P
                  V^,          V^,          38X  g   Q hV^,          P                  4       R8X  g   Q hV^,          P                  4       R8X  g   Q hR# r;   rD   r[   rR   Nr/  )r)   rZ  r  r  r1  r  r]   r
  r:  s        r%   ,test_bar_label_location_horizontal_xinvertedr@  !  s    	BOOQ!RGGBE\\% F!9<<F1Ir!u----!9,,.'999!9**,888!9<<F1Ir!u----!9,,.&888!9**,888r'   c                  Z   \         P                  ! 4       p V P                  4        V P                  4        ^^.^R.r!V P	                  W4      pV P                  V4      pV^ ,          P                  V^ ,          V^ ,          38X  g   Q hV^ ,          P                  4       R8X  g   Q hV^ ,          P                  4       R8X  g   Q hV^,          P                  V^,          V^,          38X  g   Q hV^,          P                  4       R8X  g   Q hV^,          P                  4       R8X  g   Q hR# r?  )	r)   rZ  r  r  r  r1  r  r]   r
  r:  s        r%   -test_bar_label_location_horizontal_xyinvertedrB  !  s    	BOOOOQ!RGGBE\\% F!9<<F1Ir!u----!9,,.'999!9**,888!9<<F1Ir!u----!9,,.&888!9**,888r'   c                     \         P                  ! 4       p ^^.^R.r!V P                  W4      pV P                  VRR7      pV^ ,          P                  R8X  g   Q hV^ ,          P                  4       R8X  g   Q hV^ ,          P                  4       R8X  g   Q hV^,          P                  R8X  g   Q hV^,          P                  4       R8X  g   Q hV^,          P                  4       R8X  g   Q hR# )r;   r[   
label_typeNr/  r  r9  r:  s        r%   test_bar_label_location_centerrF  "  s    	BQ!RGGBE\\%H\5F!9<<:%%%!9,,.(:::!9**,888!9<<:%%%!9,,.(:::!9**,888r'   z%test_centered_bar_label_nonlinear.svgc                      \         P                  ! 4       w  rVP                  . RO. RO4      pVP                  R4       VP	                  ^R4       VP                  VRR7       VP                  4        R# )r>   r%  Nr[   rD  )r>   r  r   )r  i  iX  )r)   r   r  rF  r  r1  rl  )r  r$   r  s      r%   !test_centered_bar_label_nonlinearrH  "  sT    LLNEAGGO-BCMMM%KK4LL8L4OOr'   c                     \         P                  ! 4       w  r^ p\        . RO. RO4       F4  w  r4VP                  RWCVR7      pVP	                  VRR7       W$,          pK6  	  VP                  R^4       V P                  4        R# )r   rq  )r2   rR   r[   rD  Nr}
  )rT  r  rI  )r)   r   r  r  r1  r  rd  )r/   r$   lastr2   r;  r  s         r%   +test_centered_bar_label_label_beyond_limitsrK  "  sn    llnGCDO\:uE
]x8 ; KKb r'   c                  :   \         P                  ! 4       p ^^.^R.r!V P                  W^R7      pV P                  V4      pV^ ,          P                  V^ ,          V^ ,          ^,           38X  g   Q hV^ ,          P                  4       R8X  g   Q hV^ ,          P                  4       R8X  g   Q hV^,          P                  V^,          V^,          ^,
          38X  g   Q hV^,          P                  4       R8X  g   Q hV^,          P                  4       R8X  g   Q hR# )r;   r  r[   rQ   r@   Nr/  r0  r2  s        r%   !test_bar_label_location_errorbarsrM  &"  s    	Ba&1b'FF2QF'E\\% F!9<<BqE71:>2222!9,,.(:::!9**,888!9<<BqE71:>2222!9,,.(:::!9**,555r'   r   r;
  z{:.2f}c                     \         P                  ! 4       pVP                  ^^.^R.4      pVP                  W R7      pV^ ,          P	                  4       R8X  g   Q hV^,          P	                  4       R8X  g   Q hR# )r;   r   z3.00z-4.00Nr/  r)   rZ  r  r1  r9  )r   r$   rS  rb  s   &   r%   test_bar_label_fmtrQ  3"  sm     
BFFAq6Ar7#E\\%\)F!96)))!97***r'   c                     \         P                  ! 4       p V P                  ^^.^R.4      p\        P                  ! \
        RR7      ;_uu_ 4        V P                  V^
R7      pRRR4       R#   + '       g   i     R# ; i)r;   zstr or callablerh  rO  Nr/  )r)   rZ  r  r   r   r   r1  )r$   rS  r  s      r%   test_bar_label_fmt_errorrS  >"  sX    	BFFAq6Ar7#E	y(9	:	:LLBL' 
;	:	:	:s   A..A?	c                      \         P                  ! 4       p V P                  ^^.^R.4      pV P                  VRR.R7      pV^ ,          P	                  4       R8X  g   Q hV^,          P	                  4       R8X  g   Q hR# )r;   r<  r=  ra  Nr/  rP  )r$   rS  rb  s      r%   test_bar_label_labelsrU  E"  sq    	BFFAq6Ar7#E\\%c
\3F!93&&&!93&&&r'   c                  d   \         P                  ! 4       p V P                  ^^.\        P                  ^.4      pV P                  V4      pV Uu. uF  q3P                  4       NK  	  upRR.8X  g   Q hV^ ,          P                  R8X  g   Q hV^ ,          P                  4       R8X  g   Q hR# u upi r/  r   r  rQ   Nr4  )	r)   rZ  r  rk   r  r1  r9  r  r
  r$   r  rb  r
  s       r%   test_bar_label_nan_ydatarY  M"  s    	B661a&2661+&D\\$F"()&QJJL&)b#Y666!9<<6!!!!9**,888 *s   B-c                     \         P                  ! 4       p V P                  4        V P                  ^^.\        P
                  ^.4      pV P                  V4      pV Uu. uF  q3P                  4       NK  	  upRR.8X  g   Q hV^ ,          P                  R8X  g   Q hV^ ,          P                  4       R8X  g   Q hR# u upi rW  )
r)   rZ  r\  r  rk   r  r1  r9  r  r
  rX  s       r%   !test_bar_label_nan_ydata_invertedr[  V"  s    	B661a&2661+&D\\$F"()&QJJL&)b#Y666!9<<6!!!!9**,888 *s   B=c                  B   \         P                  ! 4       w  rVP                  . RO\        P                  ^^.. ROR7      pVP                  V4      pV Uu. uF  qDP                  4       NK  	  up. RO8X  g   Q h\        P                  ! VP                  4       R4      '       g   Q h\         P                  ! 4       w  rVP                  . RO. R	OR\        P                  R.R7      pVP                  V4      pV Uu. uF  qDP                  4       NK  	  up. R
O8X  g   Q h\        P                  ! VP                  4       R4      '       g   Q h\         P                  ! 4       w  rVP                  . RO\        P                  ^^.\        P                  \        P                  R.R7      pVP                  V4      pV Uu. uF  qDP                  4       NK  	  up. RO8X  g   Q h\        P                  ! VP                  4       R4      '       g   Q hR# u upi u upi u upi )r;   r   r  r  Nr  r  )r   r  2)r  r  rD  )r  r  r]  )r  r  )	r)   r   r  rk   r  r1  r9  r$  r   )r/   r$   r  rb  r
  s        r%   test_nan_barlabelsr^  `"  s   llnGC66)bffa^/6BD\\$F"()&QJJL&)^;;;;;r{{}j1111llnGC66)Yc2663-?6@D\\$F"()&QJJL&)_<<<;;r{{}k2222llnGC66)bffa^26626632G6HD\\$F"()&QJJL&)^;;;;;r{{}j1111 * * *s   H<H?Hc            
         \         P                  ! 4       w  rVP                  \        P                  ! RR^<^xRR7      4       R\
        P                  ! ^\
        P                  ,          ^,          4      ^,          ,          p\
        P                  P                  \
        P                  ! RVR,           ) RVR,           34      VP                  P                  ^4       R# )	r   rh  r   r^  gffffff?r  N)r   r   g)r)   r   rx  ry  Wedgerk   r   r   r   assert_array_almost_equal_nulprF  dataLimr  )r/   r$   bots      r%   test_patch_boundsrd  t"  s    llnGCLLr3cBC
bffRXc\"A%
%CJJ--
&CH+tSW56

8I8I2Or'   c                      \         P                  ! \        R R7      ;_uu_ 4        \        P                  ! ^ .^ .RRRRR7       RRR4       R#   + '       g   i     R# ; i)z!You passed a edgecolor/edgecolorsrh  r  r  rF  r  )r   r  r*  r+  N)r   r  rH  r)   r<   r   r'   r%    test_warn_ignored_scatter_kwargsrf  |"  sM    	k@
B 
BQC!SC3#N
B 
B 
B 
Bs   AA	c            
      f   \         P                  ! 4       w  r\        ^4       Uu. uF5  q!P                  \        P
                  ! W"^,           4      4      ^ ,          NK7  	  ppVP                  \        P
                  ! ^4      \        P
                  ! ^4      4      pVP                  \        P                  ! R4      4      pVP                  \        P                  ! R^^4      4      pVP                  ^ ^ R4      p\        VP                  4      V.8X  g   Q h\        VP                  4      V.8X  g   Q h\        VP                   4      V8X  g   Q h\        VP"                  4      V.8X  g   Q hVP$                  '       d   Q h\        VP&                  4      V.8X  g   Q hVP                   ^ ,          V^ ,          J g   Q hVP                   R,          VR,          J g   Q h\(        P*                  ! \,        RR7      ;_uu_ 4        VP                   \/        V4      ^,           ,           RRR4       VP                   . RO,           . VO^N^N^N8X  g   Q h. ROVP                   ,           . ROVO8X  g   Q hVP                   R,           . VO^N^N^N58X  g   Q hRVP                   ,           . ROVO58X  g   Q hVP1                  4        VP                  '       d   Q hVP1                  4        VP                  '       d   Q hVP1                  4        VP"                  '       d   Q hVP$                  '       d   Q hVP1                  4        VP&                  '       d   Q hVP                    F  pVP1                  4        K  	  \/        VP                   4      ^ 8X  g   Q hR# u upi   + '       g   i     EL; i)	r  r  zout of rangerh  Nr  r  r  r   r  )r)   r   r   r   rk   rs   r<   r   r  rx  ry  rz  r  r  r  imagesr  r3  tablesrC
  r   r   
IndexErrorr  r`  )	r/   r$   r:  r  rq  r  r  r  ro  s	            r%   test_artist_sublistsrl  "  s   llnGC6;Ah?hWWRYYqa%()!,,hE?
**RYYq\299Q<
0C	288F#	$BLL++FAq9:E771aD C5(((		?rd""">U"""

w&&&yyy=>dV### 88A;%("""88B<59$$$	z	8	8
Ua  
9 88i#4U#4A#4q#4!#4444rxx#4e#4444 88i#4U#4A#4q#4!#4444rxx#4e#4444 JJL~~~IIKyyy=	LLNzzz>yyy=KKMxxx<hh
		 rxx=AS @" 
9	8	8s   ;N$NN0	c                  H   \         P                  ! ^
4      p \         P                  ! R4      p\        P                  ! 4       w  r#VP	                  W4      p\        V4      ^ 8X  g   Q h\        P                  ! 4       w  r#VP	                  . . 4      p\        V4      ^8X  g   Q hR# )rT  N)rT  r   )rk   r   r)   r   r   r  )r4   r5   r  r$   r  s        r%   test_empty_line_plotsrn  "  su    
A
ALLNEA771=Dt9>> LLNEA772r?Dt9>>r'   z
fmt, matchstringc                 $   \         P                  ! 4       w  r4Ve   VP                  RR4      p\        P                  ! \
        RV,           R,           R7      ;_uu_ 4        VP                  RWR7       R R R 4       R #   + '       g   i     R # ; i)Nnotzneither a data key norz\Az\Zrh  ro  r]  )r)   r   replacer   r   r  r   )r   ri  r  r/   r$   s   &&&  r%   test_plot_format_errorsrs  "  sb     llnGCe%=>	z)>	?	?
#) 
@	?	?	?s    A>>B	c                     \         P                  ! 4       w  rVP                  . ROR4      pV^ ,          P                  4       R8X  g   Q hV^ ,          P	                  4       R8X  g   Q h\         P                  ! 4       w  rVP                  . ROR4      pV^ ,          P	                  4       R8X  g   Q h\         P                  ! 4       w  rVP                  ^^.^^.RR4      pV P
                  P                  4        V^ ,          P                  4       R8X  g   Q hVP                  4       ^ ,          P                  4       R8X  g   Q h\         P                  ! 4       w  rVP                  ^^.^^.RR4      pV P
                  P                  4        V^ ,          P	                  4       R8X  g   Q hVP                  4       ^ ,          P                  4       R8X  g   Q h\         P                  ! 4       w  rVP                  . ROR4      pV^ ,          P	                  4       R8X  g   Q hV^ ,          P                  4       R8X  g   Q h\         P                  ! 4       w  rVP                  . ROR4      pV^ ,          P	                  4       R8X  g   Q hV^ ,          P                  4       \        P                  ! R	4      8X  g   Q hV^ ,          P                  4       R
8X  g   Q hR# )r;   z1.0r  r  k3r   r6  z.C12:r   C12r  Nr  )r   r   r   r   )r)   r   r   r  r!  r  r  rk
  r9  r  r  r  r
  s      r%   test_plot_formatrw  "  sG   llnGC779e$D7"666676)))llnGC779c"D73&&&llnGC77Aq6Aq65#.DJJOO7"6666"++-444llnGC77Aq6Aq63.DJJOO73&&&"++-666llnGC779d#D73&&&7#%%%llnGC779g&D73&&&7'//%"88887  "c)))r'   c                     \         P                  ! 4       w  rVP                  R RR^/R7       VP                  4       pV P                  P                  4        VP                  4       ^ ,          P                  4       R 8X  g   Q hVP                  4       ^ ,          P                  4       R 8X  g   Q h\         P                  ! 4       w  rVP                  R RRR^/R7       VP                  4       pV P                  P                  4        VP                  4       ^ ,          P                  4       R8X  g   Q hVP                  4       ^ ,          P                  4       R 8X  g   Q hVP                  4       ^ ,          P                  4       R8X  g   Q hR# )r   r  r  r]  r>   N)
r)   r   r   rJ   r  r  	get_textsr9  rk
  r  )r/   r$   legs      r%   test_automatic_legendr{  "  s/   llnGCGGCC8G$
))+CJJOO==?1&&(C///"++-444llnGCGGCcaG)
))+CJJOO==?1&&(C///"++-444"++-444r'   c            
         \         P                  ! \        R R7      ;_uu_ 4        \        P                  ! . RO^R7       RRR4       \         P                  ! \
        RR7      ;_uu_ 4        \        P                  ! . RO. RO. RO. RORR.R7       RRR4       \         P                  ! \
        RR7      ;_uu_ 4        \        P                  ! . RO^.4       RRR4       \         P                  ! \
        R	R7      ;_uu_ 4        \        P                  ! \        P                  ! R4      4       RRR4       \         P                  ! \
        R
R7      ;_uu_ 4        \        P                  ! RRRRR^/R7       RRR4       R#   + '       g   i     ELM; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; i)z"plot\(\) got an unexpected keywordrh  r  Nzplot\(\) with multiple groupsr  r]  r  zx and y must have same firstzx and y can be no greater thanzUsing arbitrary long args withr   r  r>   r  r]  r  r  )r/  r/  r/  )r   r   r   r)   r   r  rk   r   r   r'   r%   test_plot_errorsr}  "  s   	y(M	N	Na  
O	z)I	J	JIy)C:N 
K	z)G	H	HQC  
I	z)I	J	J#$ 
K	z)I	J	Jc33(3 
K	J 
O	N	N	J	J	J	H	H	J	J	J	J	Js;   F,&F>F,+F?GF	F)	,F<	?G	G#	c            
         \         P                  ! 4       P                  4       p \        V P                  \        ^4      \        ^4      \        ^4      R7      \        V P                  ^ ^.^^..4      \        V P                  ^ ^.^^..4      \        V P                  ^ ^.^^..4      \        V P                  ^ ^.^^..4      3 F7  pRpV! VR7      P                  pVP                  VP                  3V8X  d   K7  Q h	  R# )r  r>  )climN)r`  r  )r)   r   r   r   r<   r   r   rX  r  r  r  r  r  )r$   plot_methodr  r  s       r%   	test_climr  #  s    		!	!	#BBJJa%(eAh?BIIAA/0BII!Q!Q 01BMMQFQF#34BMMQFQF#34 %**		499%---r'   c                     R^ .^ R.^^ .^^ ..p \         P                  P                  \         P                  P                  \         P                  P                  \         P                  P                  .p\         P                  ! W4      p\
        P                  ! 4       w  r4VP                  \        P                  ! V4      4       VP                  4        VP                  4       ^ ,          R8X  g   Q hR# )r;   Nr   r  )mpathr1  r5  CURVE3	CLOSEPOLYr)   r   rx  ry  r4  r^  r   )r  codesr   r/   r$   s        r%   test_bezier_autoscaler  #  s     !WWVVE ZZZZZZZZ!!#E 	

5 AllnGCLL##A&'LLN ;;=t###r'   c                     \         P                  ! . R7R.NR7R.NR8R.NR8R.NR9R.NR9R.NR:R.NR:R.NR;R.NR;R.NR<R.NR<R.NR=R.NR=R.NR>R.NR>R.NR?R.NR?R.NR@R.NR@R.NRAR.NRAR.NRBR.NRBR.NRCR.NRCR.NRDR.NRDR.NRER.NRER.NRFR.NRFR.NRGR.NRGR.NRHR.NRHR.NRIR.NRIR.NRJR.NRJR.NRKR.NRKR.NRLR.NRLR.NRMR.NRMR.NRNR.NRNR.NROR.NROR	.NRPR	.NRPR
.NRQR
.NRQR.NRRR.NRRR.NRSR.NRSR.NRTR.NRTR.NRUR.NRUR.NRVR.NRVR.NRWR.NRWR.NRXR.NRXR.NRYR.NRYR.NRR.NRR.NRR.NRR.NRR.NRR.NRR.NRR.NRR.NRR.NRR.NRR.NRR.NRR.NRR.NRR
.NRR
.NRR.NRR.NRR.NRR.NRR.NR R.NR R.NR!R.NR!R".NR#R".NR#R$.NR%R$.NR%R.NR&R.NR&R.NR'R.NR'R.NR(R.NR(R.NR)R.NR)R.NR*R.NR*R.NR+R.NR+R.NR,R.NR,R.NR-R.NR-R.NR.R.NR.R.NR/R.NR/R.NR0R.NR0R.NR1R.NR1R.NR2R.NR2R.NR3R.NR3R.NR4R.NR4R.NR5R.NR5R.N4      p \         P                  ! V RZ,          4      p\         P                  ! V R[,          4      p\         P                  ! V RZ,          4      p\         P                  ! V R[,          4      p\        P
                  ! V 4      p\        P                  ! 4       w  rgVP                  \        P                  ! V4      4       VP                  4        VP                  4       ^ ,          V8:  g   Q hVP                  4       ^,          V8  g   Q hVP                  4       ^ ,          V8:  g   Q hVP                  4       ^,          V8  g   Q hR6# )\g@r  r  r  g{Gz?rm  g{Gz?r   r(  gQ?g(\?r!  g)\(?r  gHzG?g(\?r   g{Gz?r  gp=
ף?gףp=
?r  gQ?gQ?p=
ף?g(\?gq=
ףp?rV  g(\?r  gQ?gGz?g=
ףp=?gffffff @r/	  gGz@r  g(\@g=
ףp=@gQ@g@gGz@g\(\	@gp=
ף
@gQ@g333333@g{Gz@g(\@gQ@g)\(@g@gq=
ףp@gGz@gQ@Ngg)\(gQgzGg=
ףp=gg(\gRQgGzg
ףp=
ggQg=
ףp=g(\
gGz	gffffffgQgףp=
g(\gHzGg      gQ gzGgRQg(\g333333gg=
ףp=g\(\g=
ףp=gQr  g(\տg
ףp=
ǿg{Gz)rt  r   )rt  r;   )rk   rF  rb  r  r  r1  r)   r   rx  ry  r4  r^  r   r   )r  minxminymaxxmaxyr   r/   r$   s           r%   test_small_autoscaler  /#  s?   HH 	t}',dm6;T]	t}',dm6;T] 
 t} (-dm 7<T] 
	 t}	 (-dm	 7<T]	
 

 t}
 (-dm
 7<T] 
 t} (-dm 7<T] 
 t} (-dm 7<T] 
 t} (-dm 7<T] 
 t} (-dm 7<T] 
 t} (-dm 7<T] 
 t} (-dm 7<T] 
 t} (-dm 7<T] 
 t} (-dm 7<T] 
 t} (-dm 7<T] 
 t} (-dm 7<T]  
!  t}!  (-dm!  7<T]!" 
#" t}#" (-dm#" 7<T]#$ 
%$ t}%$ (,Tl%$ 6:4L%$ DH,%& 
t'& Tl'& &*4L'& 48,'& BFt'( 
t)( Tl)( &*4L)( 48,)( BFt)* 
t+* Tl+* &*4L+* 48,+* BFt+, 
t-, Tl-, &*4L-, 48,-, BFt-. 
t/. Tl/. &*4L/. 48,/. BFt/0 
t10 Tl10 &*4L10 48,10 BFt12 
t32 Tl32 &*4L32 48,32 BFt34 
t54 Tl54 &*4L54 48,54 BFt56 
t76 Tl76 &*4L76 48,76 BFt78 
t98 Tl98 &*4L98 48,98 BFt9: 
t;: Tl;: &*4L;: 48,;: BFt;< 
t=< Tl=< &*4L=< 48,= EB 66%+D66%+D66%+D66%+D

5AllnGCLL##A&'LLN;;=t###;;=t###;;=t###;;=t###r'   c                  V   \         P                  ! 4       w  rVP                  \        P                  ! ^
4      4       \        ^
4       F]  pVP                  4       V,          P                  4       V 8X  g   Q hVP                  4       V,          P                  4       V 8X  d   K]  Q h	  R# r
  )	r)   r   r   rk   rs   r   r  r9  rk
  )r/   r$   r?  s      r%   test_get_xticklabelr  c#  s    llnGCGGBIIbMRy!!#C(113#???!!#C(113#??? r'   c                      \         P                  ! ^\        R7      p \         P                  ! . RO4      p\         P                  ! R.^,          4      p\         P                  V ^ &   \
        P                  ! 4       w  r4VP                  WVR7      pVP                  WVR7      pWV3 F  pVvr\         P                  ! VP                  4      ( P                  4       '       g   Q h\         P                  ! VP                  4       4      '       g   Q hV	 Fe  p
\         P                  ! V
P                  4      P                  4       '       g   Q h\         P                  ! V
P                  4       4      '       d   Ke  Q h	  K  	  R# )r  r  r  r  r!  N)r   r   r   )rk   rs   r  rF  r  r)   r   r  r  isfiniter  any	get_widthr  )barx
barheights	barstartsr/   r$   r  hbarsbar_setnanfulrestr  s              r%   test_bar_leading_nanr  k#  s   99Qe$D/*J$"IffDGllnGC66$965DGGD9G5E=VYY'',,....{{6++-....A;;qtt$((****;;q{{}----  !r'   c                 x   \         P                  P                  R 4       V P                  4       pVP                  4       pVP	                  \
        P                  .\
        P                  .4       VP	                  ^.^.4       VP	                  ^.^.4      P                  4        VP	                  ^.^.4       R# )r   N)r   r   r   r   r  rk   r  r`  r  s   &&  r%   test_bar_all_nanr  #  s    IIMM'!GFKK266(#KKaS
JJsQC!
JJsQCr'   zextent_units.pngc            	         \         P                  ! ^^4      w  r\        P                  ! RR4      p\        P                  ! RR4      p\	        ^
4       UUu. uF$  p\	        ^
4       Uu. uF  qUV,           NK  	  upNK&  	  pppVR,          P                  R4       VR,          P                  VR^^W#.\        P                  R,          R7      pVR,          P                  R4       VR,          P                  VRW#^^.\        P                  R,          R7      pVR,          P                  P                  \        P                  ! R	4      4       VR,          P                  VRW#W#.\        P                  R,          R7      pVR,          P                  P                  \        P                  ! R	4      4       VR,          P                  R
R7       VR,          P                  VR\        P                  R,          R7      pVP                  W2W2.4       VR,          P                  P                  \        P                  ! R	4      4       VR,          P                  R
R7       \        P                   ! \"        RR7      ;_uu_ 4        VP                  ^^W#.RR7       RRR4       R# u upi u uppi   + '       g   i     R# ; i)r/  z
2020-01-01rW  z
2020-01-11zDate extents on y axisr   plasma)r   r  r   z(Date extents on x axis (Day of Jan 2020)z%dzDay of Jan 2020)rb	  )r   r   z set_extent\(\) got an unexpectedrh  Fr  Nr  r  rZ  ru  )r)   r   rk   rb  r   r7   r   r   ru  r\   r   r7  DateFormatterr   
set_extentr   r   r   )r  r  
date_first	date_lastrS  r:  ra  r  s           r%   test_extent_unitsr  #  s3   \\!QFA|S1JlC0I-22Y
7Yr#AaCC#YC
7I01	T		#g"#R!?"}}X6 
 
8B IBC	T		#g",B!?"}}X6 
 
8B IOO''(<(<T(BC	T		#g",","9"}}X6 
 
8B IOO''(<(<T(BCIMM*M+	T		#g"}}X6 
 
8BMM9)@AIOO''(<(<T(BCIMM*M+	y(K	L	L
q"j45A 
M	L5 $
74 
M	L	Ls$   J/(J*9J/	J5*J/5K	c                  z   \         P                  ! 4       w  rVP                  . . . . 4      pVP                  ^..4      pW#.,            F+  pVP                  VJ g   Q hVP                  4       V J d   K+  Q h	  VP                  4        W#.,            F'  pVP                  e   Q hVP                  4       f   K'  Q h	  R# r  )r)   r   r   r   r_  
get_figurer  )r/   r$   r  rd  arts        r%   %test_cla_clears_children_axes_and_figr  #  s    llnGCGGBB#E
))aSE
Cu}}xx2~~~~3&&&  HHJu}}xx~~''' r'   c                      \         P                  ! 4       w  rVP                  . ROVR7      pVP                  4       pVP	                  4        VP                  RRR7       R# )r;   rW  ri  N)r;   r   r   r;   rk  r_  )r)   r   r  r  r`  r   )r/   r$   marginalmarginal_twins       r%   test_child_axes_removalr  #  sG    llnGC}}]2}6HNN$MOOFFhF'r'   c            
          R  p Rp\         P                  ! \        VR7      ;_uu_ 4        Rp\        P                  P
                  P                  VR/ ^V R7       RRR4       R#   + '       g   i     R# ; i)c                      R # r  r   r   r'   r%   r  5test_scatter_color_repr_error.<locals>.get_next_color#  r  r'   zZ'c' argument must be a color, a sequence of colors, or a sequence of numbers, not 'red\\n'rh  zred
Nr  )r   r   r  r   r_  r   r  )r  msgr>   s      r%   test_scatter_color_repr_errorr  #  s_    8  
z	-	-//tBa^ 	0 	M 
.	-	-	-s   1A%%A6	c                  .   \         P                  ! 4       w  rVP                  ^4       VP                  \	        ^4      R^R7      w  p\
        P                  ! 4       ;_uu_ 4       pV P                  VRR7       RRR4       R#   + '       g   i     R# ; i)r  T)rf  rs  rp  )r  N)r)   r   set_rasterization_zorderr   r   r  r  r  )r/   r$   ro  r  s       r%   &test_zorder_and_explicit_rasterizationr  #  s`    llnGC"
''%(tA'
6CB	Ae$ 
s   %BB	zpreset_clip_paths.pngc            
      V   \         P                  ! 4       w  r\        P                  P	                  ^^ .^ ^.R^ .^ R..RR^RR7      pVP                  V4       \        P                  P                  RRRVR7      pVP                  \        P                  ! 4       .4       VP                  V4       \        P                  P                  RRRRVR7      pVP                  V4       \        P                  P	                  R^.^ ^.^ R..R	R
R^RVR7      pVP                  V4       VP                  RRRRR/RVR7       \        P                  P	                  ^ ^ .^ R.RR.R^ ..RR^R
RVR7      pV P                  VRR7       VP                  R^4       VP                  R^4       R# )r;   z#ddffddz#00ff00r   )r*  r+  r,  r  T)clip_onr  rF  )r   r  r  z#beefc0r   z#faded0)r*  r  r+  r,  r  r  r  r   r6  )r  r  r  r  r  r5   )r*  r+  r,  r  r  r  r  Nr   rk  r  )r  r  rT  )rS  rS  )r   rU  )r)   r   r   r3  Polygonrx  r  r   set_path_effectsr   withTickedStroker2  r  r  r  )r/   r$   polyr  poly2poly3s         r%   test_preset_clip_pathsr  #  s    llnGC;;
Q!Q"a1b'*iq  5D LL99GZND;779:;MM$99G\d&*  ,DMM$KK
a1a&1e*%#q$$   HE MM% KKn[#S>44  I KK
Q!SC:Qx0C33   >E NN5tN$KKAKKAr'   c                     R \         P                  R&   ^\         P                  R&   R\         P                  R&   \        P                  ! 4       p V P                  P
                  P                  4       R 8X  g   Q hV P                  P
                  P                  4       ^8X  g   Q hV P                  P
                  P                  4       R8X  g   Q hR# )r1  zaxes.labelcolorzaxes.labelsizerr
  zaxes.labelweightN)	r   r   r)   r_  r\   r2   r  get_fontsizeget_fontweightr  s    r%   test_rc_axes_label_formattingr  $  s    &+CLL"#%'CLL!"'-CLL#$	B88>>##%...88>>&&(B...88>>((*f444r'   c                    \         P                  ! ^ \         P                  ) \         P                  ) \         P                  ^^^.4      p\        \	        V4      4      pV P                  ^^4      p\        VRR.4       F  w  rVVP                  W&R7      pVP                  RRR\         P                  P                  V4      RV/VRRRR7      p\	        VP                  4       4      \         P                  ! V4      ( P                  4       ^,           8X  g   Q h\	        VP                  4       4      \	        0 V\         P                  ! V4      ( ,          m4      ^,           8X  d   K  Q h	  VP                  ^^4      p	V	^ ,          P                  \         P                  ) \         P                  ) \         P                  ) ^ ^^^\         P                  .\         P                  ! ^4      ^,          R	R
7       V	^ ,          P                  \         P                  ) ^ ^^\         P                  \         P                  .\         P                  ! . RO4      ^,          RRR7       V	^,          P                  \         P                  ! ^4      ^,          \         P                  ) \         P                  ) \         P                  ) ^ ^^^\         P                  .RR
7       V	^,          P                  \         P                  ! . RO4      ^,          \         P                  ) ^ ^^\         P                  \         P                  .R	RR7       R# )r   rm  rS   rT   r  r^  Tr  )r  rU   complementarycompressr   r  )dsz	steps-pre)r  r   N)r  r  r  r	  r  r   )rk   rF  r  r   r  r   r  ecdfr	   	get_xdataisnanr  r   rs   )
r"   r#   r  r  r   r$   rU   l0l1r   s
   &&        r%   	test_ecdfr  $  sh   88Q"&&"&&!Q:;DCIG  A&Hx*l)CDWWTW3WWS#S"%%++d*;S'$J!,#'$3  @ 2<<>"&;&;&=&AAAA2<<>"c*BD"((4.,A*B&Ca&GGGG E q!$GAJOObffWrvvgw1aBFFCIIaL1$  7AJOObffWaArvvrvv6HH34r9"s  , AJOOBIIaL1$ffWrvvgw1aBFFC"  $ AJOOBHH34r9ffWaArvvrvv6#  -r'   c            	         \         P                  ! \        4      ;_uu_ 4        \        P                  ! ^\
        P                  .4       RRR4       \         P                  ! \        4      ;_uu_ 4        \        P                  ! \
        P                  P                  ^^.RR.R7      4       RRR4       R#   + '       g   i     Lv; i  + '       g   i     R# ; i)r;   NTFr  )	r   r   r  r)   r  rk   r  r	   rF  r   r'   r%   test_ecdf_invalidr  *$  sy    	z	"	"!RVV 
#	z	"	"aV4-89 
#	" 
#	"	"	"	"s   'B84:C8C	C	c            
         \         P                  ! 4       w  r\        P                  ! ^ ^\        P                  ,          R4      pR\        P
                  ! V4      ,          pRpVP                  W#RR7       VP                  4       VP                  4       3pVP                  VR^RR7       VP                  V^ ^W48  RR	VP                  4       R
7       VP                  4       VP                  4       3V8X  g   Q hR# )r   r  r   g333333?r*  rG  r   r  )r   r@  r  r   )r-  r   r  r)  N)r)   r   rk   rs   r   r   r   r   r   ru   r   r	  )r/   r$   r4   r5   	thresholdoriginal_limss         r%   test_fill_between_axes_limitsr  1$  s    llnGC
		!QY%ABFF1IAIGGAG [[]BKKM2MJJyASJ9OOAq!1=!8N8N8P  R KKM2;;=)]:::r'   c                  h   \         P                  ! 4       w  rVP                  . RO. RO4       VP                  RRR7       VP	                  RRR7       VP                  RRR7       \         P                  ! R	4       VP                  4        F!  pVP                  4       ^ ,          R8X  d   K!  Q h	  R
# )r;   zX label in Impact fontImpact)fontnamezY label in xkcd scriptzxkcd scriptrF  	monospace)r   labelfontfamilyzTitle in sans-serifNr  )	r)   r   r   r*   r+   r	  r3   r  get_fontfamily)r/   r$   r  s      r%   test_tick_param_labelfontr  A$  s    llnGCGGL,'MM*XM>MM*]MCNNkN:II#$""$""$Q';666 %r'   c                     \         P                  ! 4       w  rVP                  R RR7      p\        P                  ! VP
                  R,          P                  4       R4      '       g   Q h\        P                  ! VP
                  R ,          P                  4       R4      '       g   Q h\        P                  ! VP                  P                  4       R,          R4      '       g   Q h\        P                  ! VP                  P                  4       R,          R4      '       g   Q h\        P                  ! VP                  P                  P                  4       R4      '       g   Q hR# )r@   r1  rG  rQ   r   r	  N)r)   r   rc  r  r  r}	  rQ  r\   rR  r2   r  )r/   r$   saxs      r%   test_set_secondary_axis_colorr  L$  s    llnGC


U%

0Ccjj2@@BEJJJJcjj/==?GGGGcii779'BEJJJJcii779,GOOOOciioo7795AAAAr'   c                  `   \         P                  ! ^RRR7      w  r. pV^,          P                  P                  RVP                  4       V^,          P                  P                  RVP                  4       V^ ,          P                  ^^.^^.R7       W!^,          V^,          .8X  g   Q hR# )r/  Tr	  xlim_changedylim_changedri  N)r)   r   	callbacksconnectr  r   )r/   r  eventss      r%   test_xylim_changed_sharedr  V$  s    ||Ad48HCFF^V]];F^V]];FJJQF!QJ(!fc!f%%%%r'   zaxhvlinespan_interpolation.pngc            	      j   \         P                  ! 4       P                  R R7      p V P                  4        V P	                  RRR7       V P                  RRRR7       V P                  R	R
RRRR7       V P                  ^RR
R7       V P                  RRRR
R7       V P                  RRRRRR
R7       R# )r  r|  r   r  r>  r   r   rL  )fcr7  r   rM  )r>   r  r  r<  )r  r  r  r  N)r)   r   r   rl  r  r  ru   r  r  s    r%   test_axhvlinespan_interpolationr  _$  s    		!	!W	!	5BOOJJrTJJJr2$JJJr2r2$J'JJqDJ#JJr2$bJ)JJr2r2$bJ1r'   r  c           	     x   VP                  4       pV P                  4       p/ RRbR^
bR^
bRRbR^ bRR	bR
^bR^-bRRbRRbRRbR^bRRbRRbRRbRRbRRbRRRRRRRR/CpVP                  ! R!RV/VB  VP                  ! R!RV/VB  VP                  4        VP                  R4       VP                  R4       R # )"z<Test that the given tick params are not reset by ax.clear().r	  r	  r	  r  r   zxkcd:wine redr	  r  serifrs  r	  r	  zxkcd:shocking pinkr	  zxkcd:fluorescent greenr	  r   r	  r	  r  rQ   Fr@   TrR   rD   rl  rk  rf  rg  r  Nr   )r   r	  r  r  )r#   r"   r  rx   ry   r  s   &&&   r%   test_axes_clear_behaviorr  k$  s[    !GFT" 	 		
 	q 	7 	! 	 	* 	. 	c 	! 	#  	%!" 	t#$ 	%& 	'( 	tDTd/F4 ,E,V,-U-f-MMO
KKLLr'   :Nr  Nfinalz/https://github.com/python/cpython/issues/124538)reasonc                  ,   R  p \        4       pVP                  4       p\        P                  P	                  R4      pVP                  W34       VP                  W34       VP                  4       pVP                  4        V Uu. uF#  p\        V\        \        34      '       g   K!  VNK%  	  pp\        V4      ^ 8  g   Q hV F  pV ! V4       K  	  \        V4      ^ 8  g   Q hV F  p VP                  4        K  	  R# u upi   \         d     K-  i ; i)c                 8   \        V .4      p\        4       p\        V4      ^ 8  dt   VP                  4       p\        P
                  ! V4       FG  p\        V4      V9   d   K  W@Jg   Q hVP                  \        V4      4       VP                  V4       KI  	  K  R# r-  )	r   r   r  popleftgcget_referentsidaddr  )re  to_visitexploredparentchilds   &    r%   assert_not_in_reference_cycleFtest_axes_clear_reference_cycle.<locals>.assert_not_in_reference_cycle$  s    %>5(ma%%'F))&1e9()))RY'& 2  r'   r  N)r   r   rk   rl   r~   r   r<   r  r  r   r   r   r  r`  NotImplementedError)	r  r/   r$   rA  ax_childrenr   big_artists
big_artistr  s	            r%   test_axes_clear_reference_cycler  $  s    
' (C		BYY^^D!FGGFJJv//#KIIK aa&.12 	
;   {a!
%j1 "{a	LLN  # 		s   C?&C?)DDDc                     \         P                  P                  R 4       \         P                  P                  R4      p \        P                  ! ^^RR7      w  r\
        P                  ! \        P                  RR7      ;_uu_ 4        V^ ,          P                  V . R	OR7       RRR4       V^ ,          P                  4        Uu. uF  q3P                  4       NK  	  up. R	O8X  g   Q hV^,          P                  V . R	OR7       V^,          P                  4        Uu. uF  q3P                  4       NK  	  up. R	O8X  g   Q hR#   + '       g   i     L; iu upi u upi )
ra   T)r  r  rX  zhas been renamed 'tick_labels'rh  ra  N)tick_labels)rT  r  r<  r=  r  )rk   rl   rm   r)   r   r   r  r   rc  rq  r  r9  )r  r/   r  r
  s       r%   test_boxplot_tick_labelsr  $  s    IINN899G$D||!1T:HC	c66>
@ 
@AtO4
@ #&a&"8"8":;":QJJL":;NNN FNN4_N5"%a&"8"8":;":QJJL":;NNN
@ 
@ < <s   EEEE	c                     . ROpV P                  4       pVP                  VRRR/R7       VP                  4       pVP                  VRRR/R7       R# )r  z%1.0f%%usetexT)r	  r<
  z%1.0f\%%N)r  rT  r  )r   r
  )r"   r#   r  r$   r  s   &&   r%   test_latex_pie_percentr  $  sS     D				BFF4x.>F?



CGGD+(D1AGBr'   c                    \         P                  ! ^^R7      w  r#\        P                  P	                  R4       \        ^^
4       Uu. uF$  p\        P                  P                  ^ V^d4      NK&  	  ppV^ ,          P                  V4       \        V^ ,          P                  4       \        P                  ! . R
O4      8H  4      '       g   Q h\        V^ ,          P                  4       \        P                  ! . RO4      8H  4      '       g   Q hV^,          P                  VRR7       \        V^,          P                  4       \        P                  ! . RO4      8H  4      '       g   Q h\        V^,          P                  4       \        P                  ! . R
O4      8H  4      '       g   Q h\         P                  ! 4        VP                  4       p\        P                  ! \        RR7      ;_uu_ 4        VP                  VRR7       R	R	R	4       V P                  4       pVP                  VRR7       R	# u upi   + '       g   i     L:; i)r;   r  ra   rS   rT   z
vert: boolrh  F)vertN)	r   r   r   r   r2  r  r  r  r[  g      >g      4r  r  r.  rM  r"  )r)   r   rk   rl   rm   r   rn   r0  r  r{  rF  rj
  rc  r   r  r  r"   r#   r/   r  stdall_datary   rx   s   &&      r%   test_violinplot_orientationr  $  s    ||!1-HCIINN89>q"F#		  C-HFFhs1v  "bhh1'3 3 4 4 4 4s1v  "bhh-'/ / 0 0 0 0 FhL9s1v  "bhh-'/ / 0 0 0 0s1v  "bhh1'3 3 4 4 4 4 IIK F	/|	D	D(/ 
E !Gx\:7 G. 
E	Ds   *H43H99I		c           	      "   \         P                  ! ^^R7      w  r#\        P                  P	                  R4       \        ^^
4       Uu. uF$  p\        P                  P                  ^ V^d4      NK&  	  ppV^ ,          P                  V4       \        V^ ,          P                  4       \        P                  ! . R
O4      8H  4      '       g   Q h\        V^ ,          P                  4       \        P                  ! . RO4      8H  4      '       g   Q hV^,          P                  VRR7       \        V^,          P                  4       \        P                  ! . RO4      8H  4      '       g   Q h\        V^,          P                  4       \        P                  ! . R
O4      8H  4      '       g   Q h\         P                  ! 4        \        P                  ! \        P                   RR7      ;_uu_ 4        \        P"                  ! RR/4      ;_uu_ 4        VP                  4       pVP                  V4       R	R	R	4       V P                  4       pVP                  VRR7       R	R	R	4       R	# u upi   + '       g   i     LB; i  + '       g   i     R	# ; i)r;   r  ra   rS   rT   z!was deprecated in Matplotlib 3.10rh  zboxplot.verticalFNr  r  )r)   r   rk   rl   rm   r   rn   rq  r  r{  rF  rj
  rc  r   r  r   rc  r   r	  s   &&      r%   test_boxplot_orientationr  %  s    ||!1-HCIINN89>q"F#		  C-HFFNN8s1v  "bhh'     s1v  "bhh-'/ / 0 0 0 0 FNN8N6s1v  "bhh-'/ / 0 0 0 0s1v  "bhh'      IIK 
c66?
A 
A ^^/788%%'FNN8$ 9 ##%l;
A 
A+ G2 98	
A 
A 
As*   *I%-!I="I*	0+I=*I:5I==J	zuse_colorizer_keyword.pngr  c            
         \         P                  P                  ^ 4       \         P                  P                  ^d4      p \         P                  P                  ^d4      p\         P                  ! ^RR7      P	                  R
4      p\
        P                  ! ^^4      w  r4\        P                  P                  ^^4      p\        P                  P                  VRR7      pVR,          P                  W"W&R7       VR,          P                  WVRR7       VR,          P                  W&R7       VR,          P                  W&R7       VR,          P!                  W&R7       VR,          P#                  W&R7       VR,          P#                  RRVVR7       VR,          P#                  VP$                  W"R,          VR7       VR,          P'                  W&R7       VR,          P)                  W&R7       VR,          P+                  VP$                  P-                  4       VP-                  4       VP-                  4       VR7       VR,          P/                  VP$                  P-                  4       VP-                  4       VP-                  4       VR7       VP1                  \         P2                  ! \         P2                  ! V^^ R7      ^^R7      VR7       \5        V4       R	# )r   float32r  r[  r  r   )r>   	colorizer)r  r  )r  r  Nrh  r  r  rv  r  r   r  rZ  ru  r.  r  r   r;   r/  r  r  r  r;   r  Nr  Nr  r4  r/  r;   r  )rk   rl   rm   rs   r   r)   r   r   r  r  r  	Colorizerr<   r  r   rX  r  r  r  r	  r  
tricontourro  tricontourffigimager  r   )rand_xrand_yr>   r/   r_  r  cls          r%   test_use_colorizer_keywordr   +%  s    IINN1YYc"FYYc"F
		"I&..v6AQ"IC::2&D		 	 d	 	8BJqq/JfVDJa&Ja&J!*J!*J,.@1$&  (J!##qF)r:Jq'J(J!##))+qwwy!'')rJJ13399;	1779KLL299Q3Ra@BLOC r'   c            
      $   \         P                  P                  ^ 4       \         P                  P                  ^d4      p \         P                  P                  ^d4      p\         P                  ! ^RR7      P	                  R4      p\
        P                  ! ^^4      w  r4\        P                  P                  ^^4      p\        P                  P                  VRR7      pRpR^ /R^ /RR	/R
R/.pV FN  p	\        P                  ! \        VR7      ;_uu_ 4        VR,          P                  ! W"3RVRV/V	B  RRR4       KP  	  V FN  p	\        P                  ! \        VR7      ;_uu_ 4        VR,          P                  ! W"3RVRV/V	B  RRR4       KP  	  V FN  p	\        P                  ! \        VR7      ;_uu_ 4        VR,          P                   ! W3RVRR/V	B  RRR4       KP  	  V FL  p	\        P                  ! \        VR7      ;_uu_ 4        VR,          P"                  ! V3RV/V	B  RRR4       KN  	  V FL  p	\        P                  ! \        VR7      ;_uu_ 4        VR,          P$                  ! V3RV/V	B  RRR4       KN  	  V FL  p	\        P                  ! \        VR7      ;_uu_ 4        VR,          P&                  ! V3RV/V	B  RRR4       KN  	  V FL  p	\        P                  ! \        VR7      ;_uu_ 4        VR,          P(                  ! V3RV/V	B  RRR4       KN  	  V FN  p	\        P                  ! \        VR7      ;_uu_ 4        VR,          P(                  ! RRV3RV/V	B  RRR4       KP  	  V F^  p	\        P                  ! \        VR7      ;_uu_ 4        VR,          P(                  ! VP*                  W"R,          3RV/V	B  RRR4       K`  	  V FL  p	\        P                  ! \        VR7      ;_uu_ 4        VR,          P,                  ! V3RV/V	B  RRR4       KN  	  V FL  p	\        P                  ! \        VR7      ;_uu_ 4        VR,          P.                  ! V3RV/V	B  RRR4       KN  	  V F  p	\        P                  ! \        VR7      ;_uu_ 4        VR,          P0                  ! VP*                  P3                  4       VP3                  4       VP3                  4       3RV/V	B  RRR4       K  	  V F  p	\        P                  ! \        VR7      ;_uu_ 4        VR ,          P4                  ! VP*                  P3                  4       VP3                  4       VP3                  4       3RV/V	B  RRR4       K  	  V FE  p	\        P                  ! \        VR7      ;_uu_ 4        VP6                  ! V3RV/V	B  RRR4       KG  	  R#   + '       g   i     EK  ; i  + '       g   i     EK  ; i  + '       g   i     EK  ; i  + '       g   i     EKP  ; i  + '       g   i     EK  ; i  + '       g   i     EK  ; i  + '       g   i     EK  ; i  + '       g   i     EK\  ; i  + '       g   i     EK  ; i  + '       g   i     EK  ; i  + '       g   i     EK  ; i  + '       g   i     EKT  ; i  + '       g   i     EK  ; i  + '       g   i     EKn  ; i)!r   r  r  r[  r  z5The `colorizer` keyword cannot be used simultaneouslyr  r  r  r%  r   rr  rh  r>   r  Nr  rh  r  r  rv  r  r  rZ  ru  r.  r  r  r  r  r4  r  r  )rk   rl   rm   rs   r   r)   r   r   r  r  r  r  r   r   r  r<   r  r   rX  r  r  r  r	  r  r  ro  r  r  )
r  r  r>   r/   r_  r  r  	match_strkwrdskwrds
             r%   test_wrong_use_colorizerr%  J%  sS   IINN1YYc"FYYc"F
		"I&..v6AQ"IC::2&D		 	 d	 	8BGIa[61+8KLE]]:Y77Jq?q?B?$? 87  ]]:Y77Jq?q?B?$? 87  ]]:Y77JfTTVTtT 87  ]]:Y77Ja6266 87  ]]:Y77Ja6266 87  ]]:Y77J!!!:r:T: 87  ]]:Y77J!!!:r:T: 87  ]]:Y77J!!"46H1 8,.8268 87  ]]:Y77J!!!##qF)JrJTJ 87  ]]:Y77Jq7B7$7 87  ]]:Y77J8R848 87  ]]:Y77J!!!##))+qwwy!'') *r *$(* 87  ]]:Y77J""13399;	1779 +PR +%)+ 87  ]]:Y77LL1b1D1 87 S 877 877 877 877 877 877 877 877 877 877 877 877 877 877s   W,,X XX+&Y 8Y
Y*Y?0/ZZ)&Z>8A[ A[([=,W>XX(+X= YY'*Y<?ZZ&)Z;>[[%([:=\c                     \         P                  ! 4       w  rVP                  . R	O. R
O4      pV F0  p\        P                  ! VP                  4       R4      '       d   K0  Q h	  VP                  . RO. R
ORR7      pV F0  p\        P                  ! VP                  4       R4      '       d   K0  Q h	  VP                  . RO. R
ORR7      pV F0  p\        P                  ! VP                  4       R4      '       d   K0  Q h	  VP                  . RO. R
ORRR7      pV F0  p\        P                  ! VP                  4       R4      '       d   K0  Q h	  R# )r;   r   r1  rG  r  r3  r   )r   r*  Nr  r  )rN  rD  r  )r     rM  )   r   !   )r)   r   r  r  r  rP  )r/   r$   r  r  s       r%   test_bar_color_precedencer*  %  s   llnGC 66)Y'D!!#"3"3"5v>>>>  66,	67D!!#"3"3"5u====  66,	X6>D!!#"3"3"5x@@@@  66,	'6JD!!#"3"3"5w???? r'   c                    \         P                  ! R R .RR..4      pV P                  V4      pVP                  . RO4       VP                  VP
                  VP                  VP                  3R8X  g   Q hVP                  . RO4      pR# )r  r   N)r  r  r   r   )r  r  r   r   )r
  r  rG  r	  r<  r=  r  r  )r"   r#   r	  rx   ry   s   &&   r%   .test_axes_set_position_external_bbox_unchangedr,  %  sy     c3Z#s45D%G/0GGTWWdjj$++6:NNNN45Fr'   c                  Z   \         P                  ! ^ ^
^
4      p R\        P                  R&   Rp\        P
                  ! 4       w  r#VP                  V \         P                  ! V 4      RVR7      pV^,           F0  p\        P                  ! VP                  4       V4      '       d   K0  Q h	  R# )r   r   r  r1  r   )rN  r  Nrk   r   r   r   r)   r   rI  r   r  r  rQ  )r4   r  r/   r$   	errorbarscaps         r%   test_caps_colorr1  %  s    
Ar2A,3CLL()FllnGCArvvays6BI ||!!#"3"3"5v>>>> r'   c                  T   \         P                  ! ^ ^
^
4      p R\        P                  R&   \        P
                  ! 4       w  rVP                  V \         P                  ! V 4      RR7      pV^,           F0  p\        P                  ! VP                  4       R4      '       d   K0  Q h	  R# )r   r   r  r   r  r   Nr.  )r4   r/   r$   r/  r0  s        r%   test_caps_no_ecolorr3  %  s    
Ar2A,3CLL()llnGCArvvays3I ||!!#"3"3"5v>>>> r'   r  )r<   r   r   rv  )
2d_x_input2d_y1_input2d_y2_input)
2d_y_input2d_x1_input2d_x2_inputr  )r  r   )r4   r  r2   r  r  r}
  )rT  r  r   r  )r  r  r  )r  r  r  )r8  zdatetime.datetimeznp.datetime64)Nr/  rE  r  )r   r   r   r;   )r1  r   r  r  r  )r;   r;   r   )errorbar_basic.pngzerrorbar_mixed.pngr:  r  r  )r,  rV  r   )rC  rD  r  )r;   r   r/  )r5   r   )rF  r   )r  r   ))rz  )z
tab:orangeztab:pinkztab:cyanbLacK)r1  r  N)r;   r   r;   r   )Nrm  rS   )vlines_basicvlines_with_nanvlines_masked)hlines_basichlines_with_nanhlines_maskedrC  )zspecgram_freqs.pngzspecgram_freqs_linear.pngzspecgram_noise.pngzspecgram_noise_linear.png)zspecgram_magnitude_freqs.pngz#specgram_magnitude_freqs_linear.pngzspecgram_magnitude_noise.pngz#specgram_magnitude_noise_linear.png)zspecgram_angle_freqs.pngzspecgram_phase_freqs.pngzspecgram_angle_noise.pngzspecgram_phase_noise.png)zpsd_freqs.pngzcsd_freqs.pngzpsd_noise.pngzcsd_noise.png)z#magnitude_spectrum_freqs_linear.pngzmagnitude_spectrum_freqs_dB.pngzangle_spectrum_freqs.pngzphase_spectrum_freqs.pngz#magnitude_spectrum_noise_linear.pngzmagnitude_spectrum_noise_dB.pngzangle_spectrum_noise.pngzphase_spectrum_noise.png))r   TT)r	  TF)r  FTrj  ru  r.  )r  )pie_linewidth_0rB  rB  r   )r   rj  r  r   ))r  r`  )r/  r  )r;   r/  r  r  r  r2  )r  r  )r  r  )rZ  r   r  rG  ))rR   r   )r   r[   )rR   r[   )zleft title movedzcenter title keptzboth titles aligned)TFN)r  rT  rD  )rR   r[   rD   ))rK  z?'f' is not a valid format string \(unrecognized character 'f'\))zo+z9'o\+' is not a valid format string \(two marker symbols\))z:-z;':-' is not a valid format string \(two linestyle symbols\))rkz7'rk' is not a valid format string \(two color symbols\))z:o-rz=':o-r' is not a valid format string \(two linestyle symbols\))r  zE'C' is not a valid format string \('C' must be followed by a number\))z.CzF'.C' is not a valid format string \('C' must be followed by a number\))r  r  r   (  r  r  r   r   r5  r  r   	functoolsr   r  r  r  	itertoolsr   platformsysr  r   dateutil.tzr"  numpyrk   r	   r
   r   rX   r   r   r   matplotlib.colorsr  r  matplotlib.datesr  r7  matplotlib.figurer   matplotlib.axesr   r  r   matplotlib.collectionsr   matplotlib.font_managerfont_managermfont_managermatplotlib.markersr  r  matplotlib.patchesr3  ry  matplotlib.pathr0  r  matplotlib.projections.geor   matplotlib.projections.polarr   matplotlib.pyplotpyplotr)   matplotlib.textr  r  matplotlib.tickertickerr   matplotlib.transforms
transformsr
  mpl_toolkits.axisartist
axisartistr%  numpy.testingr   r   r   matplotlib.testing.decoratorsr   r   r   matplotlib.testing._markersr   r&   r0   r9   rO   rV   rY   r_   r|   r   r   r   r   r   machiner   r   r   r  r  r  r  r   r;  rK  rU  rf  r  r  r  r  r   r  r  r  r  r  r  r  r  r  r  r  r	  r  r  r  r&  r@  rJ  rR  rX  r^  rg  rr  rx  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rs   r"  r'  r2  r<  r@  rG  rO  rY  rh  rn  r}  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r&  r+  r.  r0  r4  r6  r>  rA  rF  rJ  rU  rW  rY  rb  rg  rs  ry  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r8  r  r  Patchrs  r  r  r   r  r  r(  r*  r/  r2  r5  r8  r:  rF  rL  rP  rR  rW  rc  rh  rj  rm  ro  r  r   rF  r  r  r  r  r  COLOR_TEST_CASESr  r  r,  r2  rA  rE  rG  rO  r[  r_  rg  ry  r|  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r&  r+  r1  r5  r8  r:  r>  rB  rE  rH  rJ  rL  rN  rP  rS  rV  r\  r_  ra  rf  rj  rm  rs  rx  r|  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r
  r  r   r%  r(  r*  r,  r.  r0  r8  r;  rD  rF  rS  r]  rb  rd  rj  rm  ro  rs  rv  rz  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r	  r	  r  r  r
	  r	  r	  r)	  r.	  rG	  rL	  rP	  rW	  r[	  r]	  rj	  rp	  rs	  ry	  r	  r	  r	  r	  r	  r	  r	  r	  r  ru   r  r  r	  r	  r	  r	  r	  r	  r   r  r  r	  r	  r	  r	  r	  r
  r
  r 
  r#
  r&
  r)
  r-
  r0
  r5
  rE
  rI
  rL
  rP
  rR
  rX
  r\
  r_
  rl
  rp
  rt
  rv
  r{
  r~
  r
  r
  r
  r
  r
  r
  r
  r
  r
  r
  r
  r
  r
  r
  r
  r
  r
  r
  r
  r
  r
  r
  r
  r  	AxesImagePcolorImagerl   QuadMeshr   r~   r
  r
  r
  r
  r
  r
  r
  r
  r
  r
  r
  r  r  r  r
  fixturer  r  r  r!  r%  r(  r*  r0  r2  r8  r<  r?  rD  rH  rM  rO  r]  ra  rd  ri  rm  rp  rs  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r#  r&  r0  r3  r6  r>  r@  rB  rD  rG  	TransformrI  rg  rm  rq  rz  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r	  r  r  r  r  r  font_scalingsr  r  r#  r%  r'  r)  r-  r4  r6  r;  r=  r@  rB  rF  rH  rK  rM  r  rQ  rS  rU  rY  r[  r^  rd  rf  rl  rn  rs  rw  r{  r}  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  skipifversion_inforeleaselevelr  r  r  r  r  r   r%  r*  r,  r1  r3  )r:  r  s   00r%   <module>ro     s8    )    	  	   
 !        . # ! $   # 1 / % %  1 2   # + $D DD D 4 ( )
(M (/ )/$ (. ).$ (/ )/(@, (( )($ (( )(( (, ),*3 (, ), E!QKHKq&qgT2KH#++-9auF$F$NJ4G2 678 90". ,J -J  ,T2'% 3 -'%T '(#++-9auFF","1h0f/ ( ) -.DA% B% 9! !. 93 3" 90 0$ ( ) )*GL6 M6$ ,-4wO P,@ ?#6; 7; %&D9) :)4('' #$UBK@ AB5 (
J )
J; >>23' 4'" $%W5- 6- ( )/ =/ug"'3/3/ &'(* )* &'T2* 3* &(;<$O< P<	- %&D9
* :
*' #$G4/ 5/*$ &'wDI	( J	($ (## )##L$4 %&' ( 9<>(
< )> 
< 8X&DH I( =/#++-9atE&E&,F -.DA B 	&	1a 	34	 "((6"2A6	34	 !RXXf%56  
#
# 	&	1a 	34	 "((6"2A6	34	 !RXXf%56  
$
$ 12#++-9auF'F'. <=T33& 56DI1 J1& <.! " =/t4	  5	 ( <.d32 42. %&E7; <2 %&E5>"$F$FB '9:(G ) ;G (
. )
. 12'B# C#6 -.g># ?#05 p
-. (0 )0 (0 )0// %/(( ) 0(" ;-#++-9atEE
 #$$iH IB =/t4! 5!H0 ?#6
 7
 '(dF G" 01tO; P;0 78dK L4 -.DA; B;4 ()M? N?. 56DI; J;2 >"5= 6= .0KLM	> N	> 

 012 3 DEF G (
# )
# (
= )
= (
+ )
+ (
- )
-64 ()* +4P '"+<3&% 9(
% ) 
% A	a|nc*	,	,	(	,(@	!<	1	,	3V	=880
 >"5( 6( (7 )72 '(d;  < + ()t<! =! )*=H >H$ %&'  ( -! *)),,+EG/	  0E0E" 9q'4)8Q-)*:	*: + #++"3"3":":;!399#3#3#:#:;'):):)A)ABDE,	E,	
 (( )(V (# )#2 ( ). (
K )
K*+
#
)' ,-4@ A. -./ 0 ( ) %&DH* I* %&g#++-9atE%E%* <.DP= Q=" )*GL
. M
.'j1 j1Z	*4 *
Y
, iBHHl^457nBHHl^457C BHHl^457 CBHHl^457S#Jc
288\=,I#JKM44  !
fd^
Sk4
cC 
sCj!C:.
S3
fv&
fv&
SS)3/
SCC0#6
os
$c*	4	4M 	 V_w)*i34  )9:9 ;9$ )9:3 ;32)X5 -/IJ#++-9auFF( 01tDE EE0 ( )(! 4$ %&!&!## &'!&!#7#7 +,!&!#6#6 )*!&!#0#0 '("!&!	
@
@ )*!&!@	@ ()"!&!#9	#9 ./"!&!#G	#G *+"!&!#A	#A
 12"!&!#	# &'"!&!#9	#9
 )*"!&!#<	#<
 &'"!&!#9	#9
 *+"!&!#<	#<
 (B )B &'"!&!#8	#8 #$"!&!#6	#6 ?#"!&!#5	#5 +,"!&!#8	#8 +,"!&!#F	#F *+"!&!#E	#E ()"!&!#2	#2 )*"!&!#G	#G ,-"!&!#>	#>6
<
 -.!&!#F#F ,-!&!#5#59
 =-0d)L M$ (
 )
 12!&9>7>7 %&D	J K $%"!&!#	# 98:!##  ./!&$y*:5*:5z -."5"+YPP  45"5"+YPP99C6$ ;<"5"+YP#P# 113 4040 234% 5% 456% 7% 456$ 7$ 012N 3N 89:0 ;0 9:;1 <1 2348 58 5677 87 3458 68 5677 87 123N 4N 9:;C <C :;<D =D )*GLE ME0B@A (5 )5 (E )E	+F) TU3; V3;l 23F< G<BE (> )>9$ ()*+4 ++4\C$3" ( )(5"7*6 ((3 )(3V 	(*(;()(+ ,N,N (. ). 	. 	. 02OPQ
A R
A $%& ' ?#6 7 ()*A +A -./M 0M :,g4@ A6>4B )*'tL& M& 678F 9F *+,5 -5 ,-.2 /2 )*== >=1	14040 )*+E ,E" [/$B%0/$B%,.>$?%02B$C%0+$>%,o$>$@ A (+ )A+ 
01 9
 'gs'k3@ADcK&'k3@AI3P&gs'./2C9&'./7>&gs'./2C9&'./7>&'k3@ADcK&S'./7>&gsCS#N&=xM&k3GcR&SA8TR&k3GsS&SA9cR&5tSA&/DA/CD:N;D:N"9
 ' ()t<3 =3 >"5 6  '(d; <5.5* <.d3" 4": ?O4$G(+ H(+V 01tD E  ( & 
1
1*2( 67TJ" K"8 2$aV1vrl!CD(HI J E ( ) &'T:@ ;@ &'#++-9auF&F& '(d; < +-BC#++-9auF)F)8 (	, )	, (! )!, () ))  (( )(&( F#W&#&#L? F#W&#&#L? 1aBFFA"6"$%%"4"4_a"H"J K(J )KJ 45#WG5	5	 #%56D> %&D9 :2? 8$i1J	1J@ L$i1J	1JB =$i1,	1,D% () ))"- H%!)!)> ! 	)	)@- ( ) $%4#++-9auF)&F)&X +-EF"$E$E: C F 
0
0= 
= ( )& 74 4*. 3;;T*J+.;;V*L*N O(O(	
-2C(% 3$fb./ &y"#$ %1vj"8:$egt}#$""
#4 ,- --2$ $%40; 1; K#WG??> *+7E F& ()dC D %&g4@ A '(UC D4 ./wEJ K %&D1
 2
 #$G?? @?.8,0.1%/ () )) (6 )6 +,#++-9auF3F32- (2 )2*C	/1 /015 25)8& +,UBKH7 I7!:H## 3	UB DE	Wb"FG	UWsBi)MN	UWsBi)MN	ECC+	K	M	EC8	K	M	Ir#KL
6 
$
$'0(&C4 ?#E2;? @ =/%=% >%*1(-.MO 	SYY  !	399../
(E!H	syy223
L	)				 
))

6
"BII$4$4V$<	=		!	!	#
 
RYYr]""6*BIINN1a,CD1
1
GK*+$!%
7, #;#=> ? =/t4; 5;N ($ D%=1 2 <.d=6 >6 +,$g#++-9auF6F6* 9* *B Sz"; #;$ IJ K ;="	3 9G G 9F F!
L%89 
26
B	C?? %  ()s35 45$ ()*N +N$ ./S9K :K$ ?#6- 7-&!*--    
 
 &
'	-;8H)& 9J J6B	.
 3	qcU]B/1NO	qcU]B/1NO	qcU\2.0LM	qcU\2.0LM	qcUWbM+BC	aS"AB	qcU]QF3	@	B	qcU]QF3	@	B	qcU\Aq62	?	A	qcU\Aq62	?	A	qcUWq!f-	:	<	qcUX1v.	;	=#6 (')('
N	 He#45He#45 6 6G,
 ($ )$ (7 )7
	A::D $%4wG	 H	)& t}5t}5B 6 6B0
5M!;HF$ 34GQU#++-9auF2F2&;(( & %&g#++-9auF,F,,
3G+0D. %&DHP IP"+(\$NN=<=6F,D> (( )() )"02$
6.161.%	1?? ,!45/ 6 -/$ (> )> 9) )1174 =3N3N "73N4%) #'$3N "79D"E F9M FM-L (K )K& ( )5 :;) <)
69
9999
9 :;< =
!
6 
Hhoo! ++('992(O 9O O+\  (  $58(<!=>* ?**:5"
4.$*1$h@.0 (	 )	 %&g6B 7BD
((M% *+W#++-9auF!F!H 95 5 (- )-2:; 7B& 34IF2 G2 (*-& . )&R RJ&SS3+;+;+H+HG+S<  $	$NO$ (C ) C ( ; ) ;F (#< )#<L ./$,,.(:qF!F!:92x@2 (6 )6?	?Qf IHC"7s   >Bj<[)Bk
[4Bk
