+
     ]i c                   sU   ^ 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                 sH    V P                  4       pVP                  R 4       R# FN)subplotsset_visiblefig_testfig_refax   && A/usr/lib64/python3.14/site-packages/matplotlib/tests/test_axes.pytest_invisible_axesr$   5   s    				BNN5    c                  sx    \         P                  ! 4       w  rVP                  R 4       VP                  R4       R# )zx labelzy labelNpltr   
set_xlabel
set_ylabelfigr!        r#   test_get_labelsr-   ;   s'    llnGCMM)MM)r%   c                  s    \         P                  ! 4       w  rVP                  R 4       VP                  R4       VP	                  R4       VP                  R4       R# )labeltitlexyN)r'   r   	set_label	set_titler(   r)   r*   r,   r#   	test_reprr4   C   s?    llnGCLLLLMM#MM#r%   c                 s    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cr.   Y LabeltoplocX LabelrightZ Labelr1   har0   rA   Nr   r6   legendr)   r(   colorbarr2   r   r    r!   Zsccbar   &&   r#   test_label_loc_verticalrI   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                 s(   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# )r5   r6   r7   r9   bottomr;   r=   left
horizontalorientationr?   r@   rB   NrC   rF   rH   r#   test_label_loc_horizontalrO   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           	      s   \         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.labellocationr>   zyaxis.labellocationr:   r6   r7   r9   r=   rL   rM   r?   Nr@   rB   )	
matplotlibr	   r   r6   rD   r)   r(   rE   r2   rF   rH   r#   test_label_loc_rcrQ   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                  sd   \         P                  ! 4       w  rVP                  R RR7       VP                  R RR7       VP                  R RR7       VP                  R RR7       VP                  R RR7       VP                  R RR7       VP                  R RR7       VP                  R RR7       R# )z
Test labelrK   r;   centerr>   r:   rJ   Nr&   r*   r,   r#   test_label_shiftrS      s    llnGC MM,FM+MM,HM-MM,GM,MM,HM- MM,EM*MM,HM-MM,HM-MM,HM-r%   c                 s@   \         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r1   xminxmaxN)nprandomseednormalcumsumr   acorr	correlatedotarangevlinesaxhline	r   r    ZNxr0   rW   ax_testax_refZnorm_auto_corrZlags	   &&       r#   
test_acorrrm      s    IINN8	B
		Ar"))+AdG!GMM!M%F\\!V4RVVA\AN99gXwqy)D#qDL<N
MM$^,
NNQQQN'r%   c                 s   \         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# )rT   rV   rX   rY   r[   N)r^   r_   r`   randrb   ceilastypeint64r   rc   rd   re   rf   rg   rh   ri   rl   r#   test_acorr_integersrr      s    IINN8	B		b	 ((*A	BHH%AdG!GMM!M%F \\!V4RVVA\AN99gXwqy)D#qDL<N
MM$^,
NNQQQN'r%   c                 sZ   \         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# )rT   N.lower)markeroriginZgray_rnearest)cmapinterpolation
markersize)aspectxlimylimbothi   rU   )    r   )r^   r_   r`   onesZshufflereshaper   spyimshowxaxistick_topplotZnonzerosetget_xlimget_ylimset_ticks_position)r   r    aaxs_testaxs_refr!      &&    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            	      s$   \         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)ry   rw   ru   o	linestylesolidN)r'   r   pytestraises	TypeErrorr   r^   Zeye)r+   r!   Zunsupported_kw      r#   test_spy_invalid_kwargsr      sm    llnGC+Y7$c;@B]]9%%FF266!Q<2>2 &%B%%%s   )A>>Bc                 sn   \         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user^   r_   rn   add_subplotZmatshowr   r   r   r   )r   r    r   rk      &&  r#   test_matshowr      sy    IIMM'
		r2A""1%  "F
MM!
LL
LL##F+r%   Zformatter_ticker_Z03dz.pngZx86_64gX9v?)tolc                  s   ^ 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)colorZxunitszx-label 003greenhourzx-label 004zx-label 005)matplotlib.testing.jpl_unitstesting	jpl_unitsregisterrP   rcParamsranger   Zkmr'   figurer   r(   r   autoscale_view)unitsr0   Zxdatar1   Zydata1Zydata2r!             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                  s    R  p \         P                  ! 4       P                  4       pVP                  P	                  V 4       \
        P                  ! V 4      pR# )c                     R # )  r0   pos   &&r#   	_formfuncZ4test_funcformatter_auto_formatter.<locals>._formfunc  s    r%   N)r'   r   r   r   set_major_formattermtickerFuncFormatter)r   r!   Ztarg_funcformatterr   r#   !test_funcformatter_auto_formatterr     sD     
			 B HH  + !..y9r%   c                  s    R p \         P                  ! 4       P                  4       pVP                  P	                  V 4       \
        P                  ! V 4      pR# )z	{x}_{pos}N)r'   r   r   yaxisset_minor_formatterr   ZStrMethodFormatter)Zformstrr!   Ztarg_strformatterr   r#   &test_strmethodformatter_auto_formatterr   3  sB    G				 B HH  )  227;r%   z!twin_axis_locators_formatters.pngc                  s`   \         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)numZendpoint       @皙?z%08.2lfz%05.2lfNr   皙?333333?)ZtricksZmindZjedi)   i#   i7   iK   )r8   Z3pr   )r^   linspacesinpir'   ZFixedLocatorr   r   r   r   set_major_locatorZset_minor_locatorr   ZFormatStrFormatterr   ZFixedFormatterr   ZLinearLocatortwinytwinx)ZvalsZlocsZmajlZminlr+   ax1         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                  s    \         P                  ! 4       w  rVP                  4       pVP                  4       p\         P                  ! 4        VP                  4        VP                  4        R # N)r'   r   r   r   drawcla)r+   r!   ax2ax3       r#   test_twinx_clar   e  sB    llnGC
((*C
))+CHHJ GGIGGIr%   twinr0   r1   c                 s    V  R 2pRV  2pRR.pRR.p\        4       pVP                  4       pVP                  W44       \        Wb4      ! 4       pR# )axisr   01r   bN)r   r   r   getattr)r   Z	axis_name	twin_funcr   r   r+   r   r      &       r#   test_twin_unitsr   |  sT    &ItfI	c
A	c
A
(C
,,.CHHQN
#
!
#Cr%   RQ?)r   r   c                 s   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.linewidthZ
projecting)	transform	facecolor	edgecolor	linewidthZcapstyleNr5      )r^   rf   r   r   r   rP   pathPath
add_artistpatches	PathPatchMOVETOZLINETO	transAxesr   r   r   )r   r    r   r   Z	set_scaler0   rj   ax_twinirk   r      &&&        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                  s   \         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)Zautoscalex_onZautoscaley_onr   r   lwr--r   Nr    r   r5   r    r5   r   r    r    r5   r5   )r^   arrayr'   r   add_axesr   r   margins)r0   r1   x2y2r+   r!   r   r   r#   test_twinx_axis_scalesr    s     	AaA	)	B	
RB
**,C	l%u	MBGGA2G&
))B-CHHRUqH!JJq!KK1r%   c                  s    \         P                  ! 4       w  rVP                  4       pVP                  R 4       VP                  4       pVP	                  4       pVP                  R 4       VP	                  4       pR# r   )r'   r   r   Zset_autoscalex_onr   Zset_autoscaley_on)r+   r!   Zax_x_onZax_x_offZax_y_onZax_y_offr   r#   #test_twin_inherit_autoscale_settingr    sY    llnGChhjGxxzH
 hhjGxxzHr%   c                  s   \         P                  ! ^ 4      p V P                  4       p\        P                  P	                  R4      pVP                  V4       VP                  4        \        P                  ! ^ ^\        P                  ,          ^d4      pVP                  V\        P                  ! V4      4       VP                  4        VP                  V4       \         P                  ! 4        V P                   F  pVP                  4        K  	  \         P                  ! ^4      p\         P                  ! ^VR7      pVP                  P!                  R4       VP                  V\        P                  ! V4      4       VP                  4        VP                  4        VP                  V4       VP                  V\        P                  ! V4      4       VP                  4        \         P"                  ! V 4       R# )r    shareyTN)d   r  )r'   r   gcar^   r_   r   r   r   r   r   cos	autoscaleaxesremovesubplotr   Zset_invertedclose)r+   r!   imgr0   ax0r   r   r#   test_inverted_clar    sA    **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                  s2  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 F"  pRo	V! V. RO4      pRo	VP                  4        K$  	  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called   &r#   r   Z,test_subclass_clear_cla.<locals>.ClaAxes.cla  s    r%   r   N)__name__
__module____qualname____firstlineno__r   __static_attributes____classdictcell____classdict__r     @r#   ClaAxesr    s      r%   r)  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# r  )superr   r  	__class__r     &r#   r   Z1test_subclass_clear_cla.<locals>.ClaSuperAxes.cla   s    r%   r   )r   r!  r"  r#  r   r$  r%  __classcell__r/  r'  r     @@r#   ClaSuperAxesr+    s      r%   r4  c                       ] tR tRtRtR# )+test_subclass_clear_cla.<locals>.SubClaAxesi%  r   Nr   r!  r"  r#  r$  r   r%   r#   
SubClaAxesr6  %      r%   r8  c                   r  )*test_subclass_clear_cla.<locals>.ClearAxesi(  c                r  r  r   r  r  r#   clearZ0test_subclass_clear_cla.<locals>.ClearAxes.clear)  s    Fr%   r   N)r   r!  r"  r#  r;  r$  r%  r&  r(  r#   	ClearAxesr:  (  s     	 	r%   r<  c                   r*  )/test_subclass_clear_cla.<locals>.ClearSuperAxesi-  c                r,  r  )r-  r;  r.  r0  r#   r;  Z5test_subclass_clear_cla.<locals>.ClearSuperAxes.clear.  s    FGMOr%   r   )r   r!  r"  r#  r;  r$  r%  r1  r2  r3  r#   ClearSuperAxesr=  -  s     	 	r%   r>  c                   r5  )-test_subclass_clear_cla.<locals>.SubClearAxesi3  r   Nr7  r   r%   r#   SubClearAxesr?  3  r9  r%   r@  Fr  )r   warnsPendingDeprecationWarningr   r   r   )
r)  r4  r8  r<  r>  r@  r+   
axes_classr!   r  s
            @r#   test_subclass_clear_clarD    s    
 
/3
5 
5	d 	
5 
/3
5 
5	4 	
5W D 
 y  (Cj ,@
\*
 
@C
5 
5
5 
5s   C3%D3D	D	c                  sd    \         P                  ! 4        F  p R V P                  9  g   K  K  	  R# )rD  N)r   Z__subclasses__r"  )Zklass    r#   !test_cla_not_redefined_internallyrF  D  s(    $$& %E,>,>>> 'r%   c                 s:   \         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)rP   r	   r   r   minorticks_onr   r    rj   rk   r   r#    test_minorticks_on_rcParams_bothrI  L  s    			 5t 5t = 
> 
>##%aVaV$
> F
KKAA

> 
>s   'B

B	zautoscale_tiny_range.pngTremove_textc                  s    \         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!   y1        r#   test_autoscale_tiny_rangerQ  W  sR     ||Aq!HC388$#']
AAF$ %r%   defaultc                  s   \         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                  RR7       \	        VP                  4       R	4       \	        VP                  4       R
4       R# )r5   Tr0   F)enabler   tightr1   N)rS  r5   r         )g333333ÿg333333	@)r         @)r'   r   r   r  r   r   r   r*   r,   r#   test_autoscale_tightrY  `  s    ll1a GCGGLLL3eL4LL3dL3BKKM=1BKKM:. LLLBKKM=1BKKM:.r%   c                  sD   \         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# )r  ZdtypeTsharex)rT  Nr   )r^   rf   floatr'   r   loglogsemilogxr  r   r   r   r   )r0   r+   r   r   ZlimsrP  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                  s   \         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    rt   rv   r   FTN      )rb  r   )
r'   r   r   r   r   r   Zuse_sticky_edgesr  Z_xmarginZ_ymargin)r+   r!   r|   r}   r   r#   test_use_sticky_edgesrc    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                 s&   \         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)r^   rf   r   r   
pcolormesh)r   r    Zr  r   rH   r#   test_sticky_shared_axesrf    s     			"a#A


s
#C


s3

/CNN1


c
"C


c#

.CNN1r%   zsticky_tolerance.pngr   )rK  r   c                  s   \         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&@)r0   heightrJ   gffff@)r1   widthrK   Ngffff&gffff)r'   r   rM  barbarh)r+   rN  rh  r   r#   test_sticky_tolerancerk    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                  sr    \         P                  ! 4       w  rR R.;r#^ ^.^^..pVP                  W#V4       R# )gGZP@g    `P@N)r'   r   contourf)r+   r!   r0   r1   datarP  r#   test_sticky_tolerance_contourfrn    s<    llnGCx  AFQFDKKdr%   c                  s    \         P                  ! \        R R7      ;_uu_ 4        \        P                  ! 4        RRR4       R#   + '       g   i     R# ; i)z0 were givenr  N)r   r   r   r'   stemr   r%   r#   test_nargs_stemrp    s+    	y	7	7
 
8	7	7	7s   AA	c                  s    \         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 givenr  ZFirstZSecondN)r   r   r   r'   r  rD   r!   rE  r#   test_nargs_legendrr    sA    	y	7	7[[]
		7)hZ+ 
8	7	7	7   +AA+	c                  s    \         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 givenr  Nr    r5   r    r   r5   r   rV  )r   r   r   r'   r  
pcolorfastrq  rE  r#   test_nargs_pcolorfastrx    sG    	y	7	7[[] 	vv&I(>? 
8	7	7	7s   0AA0	Zoffset_pointsc                  sD   \         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)Zautoscale_onr|   r}   purpler   r   z	local maxrm  zoffset points)xyxycoordsxytext
textcoordsN)r      )r  rV  r5   rV  rV  )	r^   rf   r  r   r'   r   r   r   annotate)tsr+   r!   linerP  r#   test_basic_annotater    s     			#sD!A
s255y1}A **,C	e'	HBGGAQhG/EDKK/  ;r%   zarrow_simple.pngc                  s   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)rh  length_includes_headshapehead_starts_at_zeroZ
head_widthhead_lengthN)TF)rX   rK   r>   )r   r'   r   rL  ziprM  set_xlimset_ylimr^   r   arrowr   r  )
r  r  r  kwargsr+   rN  r   r!   Zkwargtheta
             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                  s`    \         P                  ! 4       w  rVP                  ^ ^ ^ ^ ^ R7       R# )r    )r  Nr'   r   r  _r!   r,   r#   test_arrow_emptyr  
  s%    LLNEAHHQ1aQH'r%   c                  s\    \         P                  ! 4       w  rVP                  ^^^^4       R# r5   Nr  r  r,   r#   test_arrow_in_viewr    s!    LLNEAHHQ1ar%   c                  s    \         P                  ! 4       w  rVP                  R RRR7      pVP                  R RR/ R7      pR# )foo)r  )r  
arrowpropsNrt  r   rV  )r'   r   r  )r+   r!   Zannr   r#   test_annotate_default_arrowr    s9    llnGC
++eVF+
3C
++eVFr+
BCr%   c                 sF   \         P                  ! 4       w  r\        P                  ! VP                  4      P
                  p\        P                  ! \        P                  4      P
                  p\        VP                  4       VP                  4       4       F  w  rEK  	  R# )z?Check that the signature of Axes.annotate() matches Annotation.N)
r'   r   inspectZ	signaturer  Z
parametersmtext
Annotationr  values)r+   r!   Zannotate_paramsZannotation_paramsp1p2r   r#   test_annotate_signaturer     sl    llnGC''4??O))%*:*:;FFo,,.0A0H0H0JKBKr%   zfill_units.pngdpi)savefig_kwargc                  sj   ^ 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]rZ  degred)Zyunitsr   r   r   r   g     @r  )ry  ry  g     V@ry  )r   r   r   r   Epochdatetimer  Durationr^   rf   mdatesdate2numr'   r   r   fillZautofmt_xdate)r   r  valuedayr  Zdtnr+   r   r   r   ax4ind               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            	      sf   \         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 definedr  r   r0   ru   Nz linestyle .* redundantly defined---r   zcolor .* redundantly definedrr   r   r   )fmtr   )r   rA  UserWarningr'   r   errorbarr   r%   r#    test_plot_format_kwarg_redundantr  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                 s   . 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# )r5   xerryerr)r  r  ZdashesNrU  )r^   r   r  r  absZ
set_dashes)r   r    r0   r1   rk   rj   r  r     &&      r#   test_errorbar_dashesr  W  s    A
q	A[[]FllnGq"&&)"&&)DHDOOQFQq	q	1a&Ir%   c                  s    \        ^
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 )
   r0   r1   r  N)r   r'   r   r  Zkeysr  )ZiiDr+   r!   r   r#   test_errorbar_mapview_kwargr  e  sR    )$)BR)A$llnGCKK!&&(ahhjqxxzK: 	%s   A2Zsingle_pointc                  sv   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   rm  N)rP   r   r'   r   r   )r+   r   r   rm  r   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            	      s   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   r  r  N)r  g(\bP)r'   r   r  r  r^   
datetime64r   r   rA  r   MatplotlibDeprecationWarning	plot_dater   )r  Ztime1data1r+   r!   rP  r#   test_single_dater  }  s     -2CLL()	|4	5BJEHEll1a GC	c66	7	7
1
E3c: 
8qEJJuSJ, 
8	7s   	#CC!	c                 s   \         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# )r  r|   r}   Nr5   r   r   r5   )gQQ?)r    	   )r^   rf   r   r   r   r   ravel)r   r    rowcolrN  rH   r#   test_shaped_datar    s    
))B-


(C
))AsB

'
'
0C


A
CFKKFKK


1
CFJJKfJ-FKK		r%   c                  s   \         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# )	r5   r   ZtwosrZ  r  r  Nr5   r5   r   r   )r^   r  r]  r'   r   r   r   )ZptsrN  r,   r#   test_structured_datar    sj    
((FF#VUOfe_+M
NC **,


"CFKKSK)FKK#K.r%   Zaitoff_proj)r   rK  r   c                 s   \         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
ZaitoffZ
projection)figsize
subplot_kwr   )rz   N)   @)
r^   r   r   meshgridr'   r   dictgridr   rM  )r0   r1   XYr+   r!   r   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   alpharz  )r   r   r   r   r  r  r  r  convertr'   r  axvspanr  r   Zt0Ztfr  r!   rP  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  r  )r   r   r   r   r  r  r  r  r  r'   r  axhspanr  r  rP  r#   test_axhspan_epochr    r  r%   zhexbin_extent.pngc                  s&   \         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# )  extentr0   r1   )r  rm  N)r     r   r   333333?ffffff?)r'   r   r^   rf   r   hexbinr+   r!   rm  r0   r1   rP  r#   test_hexbin_extentr    sx     llnGCIIdOd"++I6DDAIIa+I, CDllnGCIIc3/dI;r%   c                  s   \         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 xminr  r  Nz)In extent, ymax must be greater than ymin)r   r  r5   r    r    r5   )r    r5   r5   r    )	r'   r   r^   rf   r   r   r   
ValueErrorr	  r
  rP  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                  s    \         P                  ! 4       w  rVP                  \        P                  P                  ^
4      \        P                  P                  ^
4      R^^R7      pR# )r  r   normvminvmaxN)r'   r   r	  r^   r_   rn   )r+   r!   Zhexr   r#   test_hexbin_string_normr    sB    llnGC
))BIINN2&		r(:QUV)
WCr%   zhexbin_empty.pngc                  s   \         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	  r^   maxrf   r*   r,   r#   test_hexbin_emptyr    se     llnGCIIb" IIb"5I!IIb"bffI5IIb"299R=I)r%   c                  s    \         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R# )	   )r  Zpicker  ,  r0   r1   Nr   r  r  r   )r'   r   r^   rf   r   r	  r   )r+   r!   rm  r0   r1   ZhbZmouse_eventr   r#   test_hexbin_pickabler     sT    llnGCIIcNS ))(3DDA	1 0	<B!C3/Kr%   zhexbin_log.pngc            	      s    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       R# )Fpcolormesh.snaprT   順 r         @rX  r   r   T)yscaler  	marginalsr  N)r'   r   r^   r_   r`   standard_normalZpowerr   r	  sumrE   )nr0   r1   r+   r!   hr   r#   test_hexbin_logr*    s    
 ',CLL"#IINN8A
		!!!$AcAgbii77:::A
AGAllnGC
		!u5 BFF 	 	<ALLOr%   c                  sB   \         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# )r5     r   )xscaler$  gridsizer   r   N)	r^   Z	geomspacer'   r   r	  r   Zassert_almost_equalZget_offsetsr  )r0   r+   r!   r)  r   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   rK  c                  sp   \         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# )	rT   r"  r   r#  rX  T)r-  r%  r  Nr  r  )r^   r_   r`   r&  r'   r   r	  r'  )r(  r0   r1   r+   r!   rP  r#   test_hexbin_linearr1  :  s~     IINN8A
		!!!$AcAgbii77:::AllnGCIIaW "  (r%   c                  s    \         P                  ! ^4      P                  R4      w  r\        P                  ! 4       w  r#VP                  WR^^dR7      pR# )r  r   )r  r  r  Nr  )r^   rf   r   r'   r   r	  )r0   r1   r+   r!   r)  rP  r#   test_hexbin_log_climr2  G  s?    99S>!!(+DAllnGC
		!U	5Ar%   c           
      sV   . 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                 s    \        V 4      # r   )r'  )v   &r#   <lambda>Z>test_hexbin_mincnt_behavior_upon_C_parameter.<locals>.<lambda>m  s    CFr%   )r  r  r3  r  r-  N)r    r    r7  )   r    )r    r8  )      $r  r9  r  )r  r  )r  lenr   r	  Zset_facecolor)
r   r    Z
datapointsr  r  r  r  r-  rj   rk   
   &&        r#   ,test_hexbin_mincnt_behavior_upon_C_parameterr<  N  s    J 
DA	
c!fA!FH!GF MM		   ! NN	#A,*   '"r%   c                  s   \         P                  ! 4       w  rVP                  4        VP                  . RO. RO4       \         P                  ! 4        \         P                  ! 4       w  rVP                  4        VP                  . RO. RO4       \         P                  ! 4       w  rVP                  R4       VP                  ^
^4       R# )r  r   N)r  r   rW  )r5   r   r  r  )r'   r   invert_xaxisr   r  invert_yaxis
set_yscaler  r*   r,   r#   test_inverted_limitsrA  u  s     llnGCOOGGNM* IIKllnGCOOGGNM* llnGCMM%KKAr%   Znonfinite_limitsc                  s   \         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)ry  r{  ignoreZdivideN)
r^   rf   Zeerrstater   nanr:  r'   r   r   r0   r1   r+   r!   r   r#   test_nonfinite_limitsrG    sq    
		"bddD!A	H	%	%FF1I 
&66Ac!faiLllnGCGGAqM	 
&	%s   B33C	plot_func           	      s    \         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  rZ  C0r  N)r^   rf   r   r   r   r:  )rH  r   r    r0   rj   rk   r!      &&&    r#   test_limits_empty_datarK    sg     			,ODA!GFGr2&as1vd;  r%   r   c                  s   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# )rw   image.interpolationr  r  N)rP   r   r^   indicessqrtr'   r   r   )Nr0   r1   r  r+   r!   rm  r   r#   test_imshowrP    s     2;J-.AZZFQAIAAIA
1QT	!#A llnGCIIaL 8DllnGCIIcIr%   Zimshow_clipgףp=
?)r   r   c                  s   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# )rw   rL  )	clip_pathN)rP   r   r^   rM  rN  r'   r   contourmtransformsZTransformedPathZ	get_pathsget_transformr   )rO  r0   r1   r  r+   r!   r8   rQ             r#   test_imshow_cliprV    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            	     s   ^^.^^..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.r  r  N)r'   r  r   r   r  r   mcolors	Normalize)r   r!   r,   r#   test_imshow_norm_vminvmaxr\    sv    
Q!QA	B	z@
A 
A 			!'++C411	E
A 
A 
A 
As   +A77B	Zpolycollection_joinstylec                  s&   \         P                  ! 4       w  r\        P                  ! ^^.^^.^^.^^..4      p\        P
                  P                  V.^(R7      pVP                  V4       VP                  ^ ^4       VP                  ^ ^4       R# )r5   )
linewidthsN)
r'   r   r^   r  r   collectionsZPolyCollectionadd_collection
set_xbound
set_ybound)r+   r!   vertsr8   r   r#   test_polycollection_joinstylerc    s}     llnGCHHq!fq!fq!fq!f56E&&w2&>AaMM!QMM!Qr%   z	x, y1, y2ry  )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r0   rO  r  r+   r!      &&&  r#   test_fill_between_inputri    s=     llnGC	z	"	"
r" 
#	"	"	"   AA(	z	y, x1, x2c                 re  r   )r'   r   r   r   r  fill_betweenx)r1   x1r  r+   r!   rh  r#   test_fill_betweenx_inputrm    s?     llnGC	z	"	"
# 
#	"	"	"rj  zfill_between_interpolate.pngg~jt?)rK  r   c            
      s   \         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# )ry  r  333333?Tr[  blackr  white/)wherer   hatchinterpolater  )rr  r   rt  r   r   N)r^   rf   r   r   r'   r   r   rf  r   Zmasked_greaterZmasked)r0   rO  r  r+   r   r   r   r#   test_fill_between_interpolateru    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            
      s   \         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皙?rr  r   rt  r  r     X  N)rv  i  i  )g"@r  皙@)g@gffffff@gffffff@)r  r  )r^   r  r'   r   r   rk  r  r  )r   r  Zprofr+   r!   rP  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                  s   \         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	# )
r  rx  r8   r   r   Tr   rz  r  N)r^   rf   asarrayrE  r'   r   r   rf  rg  rP  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                  s   \         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    r5   r   rW  r8  r        )i@B i  r"  r  r  r    r    r    r   )r^   r  r'   r   r   r@  
set_xscaler  rF  r   r#   test_symlogr  Q  s^    
+,A
;<AllnGCGGAMMM(MM(KKHr%   zsymlog2.pdfc                  s2   \         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   r  )	linthreshTN)      4@r   r   r   r{  r   皙)	r^   rf   r'   r   r  r   r  r  r  )r0   r+   rN  r!   r  rP  r#   test_symlog2r  ]  sx     			#r5!A||Aq!HCS":;

h)4
 < GT3r%   c            
      s~   . 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)            rb  ry  r   r   r   )r  g      r        rb        пr    r  r         ?r         ?r   r   )r^   r  hypotr'   pcolorlist)r0   r1   r  r  re  rP  r#   test_pcolorargs_5205r  j  s    .A	*A;;qDA
AJJqMJJtAwJJqQssCRCx[!JJqT!CRC"H+&'r%   rd  c                  s   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   Nrx  r   
edgecolorsr   wgouraudshadingr  r   )r'   r   r^   r   r  r  r   r  minptpr   masked_wherer  r  r   rd  )r(  r0   r1   r  r  QxQzre  Zmr  r   r   r                   r#   test_pcolormeshr  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%   Zpcolormesh_smallZepsc                  sz   ^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# )rV  r   r  r   Nrx  r  r   r  r  r  r  rb  r   )r^   r   r  r  r   r  r  r  r   r  r  r  r'   r   rd  r  set_axis_off)r(  r0   r1   r  r  r  r  re  r  ZZm2r+   r   r   r   r  r!                      r#   test_pcolormesh_smallr    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%   Zpcolormesh_alphapdf)r   rK  c                  s\   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   zorderNry  rM  )rx   r  r  r  r  )rx   r  r  r  )NNNrV  )r    r  )r  r   r   r   r   )r'   r   r^   r  r   r   r  r  r  r   	colormaps	resampledrf   rZ  ZListedColormapr   	add_patchmpatches	Rectanglerd  )r(  r  r  r  ZQyre  Zvircolorsrx   r+   r   r   r   r  r!                     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                 s    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  rZ  gray)rx   r  r  r  N).r    )r   r^   r   r]  rd  )r   r    Zdimsr  r!   r8      &&&&  r#   test_pcolormesh_rgbar    sa     
			B
AtE*Q.AMM!				BMM!F)&qqMFr%   c                 s,   \         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# )rW  rw   r  N)r^   rf   r  r   rd  )r   r    r0   r1   r  r  r  r!   r  r#   test_pcolormesh_nearest_noargsr    sq    
		!A
		!A;;qDA	A				BMM!YM'				BMM!9M-r%   zpcolormesh_datetime_axis.pngc            
      sF   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!  ry  \(\?333333?Zhspacer:   rJ     ZdaysNr   r  r>   r   )r'   r   r   subplots_adjustr  r^   r  r   	timedeltarf   r  r  rd  repeatnewaxisget_axesget_xticklabelsset_haset_rotation
r+   basedr0   r1   Zz1Zz2zr!   r.   r  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            
      s    \         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 )ry  r  r  r  r  r  Nr  r  r>   r   )r'   r   r  r  r^   r  r   r  rf   r  r  r  r  r  r  r  r  r  r  r  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            
      sF
   ^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P                  V^
V,          ,           V^
V	,          ,           VR
R7       RRR4       R#   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELR; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELd; i  + '       g   i     EL; i  + '       g   i     R# ; i)r  r   Nr  r  rB  Zinvalidmaskz.are not monotonically increasing or decreasingr  autorT   r  r   )ig  r    r5   rY  )r^   r   r  r  r'   r   r   r   r   rd  TrE  r  rD  r   r  zerosr  rA  r  r_   r`   )r(  r0   r1   r  r  re  r  r!   Znoise_XZnoise_YZrecord              r#   test_pcolorargsr    sl   
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>
 	a7
lAbjL!VD
* 
*C 
"	!	!	!	!	!	!	!	!	!	!	! 
#	"	"	&	&	&	"	"	"
N 
N 
N
* 
* 
*sm   (Q/%R,"R8"R+ R?$S, S'8S;AT/R 	R	R(	+R<	?S	S$	'S8	;T	T 	c                 s   \         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).
Zraise)Zunderr   N)	r^   rD  rf   r_   randnr:  r'   r   rd  r0   r1   r  r+   r!   rP  r#   test_pcolormesh_underflow_errorr  S  s}    
 
7	#	#IIaC IIaC IIOOCFCF+,,.
aA 
$	#	#	#s   BB66C	c                  s   \         P                  ! ^4      P                  ^^4      p \         P                  ! . ROV P                  4      p\         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\         P
                  P                  WgR7      p\        P                  ! WEV4       \         P
                  P                  WGR7      p	\         P
                  P                  WWR7      p
\        P                   ! WV4       R# )r8  Tr  rZ  NFTFr   )r^   rf   r   broadcast_tor  r   r  r'   rd  r   r  r   r   r  r  Zboolr  )r0   ZxmaskZmasked_xr1   r  r  re  r  Zmasked_ZZmasked_XZmasked_Yr  r#   test_pcolorargs_with_read_onlyr  `  s<   
		!Q"AOO0!'':Euu{{1{)HNN8
Aq"A
Aq"A;;qDA
q255y1}q255y1} 55A88Bd#DDH??4)Duu{{1{(HNN1"uu{{1{(Huu{{1{(HJJx8,r%   c                 s   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    rT   rM  r  Nrw   r   r   r^   rf   r_   r`   r  rd  diffr   r    r!   r0   r1   re  r  r  r  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                 s   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 )	r  i  rT   rM  r  r   Nrw   r   )r   r   r  Zfromtimestampr^   rf   r_   r`   r  rd  r  r  r  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            	      s   \         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    rT   zDimensions of Cr  rM  r  N)r'   r   r^   rf   r_   r`   r  r   r   r   rd  r+   r!   r0   r1   re  rP  r#   test_pcolorflaterrorr    s    llnGC
		!QA
		!QAIINN8
		1A	y(9	:	:
aAv. 
;	:	:	:s   )CC	c            	      sp   \         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 Xr  rM  r  N)	r'   r   r^   r  rf   r   r   r   rd  r  rP  r#   test_samesizepcolorflaterrorr    sl    llnGC;;ryy|RYYq\2DA	A	y(?	@	@
aAv. 
A	@	@	@s   B$$B5	snapFc                 s   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    rT   )r  Nr   r  )	r   r    r  r!   r0   r1   re  r  r  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%   Z	canonicalc                  sZ    \         P                  ! 4       w  rVP                  . RO4       R# r5   Nrv  r'   r   r   r*   r,   r#   test_canonicalr    s     llnGCGGIr%   zarc_angles.pngc                  sP   ^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   rL  rM  r  r  ZEllipseArcr   r^   r  deg2radr   r  r  )
r  r)  Zcentrer   r+   rN  r   r!   r  r  r  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%   Zarc_ellipsec            
      s   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   r  F)angler   r  r  equalr   )r  r   r   r  N)r^   r  rf   r  r   r  re   r'   r   r   r  r  r  r  )Zxcenterycenterrh  rg  r  r  r0   r1   Z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                  s    \         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   r  Nrv  rV  r   r5   )rW  rV  r   )r  rW  rV  )r'   r   mmarkersMarkerStyler   r6   r  )fixr!   mr   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   rR  r.   r  Nmark all	markeveryr.   r  mark every 10+mark every 5 starting at 10r  r  r^   r   r   rN  r'   r   r   rD   rF  r   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                  r   )r    r   z-orR  r  z-dNr  r  z-sr  z-+r  r  r	  rF  r   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.pngr  c                  s\   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   r  lsmsr     r     r  r  r   ry  r   ?r   )slicerP   gridspecGridSpecr:  r^   r   r   rL  r'   r  r/   strr   
casescolsgsdeltar0   r1   r   caser  r  r  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                  s   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   r  r  r  r  r   r  r  )r8  g@)r  g333333?)r  rP   r  r  r:  r^   r   r   rL  r'   r  r/   r  r   r|   r}   r  r  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                  s   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   r  r  r  r  r   r  r  )r  rP   r  r  r:  r^   r   r   rL  r'   r  r/   r  r,  r$  r   r  r  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                  s&   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   r  r  r  r  r   r  r  )r  rP   r  r  r:  r^   r   r   rL  r'   r  r/   r  r   )	r  r  r  r  r  r   r!  r  r  	            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                  s   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   :Nr  N:r  F   Nr  r   r  r  r  r  r   r  r  i)r  rP   r  r  r:  r^   r   r   rE  rL  r'   r  r/   r  r   r  r  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%   Zmarker_edgesc            	      s   \         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.      >@r  )r  mewmecr   r   r   N)r^   r   r'   r   r   r   r0   r+   r!   r   r#   test_marker_edgesr/    s    
Aq"AllnGCGGArvvay$4QCG8GGAcE266!9dtG<GGAcE266!9dtG<r%   zbar_tick_label_single.pngc                  s    \         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   )r1  r2  rm  N)r'   r  ri  r   )r!   rm  r+   r   r#   test_bar_tick_label_singler3    sa     
BFF1av#F. CDllnGC	BFF36cF=r%   c                  s|    \         P                  ! 4       w  rVP                  ^ ^.\        P                  ^.4       R# r    N)r'   r   ri  r^   rE  r*   r,   r#   test_nan_bar_valuesr5    s)    llnGCFFAq6BFFA;r%   c                  sX    \         P                  ! 4       w  rVP                  . . 4       R # r   r'   r   ri  r*   r,   r#   test_bar_ticklabel_failr7    s    llnGCFF2rNr%   zbar_tick_label_multiple.pngc                  l    \         P                  ! 4       p V P                  ^R.^^.RR.RR.RR7       R# )	r5         @r   r   r   r   rR   rh  r2  r1  Nr'   r  ri  rq  rE  r#   test_bar_tick_label_multipler<    s;     
BFFAs8aVC:3*  r%   z/bar_tick_label_multiple_old_label_alignment.pngc                  s    R \         P                  R&   \        P                  ! 4       p V P	                  ^R.^^.RR.RR.R R7       R# )	rR   zytick.alignmentr9  r   r   r   r   r:  N)rP   r   r'   r  ri  rq  rE  r#   *test_bar_tick_label_multiple_old_alignmentr=    sL     .6J)*	BFFAs8aVC:3*  r%   c                 s"   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   rR   r1  Nr   g @g333333@r  r  r}  gffffff
@g@)r   r   ri  r   r    r!   x0y0r0   r1      &&     r#   test_bar_decimal_centerrE    s    				B	B	B RR A RR AFF1xF 				BFF2F" 	! s
   BBc                 s.   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   rR   rg  r1  Nr?  r@  )r   r   r5   r5   )r   r   rj  rA  rD  r#   test_barh_decimal_centerrG    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   rR   rh  r1  Nr?  r@  r  g333333?r5   r   )r   r   ri  )r   r    r0   r1   Zw0r   r  r!   r  r#   test_bar_decimal_widthrK     sn    AA	B RRA 				BFF1qF)				BFF1rF* 	!   A1c                 rH  )r   rR   rF  Nr?  r@  rJ  )r   r   rj  )r   r    r0   r1   Zh0r   r)  r!   r  r#   test_barh_decimal_heightrM    sn    AA	B RRA 				BGGA(G+				BGGA8G, 	!rL  c                  v    \         P                  ! 4       p V P                  ^^.^^.RRRR7      pV F  pK  	  R# )r5   r   r   r  r  r   r   Nr;  r!   rectsrectr   r#   test_bar_color_none_alpharS    s4    	BFFAq6Aq6FcFJEr%   c                  rN  )r5   r   r  r   rO  Nr;  rP  r   r#   test_bar_edgecolor_none_alpharT  $  s4    	BFFAq6Aq6C6FJEr%   zbarh_tick_label.pngc                  r8  )	r5   r9  r   r   r   r   rR   )rg  r2  r1  N)r'   r  rj  rq  rE  r#   test_barh_tick_labelrU  ,  s;     
BGGQHq!fc3ZS#J  r%   c                 s>   \         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   Zhoursrh  )r  rh  )rg  )rg  r  r   Nr   r  r  )	r'   r   ri  r  r  rj  r^   r  broken_barh)r+   r!   r  r   r#   test_bar_timedeltar[  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                 s&   \         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       \        P                  ! 4       w  r#VP                  . R
OW,
          V R7       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)rg  rJ   )rh  rK   N)r    r5   rV  )r^   r  r  r'   r   ri  rj  )startZstopr+   r!   r   r#   test_bar_datetime_startr]  N  s    HHbmmL12==3NmmL13 4E88R]]<0"--2M]]<02 3D llnGCFF9TZF6 llnGCGGITZeG4r%   c                 s    \         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)periodsZfreq	positionsN)	r^   r_   rn   
date_rangeZ
DateOffsetyearr'   r   boxplot)pdrm  r^     &  r#   test_boxplot_dates_pandasrg  ^  sY    99>>!QDMM*"#"--a-*@  BBF$ 
JJLKK&r%   c                  sf   \         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rh  r   ri  N)r   r   r   r   )r^   r_   rn   r'   r   rd  rm  r+   rN  r   r#   test_boxplot_capwidthsrm  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                 s   ^ 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  )ZsecondsNr   )Zpandas.plottingrn  ro  r'   r   r   r  r:  appendr  r^   rf   r  r  rd  canvasr   )re  rn  ro  r+   r!   ZtimesZy_valsZ	time_axisZy_axisr  Zz_dataims   &           r#   test_pcolor_regressionrt  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                 s   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	# )rc  monthr  r  ZdaterR   rI  oranger   N)rV  rV  rV  r5   r5   r5   rv  )rc  ru  r  )		DataFrameZto_datetimeZgroupbyr'  indexr'   r   ri  r   )re  dfZmonthlydatesZforecastbaseliner+   r!   r   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                 s    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# )	r0   r   rh  ry  rX  N)r   r   r#  r   ry  r  rv  )rx  r'   r   ri  r0   rh  re  rz  r+   r!      &   r#   test_bar_pandas_indexedr    sJ    	sL'<@% 
 
'BllnGCFF244288F$r%   c                 s    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# )r5   r0   r   rI  )r   rs  rs  N)r   r   ri  )r   r    rj   rk   r0   r1   hatchesr   r  r#   test_bar_hatchesr    su     !GF	
AA	
AACjG1X

14T
<  KKGK$r%   
_nolegend_r   barsc                 s    \         P                  ! 4       w  rVVP                  WVR 7      pV Uu. uF  qP                  4       NK  	  p	pR# u upi )r  N)r'   r   ri  Z	get_label)
r0   rh  r.   expected_labelscontainer_labelr  r!   bar_containerri  Z
bar_labelss
   &&&&&     r#   test_bar_labelsr    s@     LLNEAFF15F1M-:;]c--/]J;J;s   Ac                  s   \         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)r0   r1   r  r  N)r  r  re  )r'   r   r   r   r  ri  r  r,   r#   test_bar_labels_lengthr    s    LLNEA	z	"	"
SzAq69 
#LLNEA	z	"	"
SzAq6#/ 
#	" 
#	" 
#	"	"s   B:C:C
	C	c                 s   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# )r5   float64rZ  ZFloat64r  Nrv  )Seriesr'   r   ry  rx  )re  r0   rz  rf  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                  s    \         P                  ! ^ ^^4      ^,          p \         P                  ! ^V ,
          ^V ,           .4      p\        P                  ! 4       w  r#VP                  VRRR7       R# )r    FT)r  r   N)r^   r   concatenater'   r   hist)Zdata0rm  r+   r!   r   r#   test_hist_logr    sS    KK1c"A%E>>1u9a%i01DllnGCGGDu$G'r%   c           	      s   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   histtyper  T)r   r  N)ri  step
stepfilled)r   rL  r@  r  )r   r    r   r   r   r  r!   rD  r#   test_hist_log_2r    s      A&Hq!$G !>?A!!%(AAq84AAq84A!!%(!Q$--BGGAqdXG6   @r%   c                  sD   \         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        R# )r   
barstackedr  r   Nr    r    r5   )r'   r   r  r@  rr  r   r+   rN  r,   r#   test_hist_log_barstackedr  	  sy    ||AHCFKK!q!fq<K8FeFKK	1|K4FeJJOOr%   zhist_bar_empty.pngc                  V    \         P                  ! 4       p V P                  . R R7       R# )ri  r  Nr'   r  r  rq  rE  r#   test_hist_bar_emptyr  	  s     
BGGBGr%   c                  s   \         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       F6  pW#^,
          ,          P                  4       pW#,          P                  4       pK8  	  R# )rT   r   r   r  size)r  r  N)r^   r_   r`   clipra   rp   Zfloat16r'   r  r   r:  Zget_corners)r  r)  Zbcr  ZrleftZrrightr   r#   test_hist_float16r  	  s    IINN8WW
		c-q!55;VBJJ5G as+A	
1B1c"gQ3##%""$ r%   zhist_step_empty.pngc                  r  )r  r  Nr  rq  rE  r#   test_hist_step_emptyr  "	  s     
BGGBG r%   zhist_step_filled.pngc                  s   \         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	R# )r    r  r  TFNr  r  nrowsncolsr  stackedrq  rJ   r  r7  )r^   r_   r`   r  r'   r   r  rM  r  r3   r  r   )
r0   Zn_binsr  typesr+   rN  ZkgZ_typer!   r   r  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Gr%   zhist_density.pngc                  s    \         P                  P                  R 4       \         P                  P                  R4      p \        P
                  ! 4       w  rVP                  V RR7       R# )rT   r  TdensityN)r^   r_   r`   r&  r'   r   r  rm  r+   r!   r   r#   test_hist_densityr  <	  sC    IINN899$$T*DllnGCGGD$Gr%   c                  s    \         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   rb  r    r5   r  )r^   r_   ZRandomStater  r'   r  Z	histogramr   )Zrngr  r  Zmpl_heightsr  Z
np_heightsr   r#   test_hist_unequal_bins_densityr  D	  s[     ))


&C		#A"Dt<KALLt<MJK,r%   c                  s@   \         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)r  r'   r   r  r  r   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  r5  r#   r6  r6  Y	  s    tr%   c                 s0    \         P                  ! V R 4      # )r  )r^   r  r  r5  r#   r6  r6  Z	  s    rzz$'Er%   c           	      s   \         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)
r  r'   r   r  r^   r   r   r   r{  r  )r  rm  Z
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                 s    \         P                  ! V 4      w  p p\        P                  ! V4      pVP                  ^8X  d   R# R# r  )r'   r  r^   r  Zndim)rm  Zexpected_number_of_histsZhistsr  r   r#   test_hist_with_empty_inputr  n	  s2    
 ((4.KE1aJJuEzzQr%   zhisttype, zorderri  r  r  c                 s    \         P                  ! 4       P                  4       pVP                  ^^.V R7       VP                   F  pK  	  R# )r5   r  N)r'   r   r   r  r   )r  r  r!   patchr   r#   test_hist_zorderr  |	  s7    
 
	!	!	#BGGQFXG&r%   c            
      s    \         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=Truer  r   NT)r   r|  r  )rW  r  r5   r    r   )r5   r   rV  rW  r  r8  )r'   r   r   rA  r  stairsr*   r,   r#   "test_stairs_no_baseline_fill_warnsr  	  sQ    llnGC	k)F	G	G
		 	 	
 
H	G	G	Gs   A!!A2	c                 s"
   ^ 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|  rL   )r|  rN   rM   solid_joinstylemitersolid_capstylebutt	drawstyle
steps-post)r8     r   %   i0   r      rW  )	r   r   r#  rX  rz  g      @      @g       @      "@r   )matplotlib.lineslinesr^   r  r   flattenr  Zsemilogyr_  r   rq  Zadd_liner   r  r  )r   r    Zmlinesr1   r0   	test_axesr   ref_axesr  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           	      s   . 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	# )r5   Tr  rL   )rN   r  )r|  r  )r|  rN   r  post)r  r   N)r5   r   rV  rW  r   r    r5   r   rV  rW  r  r  r   )r   r  r  rf  r^   rq  r  rk  r  r   r:  )r   r    r)  r  Zbsr  r  rD  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                 sR   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       VP                  RR7       VP                  4       pVP                  . RORR7      pVP                  V4       R# )	rV  edgesNr  )r  rW  rv  r  )r5   r   r5   r  )r   r  r  set_datar^   rf   )r   r    r}   test_axr)  ref_axr   r#   test_stairs_updater  	  s     D""$Gy!ATJJyJJRYYq\!^J$JJy"))A,q.)JJyJJtRYYq\" JJJ   "Fi"-A
OODr%   c                 s:   \         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   rV  r  r  )g|?5^?gV-?g+?r  r   )r^   r  r   r  r   rq  )r   r    r0   r1   r  r   r  rD  r#   test_stairs_baseline_Noner  	  s    
!"A
,-A$$&IQD))96BE""$HMM!RYYqB%(JLJEJr%   c                  sr    \         P                  ! 4       P                  4       p V P                  . ^*.4       R# )i*   N)r'   r   r   r  rq  rE  r#   test_stairs_emptyr   
  s&    		!	!	#BIIb2$r%   c                  s    \         P                  ! \        R R7      ;_uu_ 4        \        P                  ! ^^.^ \
        P                  ^.4       RRR4       R#   + '       g   i     R# ; i)Nan values in "edges"r  N)r   r   r  r'   r  r^   rE  r   r%   r#   test_stairs_invalid_nanr  
  s@    	z)@	A	A

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

Aq6Aq6" 
:	9	9	9s   AA	c                  s   \         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)r5   r  r  r  Nr   )r'   r  r   r   r  r  r^   rE  r)  rE  r#   test_stairs_invalid_updater  
  sP    

Aq69%A	z)@	A	A	

!RVVQ
( 
B	A	A	As    $A..A?	c                  s
   \         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)r5   r  r  r  Nr   )r'   r  r   r   r  r  r^   rf   r  rE  r#   test_stairs_invalid_update2r  
  sL    

Aq69%A	z	9	9	

1
& 
:	9	9	9s    'A11B	ztest_stairs_options.pngc                  s    \         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# )!r5   r   TA)r   r  r.   r  rL   B)r   r  rN   r.   rv  r  r  )r   r  r   r.   r   r  )r  r   r|  rN   r.   NZE)r   r  r   r|  r.   r|  ZF)r|  r   r  r   r.   r   ZG)r|  r   r  r.   r  ro  //ZH)r   r  r   r|  rs  r.   r;   r5   r   rV  rW  r  rU  r   )r^   r  rp   r]  copyrE  r'   r   r  r   r:  rD   )r0   r1   Zynr+   r!   rP  r#   test_stairs_optionsr  
  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            	      s,   \         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  r^   rf   r  xticks)fr!   r,   r#   test_stairs_datetimer  5
  sY    LLD1EAIIbiimiil3l356 JJr%   c                 s    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# )r5   r  T)r   r  r  Nrv  )r   r  	set_color)r   r    r  r  ZstrH   r#   test_stairs_edge_handlingr  >
  sR     ""$GNN9EN5   "F	yt	,BLLr%   c                  s    \         P                  ! R^^4      p \         P                  ! R^^x4      p\         P                  ! V 4      \         P                  ! VR\         P                  3,          4      ,           pWV3# )rV  r  r  )r^   r   r  r   r  )r0   r1   r  r   r#   contour_datr  J
  sW    
B3A
B3A
q	BFF1Q

]+,,A7Nr%   Zcontour_hatchingc                  s    \        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  rx   extendr  N)rq  \r  r  )r  r'   r   rl  r   r  r  rP  r#   test_contour_hatchingr  Q
  sE    mGA!llnGCKKa$:]]6*S  *r%   Zcontour_colorbargHzG?c                  s   \        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~   )levelsrx   r  r  r  r}  r1   r   )r  r  
linestylesr]  r8   )r  r  r]  rq  F)ZeraseNgg333333gg^I+)r  r'   r   rl  r^   rf   r   r  rR  rE   Z	add_lines)	r0   r1   r  r+   r!   ZcsZcs1Zcs2rG   r'  r#   test_contour_colorbarr  Z
  s     mGA!llnGC	Q1RYYtUC%@--/"	 
 
$B
 **Q1RYYtVS%A E ' !  #C **Q1RYYsC%= E !  #C <<<"DNN3NN3eN$r%   z
hist2d.pngc                  s   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  
rasterizedr0   r1   )r  rm  r  N)r'   r   r^   r_   r`   r  r   hist2d)r0   r1   r+   r!   rm  rP  r#   test_hist2dr  q
  s     ',CLL"#IINN1
		Qq A
		QAllnGCIIaI- CDllnGCIIc3RdtI<r%   zhist2d_transpose.pngc                  sH   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!  Tr  N)	r'   r   r^   r_   r`   r  r  r   r  rF  r   r#   test_hist2d_transposer  
  so     ',CLL"#IINN1 	!SA
		QAllnGCIIaI-r%   c                  s    \         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  )r^   r_   r'   r   r   r  )r0   r1   r!   objr   r#   test_hist2d_densityr  
  sJ    99H%DA				 BCy

1
& r%   c            "       s  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
  r6   r   Tr/  c                s   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# )r0   r1   r8   r  Zc2r   r8   r  )r8   r  rm  NrV  rW  r   r8  r   r  r   rV  r  r1   r   limer  r   i   i   )0.50.60.7z0.8)r^   r  r'   r   r6   )r  rm  r+   r!   r  r#   test_scatter_plotZ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.pngrJ  c                s   \         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# )rV  r  r  )r8   r  r  ru   r   r:   	fillstyleNr  r  )r5   r    r    r1   r   r  )<   r  i(   r  )rx  r  gr   )r'   r   r6   r  r  r^   r   r   Zcolumn_stackr  r   )
r  r+   r  r   r   rxZryZarear  rb  s
   &         r#   test_scatter_markerZ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%   Z
scatter_2Dr   )rK  r   c                s    \         P                  ! ^4      p\         P                  ! ^4      p\         P                  ! W4      w  rW,           p\        P                  ! 4       w  rEVP                  WV^RR7       R# )rV  face)r8   r  r  N)r^   rf   r  r'   r   r6   )r  r0   r1   r  r+   r!      &     r#   test_scatter_2DZTestScatter.test_scatter_2D
  sT    IIaLIIaL{{1 E,,.


11
7r%   r   c                s   \         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   r  Nr?  r@  r   r  )r^   r  r   r   r6   )r  r   r    rB  rC  r   r0   r1   r8   r  r!   r   r#   test_scatter_decimalZ TestScatter.test_scatter_decimal
  s    XX*+XX*+HH"-"Qgaj"-.HH"-"Qgaj"-.# 


11
"


2Q
$ .-s   C4C$c                s|   \         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)r5   r   r   r  Nrv  )r   r   r  r'   r6   r  r5  r#   test_scatter_colorZTestScatter.test_scatter_color
  sl    ]]:&&KKAAsCj9 ']]:&&KK	9I> '& '&&&&s    B- B*B'	*B;	r  rx   r  r  r  r  c                s   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 r  Nr8   )r   rA  ZWarningr'   r6   )r  r  Z
warn_matchr"   r#   test_scatter_color_warningZ&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           
     s    \         P                  ! . RO. RO. RO\        P                  ! RRR7      . R	OR7      p\	        VP                  4       . R
O. RO. RO.4       \	        VP                  4       . R	O4       R# )r    r   r   r  r8   ru   r]  Nr   r5   rV  r   0.1z0.3r  r  rn  ?r   r   r   r5   r   r   r   r5   r   r   r   r5   )r'   r6   r  r  r   get_edgecolorsget_linewidthsr  coll   & r#   test_scatter_unfilledZ!TestScatter.test_scatter_unfilled
  sd    {{9i3H"*"6"6sf"M&57 	4..03E3E3E3G 	H 	4..0/Br%   rR  c                s   \         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    r0   r  Nr   r  r  r  r  r  r  )r'   r6   r   Zget_facecolorsr  r   r!  r#  r#   test_scatter_unfillableZ#TestScatter.test_scatter_unfillable
  ss    {{9i3H"%&57 	4..0$2E2E2GH4..03E3E3E3G 	H 	4..0/Br%   c                sj   \         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)rW  zsame size as x and yr  r5   NNNzfloat array-liker  )r^   rf   r   r   r  r'   r6   )r  r0   r#  r#   test_scatter_size_arg_sizeZ&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                s    \         P                  ! . RO^\        P                  \        P                  .RR7      p\         P                  ! . RO^\        P                  \        P                  ^.RR7      pR# )r5   r   Nrv  r
  rU  r  )r'   r6   r^   rE  r!  r#  r#   test_scatter_edgecolor_RGBZ&TestScatter.test_scatter_edgecolor_RGB  sN    {{9q"&&"&&&9&/1 {{<!RVVRVVQ)?&24r%   c           	     s
   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# )r  rx  Tr8   r  rx   Zplotnonfiniter8   r  rx   )r  r   NrU  	r   r   r  r  Zset_badr6   r   r^   rE  r  r   r    r!   rx   rh  r#   test_scatter_invalid_colorZ&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           	     s   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# )r  rx  Fr*  r+  NrU  r,  r-  rh  r#   test_scatter_no_invalid_colorZ)TestScatter.test_scatter_no_invalid_color&  s      }}Y'11"5S!


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


Aq6Aq6aV1vD
Ar%   c                s   . 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)rW  rX  r  )r8   r  r  r  Nrv  rY  )r'   r  r   r   r  r6   rZ  r[  )r  r0   r!   rf  r#   test_scatter_norm_vminvmaxZ&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                s    VP                  4       pVP                  ^^^R7       VP                  4       pVP                  ^.^.^.R7       R# )r5   r  N)r   r6   )r  r   r    r!      &&& r#   test_scatter_single_pointZ%TestScatter.test_scatter_single_point<  sH     


1a1



A3s
#r%   c                s>   \         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# )r  r  N)r^   rf   r   r6   r   )r  r   r    r0   r!   rh  r#   test_scatter_different_shapesZ)TestScatter.test_scatter_different_shapesC  ss    IIbM 


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


199Q?A1a
9r%   NZrgby
conversionr  jauner   r  C5z0.0zc_case, re_keyc           
     s   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_colorZ2TestScatter.test_scatter_c.<locals>.get_next_color{  s    r%   r  z!^'c' argument has [0-9]+ elementsr4  z^'c' argument must be a colorNr  (argument looks like a single numeric RGBro  r8   r  r  xsizeget_next_color_func)r   r   r  
isinstancer  r:  rA  
contextlibZnullcontextr   r  r   _parse_scatter_color_args)r  Zc_caseZre_keyr8  r;  ZREGEXPZassert_contextrJ  r#   test_scatter_cZTestScatter.test_scatter_cy  s    	  89 ! MM*FN; &$''CK1,< $NO'') 	 ^HHMM33WRu$2 4 4 ^^^s   /CC	c                s   . 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# )r5   r  r  N)r5   r   皙?)r5   r   rA  r   )r   r6   r^   r   r   )r  r   r    ZrgbZrgbark   rj   rJ  r#   test_scatter_single_color_cZ'TestScatter.test_scatter_single_color_c  s     "# !!#rwwqz5837rwwqz!|U1XT: ##%
E!H4
1eAh$7r%   c                s   \         P                  ! ^4      p\        P                  ! 4       w  r#\	        ^4       F9  pVP                  V\         P                  ! ^V4      RV 2R^dV^,           R7      pK;  	  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  r0   )r8   ru   r  r]  C3Nlines.linewidth)r^   rf   r'   r   r   r6   rX   r   r   r   r   )r  r0   r+   r!   r   Zpcr  r#   test_scatter_linewidthsZ#TestScatter.test_scatter_linewidths  s    IIaL,,.qAArwwq!}!A3s'(1u  .B 
 ZZ2771a=D#7U1a[#7$#7  92,,.JU1a[J#,,7H*IJ	Lr%   c           	     sH   \         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 anotherr  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   rv  )r   ry  r   )rF  z#000000z#f0f0f0)r   r   r   r'   r6   r  r5  r#   &test_scatter_singular_plural_argumentsZ2TestScatter.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   )r  N)r  N)r   N)NN)r  r  r   r   )r5  r4  )r  z0.4r  r  )r  r  r  r6  )r  r   r  r6  r
  r5   r    r    r   r    r5   r    )$r   r!  r"  r#  r   r  r  r  r   r  r  r   markparametrizerZ  r[  r  r$  r   r   contextr%  r'  r)  r.  r/  r0  r2  r3  Zparams_test_scatter_cr@  rB  rE  rH  r$  r%  r'     @r#   r  r  
  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%   r  r  c                s
    WW13# r   r   )r8   r;  r  r  s   &&$,r#   _paramsrP    s    6))r%   _resultz	c, colorszparams, expected_result)r8   r  r  r  r  r  c                 s    R  p\         P                  P                  P                  ! V RV/ w  r4p\	        WAP
                  4       R# )c                  r   r7  r   r   r%   r#   r8  Z5test_parse_scatter_color_args.<locals>.get_next_color      r%   r<  N)r   r  r   r?  r   r  )paramsZexpected_resultr8  r8   r  Z_edgecolorsr   r#   test_parse_scatter_color_argsrT    sA     !XX]]DD	5%35A{ F223r%   zkwargs, expected_edgecolors)r  r(  r  r   )r   r  )r8   r   r  )r   r   c                 s    R  pV P                  RR4      pV P                  RR4      p\        P                  P                  P	                  W4V ^VR7      w   rVR# )c                  r   r7  r   r   r%   r#   r8  Z@test_parse_scatter_color_args_edgecolors.<locals>.get_next_color  rR  r%   r8   Nr  )r;  r<  )popr   r  r   r?  )r  Zexpected_edgecolorsr8  r8   r  r  Zresult_edgecolorsrD  r#   (test_parse_scatter_color_args_edgecolorsrV    sZ     	

3AL$/J//6 	0 	P Aq
r%   c            
      s"   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   r7  r   r   r%   r#   r8  Z;test_parse_scatter_color_args_error.<locals>.get_next_color   rR  r%   z&RGBA values should be within 0-1 ranger  Nr  r;  r<  )r   r   r  )r   ry  gffffff?)	r   r   r  r^   r  r   r  r   r?  )r8  r8   r,   r#   #test_parse_scatter_color_args_errorrX    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.r  r   r   r  zc, facecolorc           
     s   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   r7  r   r   r%   r#   r8  Z=test_parse_c_facecolor_warning_direct.<locals>.get_next_color  rR  r%   r  NrG  r:  r   )r   rA  r  WARN_MSGr   r  r   r?  )r8   r   r8  r"   r#   %test_parse_c_facecolor_warning_directrZ    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           	     s   \         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.r  )r8   rG  N)r8   r   )
r'   r   r=  r  tupler   rA  r  rY  r6   )r8   r   r+   r!   r0   r1   r   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                  s    ! R  R4      p V ! 4       pV ! 4       p\         P                  Vn        \        P                  ! RVR7      p\        P
                  ! 4        \        P                  ! ^yVR7      p\        P
                  ! 4        R# )c                   s,   a  ] tR tRt o R tR tRtV tR# )#test_as_mpl_axes_api.<locals>.Polari=  c                s    ^ V n         R# r4  theta_offsetr  r5  r#   __init__Z,test_as_mpl_axes_api.<locals>.Polar.__init__>  s
     !Dr%   c                s*    \         R V P                  /3# r^  )r   r_  r  r5  r#   _as_mpl_axesZ0test_as_mpl_axes_api.<locals>.Polar._as_mpl_axesA  s    ~t/@/@AAAr%   r^  N)r   r!  r"  r#  r`  ra  r$  r%  rN  rO  r#   Polarr]  =  s     	"	B 	Br%   rb  r  Nr  )r^   r   r_  r'   r  r  r  )rb  ZprjZprj2r!   r   r#   test_as_mpl_axes_apirc  ;  s`    B B 'C7DD 
,3	/BIIK 
SS	)BIIKr%   c                  s    \         P                  ! 4       w  r\         P                  ! 4       w  r#\         P                  ! V4       \         P                  ! V 4       \         P                  ! V4       R # r   )r'   r   Zscar  )fig1r   fig2r   r   r#   test_pyplot_axesrf  T  s?    IDIDGGCL IIdOIIdOr%   c                  sV   \         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#R# )r   r         @)r  r  c              3   s   "   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   )Z_update_ticksZget_locZlabel1get_text)Z.0r   r  rf  r#   Z	<genexpr>Z"test_log_scales.<locals>.<genexpr>e  sM      (D 6:5G5G5IJ5I))+qxx((*	+5IJ( 	Ks   A2AAN)r'   r   r   r^   r   r   r@  r?  r  r   r   )r+   r!   r  Zyticksr   r#   test_log_scalesri  _  sy    llnGCGGBFF2;;sC()*MM%cM"OOMM%cM"XXrxx(NFFr%   c                  s    \         P                  ! 4       w  rVP                  R R R7       VP                  P	                  \
        P                  ! ^4      4       R# )r   )r,  r$  N)r'   r   r   r   r   r   ZMultipleLocatorr  r,   r#   test_log_scales_no_datarj    s<    LLNEAFF%F&HHw66q9:r%   c                  s   \         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-positiver  Nr   )	r'   r   r  r   rA  r  r  r@  r  r*   r,   r#   test_log_scales_invalidrk    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            	      s   \         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#  r0   rO  r  y3)rm  r  Nr    r  r    r)  )rI  C1C2)	r'   r   r^   r   r   	stackplotr  r  r   )r+   r0   rO  r  rl  r!   rm  r   r#   test_stackplotrr    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                  s   \         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                 sJ   \         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   r  )r^   r  r   r_   exprf   )r(  r  r   r   jr0   r1   r  r  r#   layersZ'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%   Zzeror  symZwiggleZweighted_wiggleN)r  r  r7  rt  r5   r    r  )r^   r_   r`   r'   r   rq  r   r  )ru  r  r+   rN  r   r#   test_stackplot_baselinerx    s    IINN1 	q#AAeH||Aq!HCIc
ACC&9Ic
ACC%8Ic
ACC(;Ic
ACC2CDr%   c           	      sp   \         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#  r0   r  \\rp  )rs  r  )rs  r   N)r0   r  ry  rm  rn  )	r^   r   r   rq  r  r  r  r:  rf  )	r    r   r0   rO  r  rl  rj   Zstack_baselinerk   rl   r#   test_stackplot_hatchingrz    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                  s   \         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# )r5   r  r   labelsN)r'   r   Z
subfiguresr   rq  rD   draw_without_rendering)r+   ZsubfigsZ_figr!   r   r#   test_stackplot_subfig_legendr~    sr     **,Cnn1An.G]]!],
aVq!fXse4  JJL r%   c                 r  r   r   )r  r5  r#   r6  r6    s    1r%   c                 s   \         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# )  r  r   )ZmeanZsigmar  rN   verticalr   patch_artistFrD  boxplot.boxprops.linewidthN)r  rW  )r^   r_   r`   r   ZcbookZboxplot_statsZ	lognormalr'   r   Zgetr@  r  r   Zbxp)stats_kwargstransform_stats
bxp_kwargsZlogstatsr+   r!      &&&   r#   _bxp_test_helperr    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                  s    \        4        R # r   r  r   r%   r#   test_bxp_baseliner     s
     r%   zbxp_rangewhis.pngc                  s6    \        \        ^ ^d.R7      R7       R# )r    Zwhisr  Nr  r  r   r%   r#   test_bxp_rangewhisr    s     $QH"56r%   zbxp_percentilewhis.pngc                  s6    \        \        ^^_.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                  s$    R  p \        V R7       R# )c                 J    \        V \        R 4      4       F	  w  rW!R&   K  	  V # ZABCDr.   r  r  statsr  r.   rf  r#   r   Z(test_bxp_with_xlabels.<locals>.transform  %    E4<0HAgJ 1r%   )r  Nr  r   rE  r#   test_bxp_with_xlabelsr    s    
 Y/r%   zbxp_horizontal.pngr   )rK  r  r   r   c                  2    \        \        R R7      R7       R# )rL   rM   r  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                 r  r  r  r  rf  r#   r   Z(test_bxp_with_ylabels.<locals>.transform/  r  r%   rL   rM   r  r  Nr  r  rE  r#   test_bxp_with_ylabelsr  *  s    

 Y $ >@r%   zbxp_patchartist.png)rK  r  r   c                  r  )T)r  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  )r  boxpropsr  Nr  r   r%   r#   test_bxp_custompatchartistr  @  s$    
 GD!F Gr%   zbxp_customoutlier.pngc            
      sJ    \        \        \        R RRR7      R7      R7       R# )r   r  r  r   ru   mfc)Z
flierpropsr  Nr  r   r%   r#   test_bxp_customoutlierr  J  s!    
 &#>!@ Ar%   zbxp_withmean_custompoint.pngc                  r  )Tr   r  r   r  )	showmeansZ	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# )r  r   r   r   r   )r  r  Nr  r   r%   r#   test_bxp_customboxr  ^      
 CA6!8 9r%   zbxp_custommedian.pngc            
      r  )r  r   r  Zmedianpropsr  Nr  r   r%   r#   test_bxp_custommedianr  g  s    
 4sq9!; <r%   zbxp_customcap.pngc            
      r  )r  r  r  )Zcappropsr  Nr  r   r%   r#   test_bxp_customcapr  p  r  r%   zbxp_customwhisker.pngc            
      r  )r  r  r  )Zwhiskerpropsr  Nr  r   r%   r#   test_bxp_customwhiskerr  y  s    
 Csq9!; <r%   c                 s    \         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# )rV  r   r  r  r  N)r^   rf   r   rd  )r   r    rm  Zmedianprops_testZmedianprops_refrH   r#    test_boxplot_median_bound_by_boxr    sa    99Q<D#R(D)D+;VDODtAr%   zbxp_withnotch.pngc                  r  )T)Zshownotchesr  Nr  r   r%   r#   test_bxp_shownotchesr    s    
  67r%   zbxp_nocaps.pngc                  r  )F)Zshowcapsr  Nr  r   r%   r#   test_bxp_nocapsr    s    
 e 45r%   zbxp_nobox.pngc                  r  )F)Zshowboxr  Nr  r   r%   r#   test_bxp_noboxr    s    
 U 34r%   zbxp_no_flier_stats.pngc                  r  )c                 s<    V  F  pVP                  R R4       K  	  V # )ZfliersN)rU  )r  r  r#  r#   r   Z*test_bxp_no_flier_stats.<locals>.transform  s    AEE(D! r%   F)Z
showfliersr  Nr  r  rE  r#   test_bxp_no_flier_statsr    s    

 Y $ 68r%   zbxp_withmean_point.pngc                  s4    \        \        R RR7      R7       R# )TFr  Zmeanliner  Nr  r   r%   r#   test_bxp_showmeanr    s    
 te DEr%   zbxp_withmean_line.pngc                  s4    \        \        R R R7      R7       R# )Tr  r  Nr  r   r%   r#   test_bxp_showmeanasliner    s    
 td CDr%   zbxp_scalarwidth.pngc                  r  )r  rk  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   rk  r  N)r   r  g?g333333?r  r   r%   r#   test_bxp_customwidthsr    s    
 ,D EFr%   zbxp_custompositions.pngc                  r  )r5   r`  r  N)r5   r  r8  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)r5   rk  r  Nr   r   r  r  r  r   r%   r#   test_bxp_bad_widthsr    s/    	z	"	"D$45 
#	"	"	"   AA	c                  s    \         P                  ! \        4      ;_uu_ 4        \        \	        ^^.R7      R7       RRR4       R#   + '       g   i     R# ; i)r   r`  r  Nr  r   r%   r#   test_bxp_bad_positionsr    s1    	z	"	"DAq6$:; 
#	"	"	"s   AA	zbxp_custom_capwidths.pngc                  r  )ry  rj  r  N)ry  r   r   r   r  r   r%   r#   test_bxp_custom_capwidthsr    s     /C DEr%   zbxp_custom_capwidth.pngc                  r  )r  rj  r  Nr  r   r%   r#   test_bxp_custom_capwidthr    s     s 34r%   c                  r  )r5   rj  r  Nr  r   r%   r#   test_bxp_bad_capwidthsr    s/    	z	"	"DA3$78 
#	"	"	"r  zboxplot.pngg{Gz?)r   r   c                  s   \         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# )	r  '  	bootstrapnotchr0   )r  r  rm  Nr  r  r  	r^   r_   r`   r   hstackr'   r   rd  r  )r0   r+   r!   rm  r   r#   test_boxplotr    s     IINN3
B3A
		32,AllnGCJJvaJ0KK	 !=DllnGCJJse14J8KK	r%   c                 s   \         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# r5   Nr   )r^   r   r   rd  r   Zmasked_less)r   r    Zx_origr!   r0   rH   r#   test_boxplot_maskedr  	  sj     [[Q$F				B{AJJqM
&!$A				BJJqMr%   zboxplot_custom_capwidths.pngc                  s    \         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  rh  Nr  r  )r^   r   r  r'   r   rd  r.  r   r#   test_boxplot_custom_capwidthsr    sO     	B3A
		32,AllnGCJJvQ4+J6r%   zboxplot_sym2.pngc                  sv   \         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# )	r  r  ^)r  rv  r  Nr  r  r  r  )r0   r+   r   r   r   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                  s    \         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  rv  Nr  r  r  )r^   r   r  r'   r   rd  r  r.  r   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                  s   \         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# )r  r  r  T)r  r  Z	autorangeN)r=  r  )	r^   r_   r`   r   r  r'   r   rd  r  )r0   rd  r   re  r   rP  r#   test_boxplot_autorange_whiskersr  ?  s    
 IINN3
A
		1a)AIDKK%qK1LLIDKK%qDKALLr%   c                 s   \         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  Nr  r  )r^   r   r  rP   r	   rd  )r!   rc_dictr0   r"   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  rK  r   r   c                  sx   \         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  	  R,# )-r  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.linestyler  zboxplot.flierprops.linewidthr   zboxplot.boxprops.colorr  r  zboxplot.boxprops.linestylezboxplot.capprops.colorr8   zboxplot.capprops.linewidthzboxplot.capprops.linestylezboxplot.medianprops.colorrx  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)r^   r_   r`   r'   r   r  r  )r+   r!   Zrc_axis0Zrc_axis1Zrc_axis2	dict_listr   Zrc_axisrU  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* ,r%   zboxplot_with_CIarray.pngc                  s`   \         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# )r  r#  r         @r  N)r  usermediansconf_intervalsr  r  r  r  r  r  )
r^   r_   r`   r   r  r'   r   r  rd  r  )r0   r+   r!   ZCIsr   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                  s4   \         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# )rV  rZ  r   FminorwhichN)rV  i(#     iX   i^  i@ ix  i  )
r^   r  r  r'   r  rd  r@  r   r  r   )r0   r   r,   r#   test_boxplot_no_weird_whiskerr    sb     	;zz	#A
((*CKKNNN5IINN5N(IINN5r%   c                  s   \         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  Nr  r  	r^   r   r  r'   r   r   r   r  rd  r.  r   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                  s   \         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  Nr  r  r  r.  r   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                  s`    \         P                  ! ^
4      p \        P                  ! 4       w  rR# r  N)r^   rf   r'   r   )r0   r  r!   r   r#   test_boxplot_zorderr    s    
		"AllnGCr%   c                  s2   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K  	  K  	  R# )r  r  r   r  r  zboxplot.meanprops.markerT)r  Nr   )ZwhiskersZcapsZboxesZmedians)r'   r   r   r^   rf   rd  )r+   r!   Z	test_dataZ
bxp_handleZ	bxp_linesZ	each_liner   r#   test_boxplot_marker_behaviorr    s{    #&CLL 03CLL,-/2CLL+,llnGC		#IIbMI6J=	#..I. >r%   z&boxplot_mod_artists_after_plotting.pngc                  s    . 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  r  r  Q?gQ?gQ)r'   r   rd  r  )r0   r+   r!   Zbpkeyr  r   r#   &test_boxplot_mod_artist_after_plottingr    sL     	4AllnGC	A3	B77CMM'"  r%   zviolinplot_vert_baseline.pngc            	      s   \         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ra  r  showextremashowmediansr  )ra  r  r  r  rm  N)	r^   r_   r`   r   ra   r'   r  
violinplotr   )r  rm  r!   r+   r   r#   test_vert_violinplot_baseliner    s     IINN905a91BII#&D9	BMM$%(e#  % ;DllnGCMM#qU#$  0 :s   )C	zviolinplot_vert_showmeans.pngc                  s&   \         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  r^   r_   r`   r   ra   r  r!   r  rm  r   r#   test_vert_violinplot_showmeansr    sl    	BIINN905a91BII#&D9MM$%(d#  % :   )Bzviolinplot_vert_showextrema.pngc                  s&   \         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  Nr  r  r   r#    test_vert_violinplot_showextremar    sl    	BIINN905a91BII#&D9MM$%(e#  % :r  zviolinplot_vert_showmedians.pngc                  s&   \         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  Nr  r  r   r#    test_vert_violinplot_showmediansr    sl    	BIINN905a91BII#&D9MM$%(e"  $ :r  zviolinplot_vert_showall.pngc                  s@   \         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  ry  r  )ra  r  r  r  	quantilesNr  r  r   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            	      s(   \         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ra  r  r  r  pointsNr  r  r   r#   $test_vert_violinplot_custompoints_10r  *  sn    	BIINN905a91BII#&D9MM$%(e#B  0 :   )Bz$violinplot_vert_custompoints_200.pngc            	      s(   \         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  Nr  r  r   r#   %test_vert_violinplot_custompoints_200r  4  sn    	BIINN905a91BII#&D9MM$%(e#C  1 :r  zviolinplot_horiz_baseline.pngc            	      s(   \         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  rL   Fra  rN   r  r  r  Nr  r  r   r#   test_horiz_violinplot_baseliner  >  so    	BIINN905a91BII#&D9MM$%(PU#  8 :r  z violinplot_horiz_showmedians.pngc            	      s(   \         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  rL   FTr   Nr  r  r   r#   !test_horiz_violinplot_showmediansr  H  so    	BIINN905a91BII#&D9MM$%(PU#  7 :r  zviolinplot_horiz_showmeans.pngc            	      s(   \         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  rL   TFr   Nr  r  r   r#   test_horiz_violinplot_showmeansr  R  so    	BIINN905a91BII#&D9MM$%(PT#  8 :r  z violinplot_horiz_showextrema.pngc            	      s(   \         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  rL   FTr   Nr  r  r   r#   !test_horiz_violinplot_showextremar  \  so    	BIINN905a91BII#&D9MM$%(PU"  7 :r  zviolinplot_horiz_showall.pngc                  sB   \         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  rL   Tr   r  r   r  r   r  ry  r  )ra  rN   r  r  r  r  Nr  r  r   r#   test_horiz_violinplot_showallr  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            
      s*   \         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  rL   Fra  rN   r  r  r  r  Nr  r  r   r#   %test_horiz_violinplot_custompoints_10r  q  sr    	BIINN905a91BII#&D9MM$%(PU#r  C :   )Bz%violinplot_horiz_custompoints_200.pngc            
      s*   \         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  rL   Fr  Nr  r  r   r#   &test_horiz_violinplot_custompoints_200r	  {  sr    	BIINN905a91BII#&D9MM$%(PU#s  D :r  zviolinplot_sides.pngc                  st   \         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# )rT   r  rL   FT)ra  rN   r  r  r  sider  N)r    rb  r   )r~   ZlowZhigh)rW  r        @)r'   r  r^   r_   r`   ra   r  r  )r!   rm  r   r
  r   r#   test_violinplot_sidesr    s    	BIINN8II#&'D)@A	
deQV"&Dt 	 	E B (?@	
deu"&Dt 	 	E Ar%   c                  s   \         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  r`  Nr'   r  r^   r_   r`   r   ra   r   r   r  r  r  r   r#   test_violinplot_bad_positionsr    s    	BIINN905a91BII#&D9	z	"	"
deAh/ 
#	" :	"	"	"s   )B6B;;C	c                  s   \         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  )ra  ri  Nrv  r  r  r   r#   test_violinplot_bad_widthsr    s    	BIINN905a91BII#&D9	z	"	"
deAhyA 
#	" :	"	"	"s   )B9 B>>C	c                  s`   \         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  r^   r_   r`   ra   r   r   r  r  r!   rm  r,   r#   test_violinplot_bad_quantilesr    st    	BIINN9II#&'D 
z	"	"
dSzC:&>? 
#	"	"	"s   8BB-	c                  s   \         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  r  N)r   r   r   ?)皙r   r   r  r  r  r,   r#   $test_violinplot_outofrange_quantilesr    s    	BIINN9II#&'D 
z	"	"
d'<&=> 
# 
z	"	"
d'>&?@ 
#	"	 
#	" 
#	"	"s   8C9C-C*	-C>	c                 s   \         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  r  N)r   r   r  )r^   r_   r`   ra   r   r  )r   r    rm  r!   r   r#   %test_violinplot_single_list_quantilesr    sq     IINN9II#&'D 
			BMM$/M2 
			BMM$?"3M4r%   c                 s>   \         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# )r  r  r~  Z	ABCDEFGHIN)r  r  r  r8  r  rW  rV  )	r^   r_   r`   r  ra   r  r   r  r  )r   r    re  Zs1Zs2Zs3r  r#   test_violinplot_pandas_seriesr    s    IINN9	299###+3H	IB	299###+43D	EB	299###,	-B""BB<0!!299bii"CDr%   c                  s   \         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)ra  Zmanage_ticksN)
r'   r   r  r   r^   r_   r`   ra   rd  r   )r  r!   Zold_xlimrO  r  new_xlimr   r#   test_manage_xticksr    s    LLNEAKK1{{}HIINN1			"a	$B			!Q	#BJJxAq6J>{{}Hx*r%   c                  s,   \         P                  ! 4       w  rVP                  \        P                  P                  ^d4      ^.R7       VP                  \        P                  P                  ^d4      ^.R7       V P                  P                  4        R# )r  r`  N)r'   r   rd  r^   r_   rn   rr  r   r*   r,   r#   test_boxplot_not_singler    s[    llnGCJJryy~~c"qcJ2JJryy~~c"qcJ2JJOOr%   c                  s    \         P                  ! ^ ^.^ ^.4       \        P                  P	                  R^ /4       \
        P                  ! 4       p \         P                  ! V ^PRR7       R# )r    z	font.sizeZraw)r  formatN)r'   r   rP   r   updateioBytesIOsavefigr   rE  r#   test_tick_space_size_0r#    sN     HHaVaVQ/0


AKKr%(r%   c            
      s   \         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   rZ  r   ry  r  z&Simplest errorbars, 0.2 in x, 0.4 in yT)r  r  r\  r   r  r  zVert. symmetricZnbins)r  r  r  zHor. symmetric w/ alphaz--or  r  r  zH, V asymmetricr   r{  r  )r  r  r  ecolorZcapthickzMixed sym., log yr  zVariable errorbarsr0   r1   r  r  rm  Nr7  rt  rw  r  )r^   rf   Z
longdoublers  rN  r'   r   r  r  r3   r   locator_paramsr@  Zmaximumr  Zsuptitle)
r0   r1   r  r  r+   r!   rN  ZylowerZ
yerr_lowerrm  r  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                 s   \         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   r  r  r  r   r  r}  r  r  r   @@Nrv  )r   r   r   )r   r   r   )r+  r   r   )r   r+  r   )r'   r   r  r  r^   r   )r+   r!   Zth_symZr_symZth_longZr_longZth_asymZr_asymr  r  Zth_overZr_overr  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                  s   \         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R# )r  Nr  )r'   r   r^   rf   r  r   )r  r!   r0   r1   r  r  r  Zln1rU  r#   test_errorbar_colorcycler0  R  sp    LLNEA
		"A	!A{{14{(HB1{{1acT{*HB1771ac?DCr%   c                 s   \         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  r  r   ro  )r  r   ru   r'  )r  r   ru   r   r'  N)rI  ro  rp  rC  )r^   rf   r   rs  r   r  r  )	r   r    r0   r(  r1   axtaxrZyir   rl   r#   test_errorbar_cycle_ecolorr3  a  s    
		#q#A$Qx(x!1xA(



C



C45	Q"t) 	 	1Q"t)uW 	 	> 6 	)s   'Cc            
      sH   \         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)r  r  r&  )r'   r   r  r^   rf   rs  rN  vstackr  r   r   r  r  )r+   r!   r0   r1   Zyerr1r  r  r   r#   test_errorbar_shaper5  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                  s,   \         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   rg  r   r   dottedr   )r  r  r  r   Tr   )r  r  uplimsr  r   r   r  )r  r  lolimsr  r   r   r   magenta)ru   r  r  r  r8  r7  r  r   r   r-  r   Zcyan)ru   r  r  r  xlolimsxuplimsr7  r8  r  r-  capsizer   zErrorbar upper and lower limitsN)r5   r  r  )r   rW  r  )r    rg  )
r^   rf   rs  r'   r   r  Z
zeros_likeZ	full_liker  r3   )r0   r1   r  r  r  r+   r!   r7  r8  r:  r;  r  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                  s    \         P                  ! ^4      p \         P                  ! ^4      p\        P                  ! W^^RR7      w  r#pV F  pK  	  R# )r  r   r,  Nr^   rf   r'   r  )r0   r1   plotliner  ZbarlinesZerrbarr   r#   test_errorbar_nonefmtr@    s<    
		!A
		!ALLAA6JH(r%   c                  s    \         P                  ! ^4      p \         P                  ! ^4      p\        P                  ! 4       w  r#VP	                  W^^R7      pVP                  4        R# )r  r  N)r^   rf   r'   r   r  r  )r0   r1   r+   r!   ZecrP  r#   test_errorbar_removerA    sH    
		!A
		!AllnGC	Q	*B IIKr%   c                  s    \         P                  ! ^4      p \         P                  ! ^4      p\        P                  ! W^^RRRRRRRRR	7      w  p pR
# )r  Noner  rX   z	steps-midZroundr  r  Zbevel)
r  r  r  ru   r	  r  Zdash_capstyleZdash_joinstyler  r  Nr>  )r0   r1   r?  r  r   r#   "test_errorbar_line_specific_kwargsrC    sN     			!A
		!A\\!QQ6),,707181729;NHar%   c           
      s&   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   r  r  rx  )r0   r1   r  r  ru   r  z	tab:greenr  r1   )r0   r1   r  r   r  ru   r  ztab:bluer  r   r8   )r0   r1   r  r  r  ru   r  )r  ru   r  r   r  )Z
prop_cycler0   r1   r  )r0   r1   r  r   )r0   r1   r  r  N)r   rW  r  r   r   rV  rW  rW  r  r8  )r  r  r  )r  r  r   )rx  r1   r8   r   r  r  )r   r  r  r   r'   rc)r   r    r!   Z_cycler   r#   test_errorbar_with_prop_cyclerI    s    				BKK*	  .KK*	;s  -KK*	  .KK2('@FFF6f%				BKK*	K4KK*	;KGKK*	KDKK2r%   c            	      sT   \         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 integersr  )
erroreveryNznot a valid NumPy fancy indexFTznot a recognized valueZfoobarrv  )r  rV  )	r^   r   r'   r   r   r   r   r  r  )r0   r1   r  r!   r   r#   test_errorbar_every_invalidrK    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                  s   \         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 valuesr  r0   r1   r  r  Nr  z''yerr' must not contain negative valuesrD  rp  r  rb  rY  )r'   r   r   r   r   r  r  r^   rf   r  r  )r!   r0   r   r1   r   r#   test_xerr_yerr_not_negativerM    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            	      st   \         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 Noner  NrL  r  z'yerr' must not contain NonerD  )r'   r   r   r   r   r  r  rq  rE  r#   test_xerr_yerr_not_nonerN    s    				 B	z;
= 
=
qcaS}TFQC=I
= 
z;
= 
=
qcaS}5
= 
z;
= 
=
qcaS}5
= 
=
= 
=
= 
=
= 
= 
=s$    D DD& D	D#	&D7	c                 s   \         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    Zrgbkr  )rJ  r<  r8   r-  )r8   r  Nr   )r<  r8   r  r   r   )r  r<  r  :r5   NrW  )r  )r<  r  r   rI  )rJ  r  r<  r8   r  :r   NrV  ro  :r5   NrV  )r    r    r   r  )r5   rW  r  )r^   r   r   r  r  r   r  )	r   r    r0   r1   r  rk   rj   r   Zshiftrl   r#   test_errorbar_everyrO  (  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                 sF    \         P                  ! . RO. RO. ROV R7       R# )r5   )r  rP  Nrv  )r'   r  )rP  r5  r#   test_errorbar_linewidth_typerQ  T  s     LLII*Mr%   c                 s   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  r  rI  r$  N)r   r   r^   r  rE  r  )r   r    r!   xsysesr   r#   test_errorbar_nanrV  [  s    				B	qB	1a+	,B	1a+	,BKKRK 				BKKAAaVK,KKaSsK-r%   c                 s   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  rR  rI  r$  N)FFTTF)r5   r   r   r   rV  )rW  r  r   rY  r8  )r   r   r^   r  r   r  )r   r    r!   rS  r  rT  rU  rD  r#   test_errorbar_masked_negativerW  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                  s    \         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# )r5   r  Tr  r  r0   )r  r  rm  Nr^   r   r'   r   r  )d1d2r+   r!   rm  rP  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                  s    \         P                  ! ^ ^
^24      p \         P                  ! ^^^4      p\        P                  ! 4       w  r#VP	                  V ^R7       VP	                  V^R7       R# )r    r  NrY  rZ  r[  r+   r!   r   r#   test_hist_offsetr^    sU     
QB	B	Q2	BllnGCGGBqGGGBrGr%   zhist_step.pngc                  s    \         P                  ! ^^^4      p \        P                  ! 4       w  rVP	                  V RR7       VP                  ^ ^
4       VP                  R^4       R# )r5   r  r  Nr   )r^   r   r'   r   r  r  r  rZ  r+   r!   r   r#   test_hist_stepr`    sO     
Q2	BllnGCGGBG KK2KKAr%   zhist_step_horiz.pngc                  s    \         P                  ! ^ ^
^24      p \         P                  ! ^^^4      p\        P                  ! 4       w  r#VP	                  W3RRR7       R# )r    r  rL   )r  rN   NrY  r]  r   r#   test_hist_step_horizra    sI     
QB	B	Q2	BllnGCGGRHv<G@r%   zhist_stacked_weights.pngc                  s"   \         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  rA  r   r  T)weightsr  r  NrY  )rZ  r[  Zw1Zw2r+   r!   r   r#   test_hist_stacked_weightedrc    sq     
QB	B	Q2	B	T3	#B	T2r	"BllnGCGGRHrhtGLr%   zstem.pngc            	      s   \         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basefmtr.   N)r^   r   r   r'   r   ro  r  rD   r.  r   r#   	test_stemrj    s[    
CRUUC(AllnGC GGArvvaydF#  GIIKr%   c            	     s"   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                 sZ    \        \        V P                  P                  4       4      w  r#R # r   )Zmapr  Z
markerlineZget_data)stem_containerexpectedr0   r1   r   r#   _assert_equalZ%test_stem_args.<locals>._assert_equal  s!    422;;=>1r%   )rl  r   rg  zb--)rg  ri  Nr5   rV  r  r  r  r  r   )r'   r   ro  r   r   r  rm  r+   r!   r0   r1   rP  r#   test_stem_argsrr    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            	     s@   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                s"    Ve   Ve   Ve   R# R# )zT
Check that the given StemContainer has the properties listed as
keyword-arguments.
Nr   )rk  	linecolormarkercolorru      &&&&r#   rm  Z*test_stem_markerfmt.<locals>._assert_equal  s       " r%   rI  r   )rt  ru   r0   )rh  r  r  )rs  rt  ru   r  Zgxrf  rB  r   rn  )rg  rh  )NNNro  rp  )r'   r   ro  rq  rP  r#   test_stem_markerfmtrv    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                  s    \         P                  ! ^^4      w  r\        P                  P	                  R4      \        P                  P	                  R4      .p^d^.pVP                  W#4       R# )r5   z2013-9-28 11:00:00z2013-9-28 12:00:00N)r'   r   dateutilZparserZparsero  )r+   r!   rS  rT  r   r#   test_stem_datesrx    sU    ll1a GC
//

 4
5
//

 4
5
7B
sBGGBOr%   zstem_orientation.pngc            	      s    \         P                  ! R ^\         P                  ,          ^24      p \        P                  ! 4       w  rVP                  V \         P                  ! V 4      RRRRR7       R# )r   rd  Zkxre  rL   )rg  rh  ri  rN   N)r^   r   r   r'   r   ro  r  r.  r   r#   test_stem_orientationry    sP    
C255"%AllnGCGGArvvaydF$  &r%   z!hist_stacked_stepfilled_alpha.pngc                  s    \         P                  ! ^^^4      p \         P                  ! ^ ^
^24      p\        P                  ! 4       w  r#VP	                  W3RRRR7       R# )r5   r  Tr   )r  r  r  NrY  r]  r   r#   "test_hist_stacked_stepfilled_alpharz  $  sK     
Q2	B	QB	BllnGCGGRH|TGEr%   zhist_stacked_step.pngc                  s    \         P                  ! ^^^4      p \         P                  ! ^ ^
^24      p\        P                  ! 4       w  r#VP	                  W3RRR7       R# )r5   r  TrX  NrY  r]  r   r#   test_hist_stacked_stepr{  -  sI     
Q2	B	QB	BllnGCGGRHvtG4r%   zhist_stacked_normed.pngc                  s    \         P                  ! ^^^4      p \         P                  ! ^ ^
^24      p\        P                  ! 4       w  r#VP	                  W3RRR7       R# )r5   T)r  r  NrY  r]  r   r#   test_hist_stacked_densityr|  6  sI     
Q2	B	QB	BllnGCGGRHdDG1r%   zhist_step_bottom.pngc                  s    \         P                  ! ^^^4      p \        P                  ! 4       w  rVP	                  V \         P
                  ! ^
4      RR7       R# )r5   r  )rJ   r  N)r^   r   r'   r   r  rf   r_  r   r#   test_hist_step_bottomr}  ?  s=     
Q2	BllnGCGGBryy}|G<r%   c            	      s
   . 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    r5   r   rV  r    r    r5   r5   r5   r   r'   r  r   get_xyr  rm  r:   rJ   r  r~  r  polygonrU  r#   test_hist_step_geometryr  G  s    DDq6Aq6Aq6Aq6Aq6Aq6Aq6Aq6
JC!fq!fq!fq!fq!f5F #s|(DEHHTxH1kw7>>+R0 Fr%   c            	      s   . 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    r9  r   r  r  )r  rJ   r  Nr~  r  r5   r   r   r  r  rU  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            
      s,   . 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   rV^ ,          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  Nr~  r  r   r  r'   r  r   r  r  Zdata_1Zdata_2ZtopsZbottomsr  r   Zcombinedr  r~  r  r   r  r  r#   test_hist_stacked_step_geometryr  ^  sp   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 1:7>>+RU31:7>>+RU3 C 6s   1Dc            
      s2   . 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   rV^ ,          w  p\        VP	                  4       V	^ ,          4       V^,          w  p\        VP	                  4       V	^,          4       K  	  R# u uppi )r    r9  r   r  r  r  T)r  r  rJ   r  Nr~  r  r   r  r  r  r  r#   &test_hist_stacked_step_bottom_geometryr  v  ss   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 1:7>>+RU31:7>>+RU3 C 6s   1Dzhist_stacked_bar.pngc            	      s    . 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# )r  r  mid)r  r  r1  r   r.   zupper right)r<   Zbbox_to_anchorr  N)r  r  r  r  r  @  i  P   r  r|  6  r{  )r     r     r  i  )x   r  r     r  r  i   )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  ))gXxn?r   ry  )ry  r   g `p?)ry  r   gǟ?)ry  gˢ`?r   )gC?ry  r   )gK?ry  r   )r   rv  z yellowr9  ro  )r   r   )r'   r   r  rD   )r  r  r|  r+   r!   rP  r#   test_hist_stacked_barr    sl     
D	#%H	8	H	A		CA
OF @FllnGCGGABU&  II-
!IDr%   r  r   r   rs  r   r   r   c           
      s@   \         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 )rT   r  r  r  r  r  N)r  r  r  )r^   r_   r`   r  r   r  ZnextZiterZitemsrL  r  r:  )r   r    r  r(  rS  Zaxt1Zaxt2Zaxr1Zaxr2r  r1  r2  r  r  kwr  r   r0   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                  s    Rp . ROpRp\         P                  P                  ^2R7      p\        P                  ! W0VVR7      w   rER# )r  r  )r   r   r   N)r  r   r   r   r   )r    r  r^   r_   uniformr'   r  )r   r   r   arrr  r  r   r#   test_hist_sequence_type_stylesr    sC    III
))



$C#i$-/JAq$r%   c                  s~    \         P                  P                  ^2R7      p \        P                  ! V RRR7      w   rR# )r  r  r   )r   r   Nr  )r  r  r  r   r#   test_hist_color_noner    s1    
))



$C#6BJAq$r%   zkwargs, patch_face, patch_edger  rx  rI  c                 s|   aa \         P                  ! 4       P                  4       P                  ! . RO3/ V B w   r4R# r  )r'   r   r   r  )r  Z
patch_faceZ
patch_edger  r      &ff  r#   test_hist_color_semanticsr    s/    < JJL))+00EfEMAq'r%   c                  sv    \         P                  ! ^
^.4      p \        P                  ! ^ ^.^ ^..^RV R7       R# )r  r  )r  rJ   N)r^   r  r'   r  r"  rE  r#   %test_hist_barstacked_bottom_unchangedr    s3    
"bAHHq!fq!fq<Br%   c                  s    \         P                  ! 4       w  rVP                  . \        ^
4      \        ^
4      .RR7       R# )r  r  r  N)r'   r   r  r   r*   r,   r#   test_hist_emptydatar    s.    llnGCGGRrE"I&G8r%   c                  s    \         P                  ! 4       w  rVP                  . RO.. ROR7       VP                  4       w  r#R# )r5   r  Nrv  )r  Zunusedzalso unused)r'   r   r  Zget_legend_handles_labels)r+   r!   r  r|  r   r#   test_hist_unused_labelsr    s6     llnGCGGYKBGC,,.IAvr%   c                  s&   \         P                  ! 4       w  rVP                  ^ ^.^ R7      w   r#VP                  ^ ^.^ .R7      w   r#VP                  ^ ^.RR7      w   r#VP                  ^ ^.RR7      w   r#VP                  ^ ^.RR7      w   r#R# )r    r  Nr   Z00r'   r   r  )r+   r!   r  r  r   r#   test_hist_labelsr    s    llnGC!Qq)JAq!Qs+JAq!Qt,JAq!Qs+JAq!Qt,JAq$r%   Ztransparent_markersc                  s    \         P                  P                  ^ 4       \         P                  P                  ^24      p \        P                  ! 4       w  rVP                  V RR^dR7       R# )r    r  r   )r  rz   Nr^   r_   r`   r'   r   r   r  r   r#   test_transparent_markersr    sG    IINN199BDllnGCGGD#6cG2r%   Zrgba_markersc                  s   \         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  r0   r  rI  r  )r    r    r5   r   )r   rW  r    r  )r'   r   r  rL  r   r   )r+   rN  ZrcolorsZbcolorsZalphasr  r   r  rt  Zrcolorrx  Zbcolorr!   r  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                  st    \         P                  ! 4       p V P                  R R7      pVP                  4        R# )	mollweider  N)r'   r   r   r  r*   r,   r#   test_mollweide_gridr  ,  s(     **,C	K	0BGGIr%   c                  s   \         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   r^   r   r   r  r4  r  r  transProjectionr   invertedr   r   )r+   r!   ZlonZlatllr~  Zll2r   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                  s   \         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   r^   r   r  r4  r  r  r  r  r   r   r   )r+   r!   r0   r1   r~  r  Zxy2r   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            
      s   \         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  rz   r   )r   r  rz   r   r  Nr
  rI  r  r  r   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                  s   \         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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R# )r    Q?)r  lineoffsetslinelengthsr   r8   Zlor  )r  r  r  rm  N)r    r5   r  r
  rJ  r  )r5   r  r    )r5   r    r5   )r    r5   r5   )ir  r5   r   r8  r  )r  r   r5   r5   rV  r   )
r^   r_   r`   tolistr:  rf   r'   r   r   	eventplot)r  data2rm  Znum_datasetsZcolors1Zcolors2r  Zlineoffsets1Zlineoffsets2r  Zlinelengths1Zlinelengths2r  r+   axobjZcollsZ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 4fdK{KD
**,COOEOOE#4(,4  9E%jOr%   ztest_eventplot_defaults.pngc                 s|   \         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r^   r_   r`   r  r'   r   r   r  )r  r  rm  r+   r  rP  r#   test_eventplot_defaultsr    s     IINN1IIb"X&--/EIIaW%,,.E=D
**,COOE	OODr%   r  c                s   ^ .^.^.^..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.NrI  r  )r:  r^   r  rZ  Zto_rgba_arrayr'   r   r  r  r   	get_color)	r  rm  r8   rl  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                  s   \         P                  ! 4       w  rVP                  . RO. RO.RR7      pVP                  . RO. RO.RR.R7      p\        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 unequalr  N)r    r   rW  )r5   rV  r  r  )r   r  r  )r'   r   r  r   r   r  )r+   r!   r^  r   r#   test_eventplot_alphar    s    llnGC ,,	<8,DK
 ,,	<8c
,KK 
z)J	K	K
i.oF 
L 
z)J	K	K
YsCj1 
L	K 
L	K 
L	K	Ks   0C8C-C*	-C>	z!test_eventplot_problem_kwargs.pngc           
     s   \         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       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)
r  r   r8   r  r   Zdasheddashdotr6  )r  r   r]  r   r  r   Nr  )Zrecwarnr  r  rm  r+   r  r  r#   test_eventplot_problem_kwargsr    s     IINN1IIbT"))+EIIbT"))+E>D
**,COOE	OOD:* !1v !f '2((3  5r%   c                  s    \         P                  ! ^^4      w  rVP                  . .R.R7       \         P                  ! 4        R# )r5   r  N)ry  ry  ry  ry  r'   r   r  r   r*   r,   r#   test_empty_eventplotr    s3    ll1a GCLL"34L5HHJr%   rm  rN   c                s    Vf   / MRV/p\         P                  ! ^^4      w  r4VP                  ! V 3/ VB  \         P                  ! 4        R# )z#Introduced when fixing issue #6412.NrN   r  )rm  rN   Zoptsr+   r!   rH   r#   test_eventplot_orientationr    sA     $2=+*FDll1a GCLLHHJr%   c                 s   \         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# )rp  )r  N)r  r   r  )r   r    Zts_1Zts_2r!   rH   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            
      s   \         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                 sJ    \        \        V 4      4      \        V 4      ,           # r   )r  Ztyper0   r5  r#   r6  Z$test_marker_styles.<locals>.<lambda>.  s    3tAw<A#6r%   )r  r   r   )r   ru   rz   r.   N)r'   r   ZsortedrP   markersr  r  rL  r   r^   rf   r   )r+   r!   r  r1   ru   rP  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                  s    \         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.fillstyler  N))r:   r  )rJ   r   )r   r  )r'   r   r^   rf   rL  rP   r   r   )r+   r!   r0   Zidxr   ru   r   r#   test_markers_fillstyle_rcparamsr  6  sZ     llnGC
		!A ):!<_e38
/0
f%!<r%   zvertex_markers.pngc                  s   \        \        ^
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# )r  r   rx  r  Nr   r   ))r   r   r  r  r  )r  r   r'   r   r   r  r  )rm  Zmarker_as_tupleZmarker_as_listr+   r!   rP  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            	      s   \        \        ^
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# )r  )r   r  r  )r   r   r  r   r  rx  zaxvline and axhline zorder testr  )r  r  r   r   )r   r   r  zerrorbar zorder testN)r  r   r'   r   r  r   rh   axvliner3   r^   r  r  )r0   r+   r!   r1   r  rt  r   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                 sF   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   r  r  r   r  z.-r{  rx  r  N)r   r  )r  r5   )r5   r  )r  r{  )r   r   r^  axliner   r"   r#   test_axline_loglogr  k  s    				BFF		F*IIr2hR$'IIisI+				BFF		F*IIr2hR$'IIq"gd|sI+r%   c                 s   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# )r5   r  ro  r  r   rp  rC  )sloper   ZC4infr6  Nr   r  r7  r  rw  )r    r   r5   r   rb  )gffffffrb  )r5   rb  )rb  r5   )r   r   r  r]  r   rh   r  r   r"   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                 sD   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	# )r5   r  r  r   ro  r  r   r   rp  rC  )r   r   r  Nr   r  r7  r  r   r   )r   r    )r   r5   )r   r   r  r   r   r   r"   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                 sD   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# )r5   r  r  ro  r  rp  r  Nr  r7  r  )r    r  rm  )r   r   r  r   set_size_inchesr   r   r"   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                 s   \         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   r  r7  r  )
r'   r   r   r   r   r  r  r@  r  r   r*   r,   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            	      p   . 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  	  \         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  r  r  )r  r   r   rx  N)r   rV  rW  r  r  )r   r  rV  r  r   )r   rV  rW  r  r8  r  )rW  r  )r   rW  r8  r  r  r  )r    r5   r   r    r   r5   )   r  r   r  i      )r'   r   rg   r^   rE  r  r   masked_equal)rl  rO  rd  r   r  r  re  r   r   r  x3rl  x4y4r!   fig3ax5Zx5Zymin5Zymax5                       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 # ID#			0!	4BEE2A6EEE7<EJJr5%qJ9LLBr%   c                      \         P                  ! 4       w  r\        P                  ! R R/4      ;_uu_ 4        VP	                  R^ ^4      pRRR4       R#   + '       g   i     R# ; izlines.colorr  r   N)r'   r   r   r	   rg   r+   r!   r  r   r#   test_vlines_defaultr    D    llnGC	.	/	/		#q!$ 
0	/	/	/   AA'	c            	      r  r  )r'   r   hlinesr^   rE  r  r   r  )rO  rl  rd  r   r  r  re  r   r   r  rl  r  r  r  r!   r  r  Zy5Zxmin5Zxmax5r  r#   test_hlinesr    r  r%   c                  r  r  )r'   r   r   r	   r  r  r   r#   test_hlines_defaultr    r  r  c                 sV   . 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# )r  r  N)r  r   r   r|  rv  )r5   r   rV  r  )r  r   r   rv  )r   rg   r  )r   r    rm  Ztest_colorsZ	expect_xyZexpect_colorr  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%   Zvlines_hlines_blended_transform)r   r   c                  s   \         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
# )rz  r  r   rw  r  r   r  )r\   r]   r   r  r  )yminymaxr   r  Nr8  r8  )r^   rf   rs  r   r   r'   r   r   r  get_yaxis_transformrg   get_xaxis_transform)r  r  r+   ZhaxZvaxrP  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%   Zstep_linestyler   c            
      s$   \         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
# )r  Zpre)r   r   rr  r  r  r  ZY0ZY1ZY2)r   r   rr  rm  N)r  r  r  r  r   )	r^   rf   r'   r   r  r  r  r  r  )r0   r1   r+   ax_lstZ	ln_stylesr!   r  rm  rU  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%   Zmixed_collectionc                  s   \         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)Zmatch_originalr  Nr  r  ii)r    r    r   r   )r    r    r   r   )r'   r   r  Circler   r^  ZPatchCollectionZset_offsetsZset_linewidthsZset_edgecolorsr  r  r_  r  r  )r+   r!   r8   r  r  rP  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                  s    \         P                  ! \        P                  ! ^4      \        P                  ! ^4      ^4      p V P                  4        R# r  N)r'   r  r^   Zint32rq   r   rq  rE  r#   test_subplot_key_hashr    s-    	RXXa["((1+q	1BHHJr%   Q?)rK  r   r   c                 sB   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.rw   rL  r  r  @ffffff@'@r  )NFFTFsnoverlappad_tosidesr  )r  r  r  r  r  r   r  NrR  onesidedtwosided)rP   r   intr^   r  rf   r  r   r   multiplyouterr'  r_   r`   r&  rn   ro   log2r  r'   r   r   specgramr  LogNorm)r(  r  fstims
NFFT_freqsr0   y_freqs
NFFT_noisey_noise	all_sidesr1   r  r  r  r!   r  r  r#   test_specgramr    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                 sV   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.rw   rL  r  r  r   r  r  r  Z	magnituder  r  r  r  r  rZ   r  )r  r  r  r  r  rZ   r   r  Nr  r   r  )rP   r   r  r^   r  rf   r   r   r  r  r'  r  r_   r`   r  r&  rn   ro   r  r  r'   r   r   r  r  r  )r(  r  r  r  r0   r1   r  r  r  r  r  r  r  r!   r  r  r#   test_specgram_magnituder    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                 s<   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.rw   rL  r  r  r   r  r  r  r  dB)r  r  r  r  r  rZ   r   Nr  r  )r  Zphase)rP   r   r  r^   r  rf   r   r   r  r  r'  r  r_   r`   r  r&  rn   ro   r  r  r'   r   r   r  r   r   r  )r(  r  r  r  r0   r1   r  r  r  r  r  r  r  rZ   r!   r  r  r#   test_specgram_angler    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                 s    \         P                  ! \        P                  ! R4      RRR7      w  rr#VP	                  4       w  rErgR# )z;Test axes.specgram when Fs is None, should not throw error.r  Nr  )r  r   )r'   r  r^   r   Z
get_extent)specfreqsr  rs  r\   r]   Zfreq0Zfreq1rU  r#   test_specgram_fs_noner    s3    bggclt8LD!}}Dur%   c                s&   \         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.originrt   N)r^   rf   r   r'   r   r   r  )r   r    r  signalr   r#   test_specgram_origin_rcparamr"    sn     			#AVVAYF#*CLL  ' $+CLL    (r%   c                 s   \         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+  rt   ra  N)r^   rf   r   r   r   r   r'   r  )r  r!  r,   r#   test_specgram_origin_kwargr#    sH    
		#AVVAYF	y	!	!VG, 
"	!	!	!s   A22B	gMb`?c                  s8   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F&  w  rV
^,          p\        ^\        P                  ! \        P                  ! V
4      4      ,          4      p\        \         P"                  ! 4       P%                  ^4      V4       FG  w  rVP&                  ! \        P(                  ! V	4      3RV
RVRVRV/VB pVP+                  RRR7       KI  	  \        \         P"                  ! 4       P%                  ^4      V4       F2  w  rVP,                  ! V	RV
RVRVRV/VB pVP+                  RRR7       K4  	  EK)  	  R# )r        Y@r   r  r  r  r  r  rR  r	  Zreturn_lineFr
  Tr  r  r  r  r   xlabelZylabelN)r  r^   r  rf   r   r   r  r  r'  r_   r`   r&  rn   ro   r  r  r'   r   r   psdr  r   csd)r(  r  r  r  r0   Zys_freqsr  Zys_noiseZ
all_kwargsrT  r  r  r  r!   r  Zretr  r#   test_psd_csdr)    sJ    	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 FF"RF(	 D
 cjjl33A6
CJB&&" E4 EB E"*E39E=CEC FF"RF(	 D Er%   c                  s\   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   r  r  r  r   r%  r   r  Nr  )r  r  r^   ro   r  rf   r   r   r  r'  r_   r`   r  r&  rn   r  r'   r   r   Zmagnitude_spectrumr   Zangle_spectrumZphase_spectrum)r(  r  Zfstims1r  r  r0   r  r  r  r  r1   r!   r  r  r  r  r  r#   test_spectrumr*  :  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                  s   \         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  rB  rC  N)
r'   r   r   r   r   r^   rD  r'  r  r(  rN  r!   r,   r#   test_psd_csd_edge_casesr,  d  s    
**,


"C
d# 	H	%	%A

288A;A

288A;, 
&	%	%	%s   )A.C!!C2	c                 s.   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   Ztick_bottomr   Z	tick_left)r   r    rj   Zax_twinxZax_twinyrk   r   r#   test_twin_remover-  n  sj    ""$G}}H}}HOOOO  "F LL
LLr%   ztwin_spines.pnggI+?c                  s   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                 s    V P                  R 4       V P                  P                  R4       V P                  R,          P                  R4       R# )TFr  N)Zset_frame_onr  r   spinesrq  r5  r#   make_patch_spines_invisibleZ5test_twin_spines.<locals>.make_patch_spines_invisible  s6    

U#
		!  'r%   rw  r  )r>   Tzb-zr-zg-r   )r  rh  r   r1   r  r0   N)rW  rV  )r  rn  r   )r    rV  r   )r  r  r   r   )r'   r   r  r   r   r.  r>   set_positionr   r   r  r  r   r.   r  r  r  tick_params)	r/  r+   ZhostZpar1Zpar2r  r  Zp3Ztkwr'  r#   test_twin_spinesr2  }  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                  s   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   rD  g     @@z#BEAED4r  r  )r   r  z#7FC97Fr   r   rt  )r   rm  )r   r  rm  N)r  iL  i  i  )r  i-  r  r  )
rP   r   r'   r   r   r^   r  r   r   rf  )r+   r   rm  r   r   r#   test_twin_spines_on_topr3    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                 s   aa \         P                  P                  R RRV /4       \        P                  ! 4       w  r4VP
                  P                  4        R# )r  Tzaxes.grid.whichN)r   r   r  r'   r   rr  r   )Z
grid_whichZmajor_visibleZminor_visibler+   r!   r  r#   test_rcparam_grid_minorr4    s<     LLd,=zJKllnGCJJOOr%   c                  s   \         P                  ! 4       w  rVP                  4        V P                  P	                  4        VP                  R R7       V P                  P	                  4        VP                  RR7       V P                  P	                  4        VP                  4        V P                  P	                  4        R# )FZvisibleTN)r'   r   r  rr  r   r*   r,   r#   	test_gridr6    su    llnGCGGIJJOOGGEGJJOOGGDGJJOOGGIJJOOr%   c                  sB   \         P                  ! 4       w  rVP                  R R^
R7       VP                  RR7       \         P                  ! RR /4      ;_uu_ 4        VP                  4        VP                  R R^
R7       RRR4       R#   + '       g   i     R# ; i)Tmajor)Zresetr  	labelsizer  r  r  N)r'   r   r1  r  r	   r;  r*   r,   r#   test_reset_gridr9    so    llnGCNNWN;GG%G 
d+	,	,


TB? 
-	,	,	,s   %BB	c                 sD   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inrI  ro  rp  r  r  )	directionlengthrh  r   padr8  
labelcolorlabelrotation
grid_color
grid_alphagrid_linewidthgrid_linestyleN)r   r  r1  r}  r  r   Zreset_ticksr   )r   r    r+   r!   r   r#   test_reset_ticksrD    s    "__

2QdTA	 	 	!
 	""$ # mm

 r%   c                  sn   \         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K  	  R#   + '       g   i     Lc; i)xtick.directionr:  zxtick.major.sizezxtick.major.widthxtick.colorrI  zxtick.major.padxtick.bottomT	xtick.topxtick.labelsizextick.labelcolorro  Nr&  )r'   r	   r   r}  r   Z
majorTicks)r+   r!   Z
first_ticktickr   r#   test_context_ticksrL  
  s    	t%7=PRS4!2BD+tr#5t	= 
> 
>
 ,,.
>  $$Q'J##B'''
> 
>s   B$$B4	c                  s    \         P                  ! 4       p V P                  4       pVP                  R 4       VP	                  . RO4       \        VP                  4       R4       R# )r   N)r  r    r   r   )r  r   )r'   r   r  r  r   r   r   r*   r,   r#   test_vline_limitrM     s@    
**,C	BJJsOGG BKKM9-r%   zfv, fh, argsc           	      s   \         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)r5   z"ymin must be a single scalar valuer  r  r  Nz"ymax must be a single scalar valuez"xmin must be a single scalar valuer\   r]   z"xmax must be a single scalar value)rP   r{  Znum2dater   r   r  )ZfvZfhargsZbad_limr1  r#   test_axline_minmaxrO  (  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                  s    \         P                  ! ^^RRR7      w  rV^ ,          P                  . RO. RO4       V^,          P                  4       w  r#V^,          P	                  4       w  rER# )r5   T)r  r  r\  r
  Nrv  )r   rW  r8  )r'   r   r   r   r   )r+   rN  rB  rl  rC  rO  r   r#   test_empty_shared_subplotsrP  8  sP    ||!1T$GHCFKK	9%V__FBV__FBr%   c                  s    R Fl  p \         P                  ! ^RR7      w  rV^ ,          P                  ^V RR7       \         P                  ! ^RR7      w  rV^ ,          P                  ^V R7       Kn  	  R# )boxT)r  r\  )
adjustablesharerR  NrQ  datalim)r'   r   
set_aspect)rR  r+   rN  r   r#   test_shared_with_aspect_1rX  D  sb    (
<<a5A!
$? <<a5A!
3 )r%   c                  s   \         P                  ! ^RRR7      w  rV^ ,          P                  ^RR7       V^ ,          P                  ^^.^^.4       V^,          P                  ^^.^^.4       \         P                  ! 4        R# )r   T)r  r\  r
  )rS  N)r'   r   rW  r   r   r  r,   r#   test_shared_with_aspect_2rY  Q  sj    ||!D>HCFat$FKKAAFKKAAHHJr%   c                  s   R EFH  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
                  P                  VP
                  P                  ,          pV Fp  pVP                  4       pVP                  VP                  ,          pVP                  P                  VP                  P                  ,          pW6,          V,          pKr  	  EKK  	  R# )rQ  T)r  r
  rT  r   NrU  )
r'   r   rW  r   r   Zbbox_inchesrg  rh  get_positionviewLim)	rR  r+   rN  Z
fig_aspectr!   r   
box_aspectZ
lim_aspectrl  r'  r#   test_shared_with_aspect_3r]  \  s    (
<<a5A!
3A#*5AQFQF#AQFQF#
 __++coo.C.CC
B!AAGG+J**RZZ-=-==J!.;H	  )r%   c                  s   \         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)r5   Tr\  r
  r  zset_aspect\(..., adjustable=r  N)r'   r   r   r   r   ZRuntimeErrorr}  )r+   r  r,   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r  N)r   r   r'   r   errrN  r  r  ru  r#   test_axis_errorsrd  w  s3     
s	(	($!&! 
)	(	(	(   AA	c                  s^   \         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'r  r  Nz!Cannot supply both positional andri  r  zargument must be amongzscilimits must be a sequence)Z	scilimitszSpecifying 'loc' is disallowedrK   )r<   r0   r:   )r<   r1   zCannot pass both 'left')rK   r\   zCannot pass both 'right')r>   r]   zCannot pass both 'bottom')rJ   r  zCannot pass both 'top')r:   r  )r'   r  r   r   r  r  r  r   Zset_prop_cycleZ
set_anchorZticklabel_formatr(   r)   r  r  rq  rE  r#   test_axis_method_errorsrf    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                 s   \         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   rW  r   bboxextents)r   r+   r!   r   r  r#   test_twin_with_aspectri    s]    llnGCbD-(*GMM!qrww||++-r%   c                  s    Rp RpRpRp\         P                  P                  4       pVP                  4       pVP	                  W4       VP	                  W#4      w  pVP                  R4       VP                  RR7       VP                  4        R# )ry  FT)Zvisible_onlyN)ry  r  )r9  r  )r9  r+  )rP   r   r   r   r   r   Zrelimr   )rl  rO  r  r  r+   r!   r  r   r#   test_relim_visible_onlyrj    s~    	B	B	B	B



"
"
$C		BGGBO GGBOED 	U HH$Hr%   c                 s    \         P                  ! 4       p V P                  4       pVP                  RR7       VP                  RR7       R# )z
tests for issue #1172
Zlarge)r8  outr;  N)r'   r   r  r1  r*   r,   r#   test_text_labelsizerm    s6     **,C	BNNWN%NNUN#r%   zpie_default.pngr{  c            
      s|    Rp . ROp. ROpR	p\         P                  ! R
R7      w  rEVP                  WWRR^ZR7       R# )Frogsrw  %1.1f%%T)exploder|  r  autopctshadow
startangleNrn  ZHogsDogsLogsr   r  -   r  ZyellowgreenZgoldZlightskyblueZ
lightcoralr    r   r    r    )r  r8  r'   r   pie)r|  sizesr  rp  rd  r   r   r#   test_pie_defaultr~    sD     -FEBFGV,IDGGE6dr  ;r%   )r   r   r   c                  s   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# )rn  ro  Tr   rp  r|  r  rq  rr  rs  
wedgepropsr  lr  r8   Zex)rp  r|  r  rq  rr  rs  r  rm  Nrt  rw  ry  rz  )r'   r|  r   r   r  )r|  r}  r  rp  rm  r+   r!   r   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                  s    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# )rn  ro  Tr   r   )	rp  r|  r  rq  rr  rs  r  rR   r  zCenter point->Zarc3)
arrowstyleZconnectionstylesquareZ	lightgrey)Zboxstyler   )r~  r  r  rg  r  Nrt  rw  ry  rz  r   )r5   r  )r'   r|  r  r  r   r|  r}  r  rp  r   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                  s    Rp . ROp. R	OpR
p\         P                  ! WWRR^ZR^/R7       \         P                  ! R4       R# )rn  ro  Tr   r  r  Nrt  rw  ry  rz  r'   r|  r   r  r   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# )
rn  ro  T)rp  r|  r  rq  rr  rs  Zcounterclockr  Nrt  rw  ry  rz  r  r  r   r#   test_pie_ccw_truer  &  s@     -FEBFGGGE6dr HHWr%   zpie_frame_grid.pngc                  s4   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# )rn  ro  Tr   )	rp  r|  r  rq  rr  rs  r  ZframerR   Nr  rt  rw  ry  rz  r  r   )r  r   )rV  r  r  r  r   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  )
Hogwartsro  T)rp  r|  r  rq  rr  rs  rotatelabelsr  N)r  rn  ru  rv  rw  ry  rz  r  r  r   r#   test_pie_rotatelabels_truer  P  s@     1FEBFGGGE6dr HHWr%   zpie_no_label.pngc                  s    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# )rn  ro  TN)rp  r|  r  rq  rr  rs  Zlabeldistancer  r  rn  rt  rw  ry  rz  g333333)r'   r|  r   r}   rD   r  r   r#   test_pie_nolabel_but_legendr  _  sW    ,FEBFGGGE6dr HHWHHT3JJLr%   zpie_shadow.pngc                  s   . 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   )rp  r  rr  rs  r  FZoxrA  ZoyZshader  r   r   r   Nrw  ry  rz  r  r{  )r}  r  rp  r  r  rP  r#   test_pie_shadowr  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            	      s    . 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K  	  K  	  R# )r  rR   r:   Zanchorr  )ZhorizontalalignmentZverticalalignmentr  Zrotation_moder  r   %.2f)r|  rq  	textpropsN)r  i"   rx  )zLong name 1zLong name 2zLong name 3)r  r'   r  r|  )rm  r|  r  r  Ztextsrq  Ztxr   r#   test_pie_textpropsr    sa    D:F', #+E	+I 	d609 & ;Ag"B& #r%   c                  s    \         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  rp  N)r  r  r  )r    r   r   r'   r   r   r   r  r|  r*   r,   r#   test_pie_get_negative_valuesr    s=    llnGC	z	"	"
z;/ 
#	"	"	"   AA-	c                  s    \         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)r5   r   r  Nrv  r  r*   r,   r#   test_pie_invalid_exploder    sA    llnGC	z	"	"
y3*- 
#	"	"	"r  c                  s    \         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)r5   ZOneZTwor{  Nrv  r  r*   r,   r#   test_pie_invalid_labelsr    sA    llnGC	z	"	"
y%0 
#	"	"	"r  c                  s    \         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)r5   )r  Nrv  r=  r  r*   r,   r#   test_pie_invalid_radiusr    s=    llnGC	z	"	"
y$ 
#	"	"	"s   AA+	c                  s    \         P                  ! 4       w  r. ROpVP                  VRR7      pVP                  VRR7      pR# )r   T)r0   Z	normalizeFNr   r   r   r{  )r+   r!   r0   Zt1Zt2rP  r#   test_normalize_kwarg_pier    s8    llnGCA	!t	$B	!u	%Br%   c                 s    . 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  Nr  )r   r|  	set_hatch)r   r    r0   rs  wedgesr  r  rD  r#   test_pie_hatch_singler    s]    AEA+  "&&q)IF!'(A[[((s   A)c                 s    . 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  Nr  )rq  r  rs   )r   r|  r  r  )r   r    r0   rs  r  r  r  Zhpr  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                  s   \         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   ra   zset_x/yticklabelsr   Nr   r   r8   r  )Z11Z12Z13Z14)r'   r   r   r^   rf   r3   
set_xticksr   
set_yticksset_xticklabelsset_yticklabelsZ
get_xticksZ
get_yticksr  get_yticklabels)r+   r!   rA   r   r#   test_set_get_ticklabelsr    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                 s    \         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'r  r   r  Nrv  )r'   r   r   r   r  r   	set_ticks)r+   r!   ticksr   r#   0test_set_ticks_kwargs_raise_error_without_labelsr    sO    
 llnGCE	z)T	U	U
5, 
V	U	U	Us    A((A9	c                s   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)Z
fontweightT)r  r  r  N)r5   r   rW  r8  r  ro  )r   r  r  r  r  r   r"   r#   test_set_ticks_with_labelsr    s     
			BMM,+?MM)MM1a&M%Sz.				BMM, 4MHMM)MM1a&3*DM1r%   c                  s   \         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 sequencer  r.  Nz
must be 1Dr{  r  r  )r'   r   r   r   r   r   r  r  r  r^   rf   r   r   rq  rE  r#   test_xticks_bad_argsr    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                  s   \         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R# u upi u upi )r  r   r%  Z
bcdefghijkN)r'   r   r   r^   rf   r   r  r)  set_ticklabelsr   get_ticklabelsrh  )r+   r!   r8   r  r|  rP  r#   test_subsampled_ticklabelsr    s    llnGCGGBIIbMHHryy}s*+AHH51Q56HHJ$&HH$;$;$=>$=qjjl$=F>F 6>s   
C< Dc                  sp   \         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)r  r   r9  Nr   r   r8   )r'   r   r   r^   rf   r   r  r   r   r  r  r*   r,   r#   test_mismatched_ticklabelsr  (  si    llnGCGGBIIbMHHSz"	z	"	"
0 
#	"	"	"s   <B$$B5	c                  s    \         P                  ! 4       w  rVP                  ^^.^^.4       VP                  ^^.4       VP	                  . 4       R# r  )r'   r   ri  r  r  r*   r,   r#   test_empty_ticks_fixed_locr  0  sC    llnGCFFAq6Aq6MM1a&rr%   zretain_tick_visibility.pngc                  s    \         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    Fr5  r1   r~   r   r  r<  Nr   )r    r   rW  )r'   r   r   Zsetpr  r1  r*   r,   r#   test_retain_tick_visibilityr  8  sF    llnGCHHY
#HHR!51NN6!N4r%   c                  s   \         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 numberr  r   r  Nz$The number of FixedLocator locationsr   )	r'   r   r   rA  r  r  r  r   r  r*   r,   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                  s   \         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R# u upi )c                 s    V ^8X  d   R# R# )r5   z
unit valuer   r   r   r   r#   formatter_funcZ.test_tick_label_update.<locals>.formatter_funcU  s     Av|-2-r%   r9  N)r   r    r5   r   rV  rb  )r'   r   r   r   r   r  r  rr  r   r  rh  )r+   r!   r  rK  Z
tick_textsrP  r#   test_tick_label_updater  O  s     llnGC.HH  !2!2>!BC MM"#KKcJJOO.0hh.E.E.GH.Gd--/.GJHJHs   %Czo_marker_path_snap.pngc                  s   \         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   r  r   r   r^   r   r   )r+   r!   r  r   r#   test_o_marker_path_snapr  b  s    llnGCJJrNArl
A"''!*r/326  kk!R$
A"''!*r/326 %r%   c                  s   ^^
.p Rp\        V 4      R,
          p\        V 4      p\        V 4      p\        P                  ! ^^4      w  rVVP                  V 4       VP                  ^4       \        P                  ! ^^4      w  rxVP                  V 4       VP                  R^4       \        P                  ! ^^4      w  rV
P                  V 4       V
P                  RRR7       R# )r5   ry  r   r   r  Ngɿ)r:  r  r  r'   r   r   r  )rm  r\   r]   r  r  rd  r   re  r   r  r   r  r#   test_marginsr  m  s    r7DDt9s?Dt9Dt9DQ"IDHHTNKKN Q"IDHHTNKKQ Q"IDHHTNKK$#Kr%   c                  st    \         P                  ! 4       p V P                  4       pVP                  R R4       R# )r   r   N)r'   r   r   r  r*   r,   r#   test_margin_gettersr    s'    
**,C		BJJsCr%   c                  s    \         P                  P                  R 4       \        P                  ! 4       w  rVP                  ^^.^^.4       VP                  R^ R7       R# )rR  r   )r,  ZxmarginN)r   r   r   r'   r   r   r   r*   r,   r#   test_set_margin_updates_limitsr    sE    IIMM)llnGCGGQFQFFF%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                 s    \         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ra  )r   r   r'   r   r   r  )rc  rN  r  r  r+   r!   r  r#   test_margins_errorsr    sJ     
s	(	(jjl__


D#F# 
)	(	(	(s   8A""A3	c                  sz    \         P                  ! 4       w  rVP                  ^4       VP                  ^.4       R# r  r  r*   r,   r#   test_length_one_histr    s'    llnGCGGAJGGQCLr%   c                  s(   \         P                  ! 4       p V P                  4       pVP                  R R4       VP                  RR7       VP                  RR7       VP	                  R R4       VP	                  RR7       VP	                  RR7       R# )r   r#  rX  )r   )rt   N)r'   r   r   r`  ra  r*   r,   r#   test_set_xy_boundr    sw    
**,C		BMM#s MMM MMM MM#s MMM MMMr%   c                  s    ^
.^d,          p \         P                  ! ^^4      w  rVP                  W 4       VP                  \        P
                  ! 4       4       R# r  )r'   r   r	  r!  r  r   )Zmylistr+   r!   r   r#   test_pathological_hexbinr    s=    TCZFll1a GCIIfKK

r%   c                  sd    \         P                  ! 4       w  rVP                  ^^.^^.RR7       R# )r5   Nr  r  r*   r,   r#   test_color_Noner    s)    llnGCGGQFQF$G'r%   c                  sl    \         P                  ! 4       w  rVP                  ^ ^.RR7      ^ ,          pR# )r    r  r  Nr  r+   r!   r  r   r#   test_color_aliasr    s*    llnGC77Aq6V7$Q'Dr%   c                  s    \         P                  ! 4       w  rVP                  \        ^4      .^,          \        ^4      R7       VP	                  4        R# )r   r  N)r'   r   r  r   rD   r*   r,   r#   test_numerical_hist_labelr    s6    llnGCGGU2YK!O58G,IIKr%   c                  s    \         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   Zdecoder  r   rD   )r+   r!   r   r   r|  rP  r#   test_unicode_hist_labelr    sc    llnGC
@A+AhhwhhwF
 GGU2YK!O6G*IIKr%   c                  sJ   \         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                  4        VP
                  P                  4        VP                  P                  P                  4       p\        P                  ! 4       w  rVP	                  V 4       VP
                  P                  4        VP                  P                  P                  4       pVP                  P                  4        VP
                  P                  4        VP                  P                  P                  4       pR# )r  g^ 9^;N)r^   r_   r'   r   r   rr  r   r   Z
offsetTextrZ  Z
tick_rightr   r   )rm  r+   r!   ZbeforeZafterrP  r#   test_move_offsetlabelr    s   99B%'DllnGCGGDMJJOOXX  --/FHHJJOOHH,,.E llnGCGGDMJJOOXX  --/FHHJJOOHH,,.Er%   zrc_spines.pngc                  s    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)rP   r	   r'   r   )r  rE  r#   test_rc_spinesr    sJ     	EU5e	%G
 
		w	'	' 
(	'	'	's   A		A	zrc_grid.pngc                  s"   \         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~   r0   r1   N)r'   r   rL  rP   r	   r   )r+   Zrc_dict0Zrc_dict1Zrc_dict2r  r   r  r   r#   test_rc_gridr    s    
**,CT&H
 	T#H
 	T#H X.I	1-
""7++OOAq!$ ,+ .+++s   A==Bc                  s   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RRR4       R#   + '       g   i     R# ; i)rG  FrH  T
ytick.leftytick.rightrH  Nr'   r	   r   r   r   r   r  r+   r   ZxaxZyaxrP  r#   test_rc_tickr  5  sh    	T	t]E	3A	1		jjlooaA&iiii	 
			s   AA55B	c                  s"   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RRR4       R#   + '       g   i     R# ; i)rH  Tr  rG  r  zxtick.minor.bottomFzxtick.major.bottomzytick.major.leftzytick.minor.leftr  Nr  r  rP  r#   test_rc_major_minor_tickr  I  s~    	dM4	|T	u&:E	U$6		?A
 
1		jjlooaA&iiii	 
			s   AA==B	c                  s   \         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\        VP                  RR7      P                  R4       \        VP                  RR7      P                  R	4       R# )
rW  Zmor  T)originalFN)r   r#  rz  r  g      ?r   r  r  )g333333?r   g      ?r  )r^   rf   r  r'   r   r   r   r   r   r   rZ  rh  )r0   r1   r+   r!   r|   r}   r   r#   test_square_plotr  `  s    
		!A
!"AllnGCGGA$GGH$ 
&..0FH
'//1KMr%   c            	      s   \         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)Nr  r  r   r  )	r   r   r  r'   r   r^   r  rf   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                 s4    \         P                  ! 4       w  r4R # r   )r'   r   )r~  rm  Zclsr+   r!   rh  r#   test_pcolorfastr  z  s     llnGCr%   c            	      sT   \         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 2Dr  N)rW  r  r  )r'   r   r   r   r   rw  r^   emptyr*   r,   r#   test_pcolorfast_bad_dimsr    sk    llnGC	I
L 
L
bhhqk288F#3RXXf5EF
L 
L 
L 
Ls   ABB'	c            
     s   \         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\)r  NzHLength of Y \(5\) must be one larger than the number of rows in C \(10\))
r'   r   r   r   r  rw  r^   rf   r_   rn   r*   r,   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                  sJ   \         P                  ! ^^RRR7      w  rVR,          P                  R4       VR,          P                  R4       VP                   F  pK  	  VR,          P                  R4       VR,          P                  R4       VP                   F  pK  	  R# )r   Tr^  r   r  Nr7  r  )r'   r   r  r@  rM  r+   rN  r!   r   r#   test_shared_scaler    sx    ||Aqd;HCIIhhh I"I"hhhr%   c                  s\   \         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[  Nr	  )r   r   r   r'   r  r   r%   r#   test_shared_boolr    sX    	y	!	!4  
"	y	!	!4  
"	! 
"	!	!	!	!s   B%BB	B+	c                 s^    \         P                  ! \        P                  ! ^ ^ .4      4       R# )z4Violin plot should handle point mass pdf gracefully.N)r'   r  r^   r  r   r%   r#   test_violin_point_massr    s    NN288QF#$r%   c            
      s    \        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# )r0   r1   rc  Nr  r  )r5   r5   r5   r5   r5   )r   r  )r   r^   rf   r   )Zbase_xyZ
err_cyclerZxerr_cyZyerr_cyr  Z	xerr_onlyZ	yerr_onlyZboth_errrU  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                 st    \         P                  ! 4       pVP                  ! R/ V B pVP                  4        R # )Nr   )r'   r  r  r  )r  r!   Zebrf  r#   test_errorbar_inputs_shotgunr    s'    	B		v	BIIKr%   Zdash_offsetc            	      s    \         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    rx  )r  r   r   Nr  r  )r'   r   r^   r   Z	ones_liker   r   )r+   r!   r0   r1   rt  rP  r#   test_dash_offsetr    s[    llnGC
ArA
QA1c1
Q3Ax=Qc: r%   c                  sB   \         P                  ! 4       w  rVP                  R RR7       VP                  P	                  4       pVP                  R RR7       VP                  P	                  4       pVP                  R RR7       VP                  P	                  4       pR# )aardvarkr+  r=  ry  N)r'   r   r3   ZtitleOffsetTransZ
get_matrix)r+   r!   r  r   r#   test_title_padr    s     llnGCLLL%
&&(ALLL$
&&(A LLL&
&&(Ar%   c                  s   \         P                  ! 4       w  rR \         P                  R&   VP                  R4       VP                  RRR7       VP                  RRR7       \        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)	rR   zaxes.titlelocationr  rK   r;   r>   r  NZfail)r'   r   r   r3   r   r   r  Z	get_titler*   r,   r#   test_title_location_roundtripr    s    llnGC)1CLL%&LLLLVL$LLgL& 
z	"	"
 
#	z	"	"
V' 
#	" 
#	"	"	"	"s   CC2C/	2D	r\  c                 sP   \         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  r5R# )r   r[  r  r  r  Ni)r'   r   r3   r}  r/   rZ  )r\  r+   rN  r0   rO  r  r  r#   test_title_location_sharedr    s    ||Aq0HCFSc"FSc" FLL%%'EAFLL%%'EArr%   z
loglog.pngc                  s    \         P                  ! 4       w  r\        P                  ! ^^4      pVP	                  W"^,          ^R7       VP                  ^^R7       VP                  ^^RR7       R# )r5   r   )r<  rh  r  )r<  rh  r  N)r'   r   r^   rf   r^  r1  )r+   r!   r0   r   r#   test_loglogr    sU    llnGC
		!RAIIaA!INN"AN&NN"AWN5r%   ztest_loglog_nonpos.pnggV-?)rK  r   r   c                  s   \         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# )
rV  )r  )r   nonpositiver   r   )r  Ng      rY  )r  r  r   )
r'   r   r^   rf   r  r   rM  r^  r  r@  )r+   rN  r0   r1   ZmcyZmcxr!   r   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                  s   \         P                  ! 4       w  rVP                  . RO4       \         P                  ! 4       w  rVP                  . RO. RO4       \         P                  ! 4       w  rVP	                  . RO. RO4       \         P                  ! 4       w  rVP                  \        P                  ! R4      4       \         P                  ! 4       w  rVP                  \        P                  ! R4      4       \         P                  ! 4       w  rVP                  \        P                  ! ^
4      4       \         P                  ! 4       w  rVP                  \        P                  ! R4      4       R# )r    Nr~  )r5   r5   r5   r5   r  )r'   r   r   ri  rj  r  r^   r  rw  r  rf   r   r*   r,   r#   test_axes_marginsr  :  s    llnGCGGL llnGCFF<& llnGCGGL,' llnGCIIbhhx ! llnGCMM"((8$% llnGCGGBIIbM llnGCIIbhhx !r%   )rS  c                 s<    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R# r4  )r   r  r  r   get_major_locatorr!   r   r  rf  r#   	_helper_xZ&shared_axis_remover.<locals>._helper_x^  9    hhj


ArHH&&(*r%   c                 r  r4  )r   r  r  r   r  r  rf  r#   	_helper_yZ&shared_axis_remover.<locals>._helper_ye  r  r%   r0   r1   )param)requestr  r  rf  r#   shared_axis_removerr  \  s&     C+GMM::r%   c                 s   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# )r  r   subplots_sharedallr^  r  r   r   r  r  )r  r'   r   r  r   r  )r  r+   r!   r  r  r#   shared_axes_generatorr  o  s     }}jjlWWY 7N 
*	$,,. 7N 
+	+ll1aeDAYq\ 7N 
*	$jjl\\*+7Nr%   c                 s    V w  r#V! V4       R # r   r   )r  r  r+   r!   r   r#   test_remove_shared_axesr    s    #GCr%   c                  s.   \         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!   Z	orig_xlimr   r#   test_remove_shared_axes_relimr    sm    ,,q!E%@KC	1Bq	!%%'IIIKKK1vay|,,.	:r%   c                  sn   \         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       R# )r  Tr^  r  Nii)
r^   rf   r_   Zrandom_sampler  r'   r   r  r  rR  )r  r  r+   r   r   rP  r#   test_shared_axes_autoscaler    s    
		#r2A
		 01All1aTBOC#LLLLKKaKKar%   c                  sZ   \         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                  ^ R4       V P                  P                  4        R# )r  r%  r  r  N)
r'   r   r   r  Z
set_paramsr  rW  rr  r   r  r*   r,   r#   test_adjust_numtick_aspectr    sq    llnGCHH ++&+9KK4MM'JJOOKK4JJOOr%   c                  sv    \         P                  ! 4       P                  ^^4      p V P                   F  pK  	  R# )rW  N)r'   r   r   rM  r+  r,   r#   test_auto_numticksr    s%    
**,

1
%Chhhr%   c                  s    \         P                  ! 4       w  rR \        P                  R&   VP	                  RR.R^
.4       R# )Zround_numbersaxes.autolimit_modeg#B;g     j@缉ؗҜ<N)r'   r   r   r   r^  r*   r,   r#   test_auto_numticks_logr    s6     llnGC*9CLL&'IIuclUBK(r%   c                  sX    \         P                  ! 4       w  rVP                  . R4       R# )r   N)r   r   )r'   r   rZ  r*   r,   r#   test_broken_barh_emptyr    s    llnGCNN2x r%   c                 s    \         P                  ! 4       w  r\        P                  ! R^^	^ ^ ^ 4      pVP                  V\        P                  ! ^R7      3.^^.4      pR# )z9Check that timedelta works as x, dx pair for this method.rV  rW  N)r'   r   r  rZ  r  )r+   r!   Zd0Zppr   r#   test_broken_barh_timedeltar     sP    llnGC			4Q1a	0B	"h00q9:;aV	DBr%   c                 s    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)r_  N)rb  r^   rf   r_   rn   r'   r   rd  )re  ZtimeZdepthrm  r+   r!   r  r#   test_pandas_pcolormeshr    sP    ==r=2DIIbME99>>"a DllnGCMM$t$r%   c                 s   \         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  rZ  r{  r  r  N)r^   rf   r   r   r:  rx  r'   r  r  ry  r  r   )re  r{  r  rz  r!   Zwithout_zero_indexr  r#   test_pandas_indexing_datesr    s    IIi/BEVVE#e*%&F	wx8	9B	BBHHRXX.2a78==?GGGX$6G7r%   c                 s    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  r0   r1   xeye)Zcolumnsry  r(  N)r  rW  )r0   r1   r  r  r  )rx  r^   r_   r  r'   r   r  r  r  r#   test_pandas_errorbar_indexingr    sT    	bii''V'44+ 
 
-B llnGCKKSt$RK8r%   c                 s    V P                  R . ROR. RO/4      p\        P                  ! 4       w  r#VP                  VP                  VR,          4       R# )ZXXZYYNrF  )r  r5   r   )rx  r'   r   r   ry  r  r  r#   test_pandas_index_shaper    s<    	tYi8	9BllnGCGGBHHbhr%   c                 s    V P                  . ROR7      pVP                  R,          p\        P                  ! 4       w  r4VP	                  V4       R# )r5   r  r&  N)
r5   r   r   rV  rV  rW  rW  rW  rW  r  )r  Zilocr'   r   r  )re  Zser_1Zser_2r+   r!      &    r#   test_pandas_indexing_histr    s8    II9I:EJJrNEllnGCGGENr%   c                 sT   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   rR   r>  N)rx  r   r'   r   ri  r<   rr  r   r  r  r#   test_pandas_bar_align_centerr	    s    	sE!Hc584	5Bll1oGCFF266"S'Q,#$66"S'Q,#$   JJOOr%   c                  s   \         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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R	# )
r7  r  r  T)Zreverser  rk  r~   )r8  r>  r;  r  N)r'   r  r   Zget_tick_paramsZ_translate_tick_paramsZ_major_tick_kwZ_minor_tick_kwset_tick_params)	r   Zinitial_major_style_translatedZinitial_minor_style_translatedZtranslated_major_kwZtranslated_minor_kwZnew_major_style_translatedZnew_minor_style_translatedZnew_major_styleZnew_minor_styler'  r#   test_axis_get_tick_paramsr    s    ;;=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MOr%   c                  sl    \         P                  ! 4       p V P                  P                  ^RRR7       R# )r  r  rk  )r8  r>  r;  N)r'   r  r   r
  )Zaxis_1rE  r#   .test_axis_set_tick_params_labelsize_labelcolorr    s+    [[]F
LL  2%+0 ! 2r%   c                  s    \         P                  ! 4       p V P                  R ^RRR7       V P                  V P                  3 F  pK  	  R# )r   r   r  )r@  rB  rA  rC  N)r'   r  r1  r   r   )r!   r   r,   r#   test_axes_tick_params_gridlinesr  )  s<    	BNNc!"+  -"((""r%   c                      \         P                  ! 4       p V P                  R RRR7       V P                  R RRR7       R# )FTr7  )	labelleft
labelrightr  r  Nr'   r  r1  rq  rE  r#    test_axes_tick_params_ylabelsider  5  s=    	BNNUt   "NNUt   "r%   c                  r  )TFr7  )labeltoplabelbottomr  r  Nr  rq  rE  r#    test_axes_tick_params_xlabelsider  C  s=    	BNNDe   "NNDe   "r%   c                  s    \         P                  ! 4       P                  4       p V P                  \	        ^ 4      RR7      w  pR# )r   Nr  )r'   r   r   r   r   )r!   lnr,   r#   test_none_kwargsr  S  s.    				 B
''%)t'
,CBr%   c                  s    . ROp \         P                  ! \        P                  ! V \        P                  R7      . RORR7      p\        VP                  V 4       F  w  r#K  	  R# )r    rZ  r0  r>  Nr~  )r   rV  rW  r  )r'   ri  r^   r  Zuint8r  r   )rS  r   r  r0   r   r#   test_bar_uint8r  Y  s?    	B288,l&IA!))R(
(r%   zdate_timezone_x.pngr   c                  s   \        ^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)	rV    Canada/Easternr   Ztzinforw  )tzNUTCr  r  r   r  rw  r  Zgettzr'   r   r  r   rA  r   r  r  r0   
time_indexr,   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                  s   \        ^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)rV  r  r  r  rw  FT)r  ZxdateydateNr  r  r  r   r,   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                  s   \         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)
rV  r  r  rw  r  T)r  r#  Nz
US/Easternr  )r  ZtimezoneZutcr   r'   r   r  r   rA  r   r  r  )r  r0   r!  r   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                  s   \         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       K  	  R# )rV  T)r  r\  r
  Fr  r}  r  r  r8   r  )r   r   r   )r:   rJ   rK   r>   r  N)Fr  Trm  r  )r'   r   r   r  r   r  r  r  r  r1  r.  r   Zset_axisbelow)rN  Zsettingsr!   ZsettingZcircrP  r#   test_axisbelowr&    s    
 **,

aT

BC$H3)
Rs3vS1
T
cSA6
5! 	 	0
		!  '
! *r%   c                  s   \         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R# )r   )r  Xlabel2TitleN)r'   r   r   r   r   r(   r3   rr  r   get_rendererget_window_extentrC  rO  )	r+   r!   r   Zxlabel2r/   rendererZbbox_y0_titleZbbox_y1_xlabel2Zy_diffr'  r#   test_titletwinyr,    s    IIMM'llr"GC
((*CnnY'GLL!EJJOOzz&&(H++H588M//9<<O,Fr%   c                  sn   \         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       R# )r  )r:   ZXlabelr'  r(  N)r   g(\?)r'   r   r  r   r(   r3   r/   r0  rr  r)  Z_update_title_position)r+   r!   r   r   r+  rP  r#   test_titlesetposr-    s    llnGCC 
((*CMM(NN9LL
CHH#zz&&(Hh'r%   c                  s    R \         P                  R&   \        P                  ! 4       w  rVP                  P                  R4       VP                  R4       V P                  P                  4        R # )Naxes.titleyr:   
xlabel top)	r   r   r'   r   r   r   r3   rr  r   r*   r,   r#   test_title_xticks_topr0    sI    "&CLLllnGCHH&LLJJOOr%   c                  s    R \         P                  R&   \        P                  ! 4       w  rVP	                  RRRRRR7       VP                  R4       V P                  P                  4        R # )Nr.  r0   Tr   rJ   r:   r  r  r/  )r   r   r'   r   r1  r3   rr  r   r*   r,   r#   test_title_xticks_top_bothr2    sT    "&CLLllnGCNNDdT  KLLJJOOr%   zleft, centerc                 s   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 '       d   V'       g   R # V '       g   V'       d   R # VP                  P                  4       ^,          pVP                  P                  4       ^,          pR # )Nr.  g   vH7BrK   r;   )
r   r   r'   r   r  r3   r}  Z_left_titlerZ  r/   )rK   rR   r+   r!   Zyleftr  r   r#   test_title_above_offsetr3    s     #'CLLllnGCKKLL6L"LL FFff ++-a0(('')!,r%   c                  s    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        R # )Nr.  r0   Tr1  Boo)r   rb  r  r   )	r   r   r'   r   r  r1  r3   rr  r   )r+   r!   Zttr   r#   test_title_no_move_off_pager5    se     #'CLL
**,C	+	,BNNDdT  K	e	BJJOOr%   c                  s    R \         P                  R&   \        P                  ! 4       w  rVP	                  R4       V P                  4        VP                  . RO4       V P                  4        R # )Nr.  r(  )r    r5   r5   r   )r   r   r'   r   r3   r}  
inset_axesr*   r,   r#   test_title_inset_axr7    sM    "&CLLllnGCLL MM.! r%   c                  s    \         P                  ! 4       w  rVP                  . RO4       VP                  P	                  RR7       R# )   @Ar  )r>  Nr8  g   eAg   FAr'   r   r   r   r
  r*   r,   r#   test_offset_label_colorr;    s1    llnGCGG$%HH.r%   c                  s    \         P                  ! 4       w  rVP                  . RO4       VP                  P	                  RRR7       VP                  P	                  RR7       R# )r8  FT)Zlabel1Onlabel2On)r<  Nr9  r:  r*   r,   r#   test_offset_text_visibler=    sH    llnGCGG$%HHed;HHe,r%   c                  s    \         P                  ! 4       w  rVP                  ^\        P                  ! ^ R.4      ,           R,          4       V P
                  P                  4        R# )r5   g-q=gqىEN)r'   r   r   r^   r  rr  r   r*   r,   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   r  r^   r   r:  Zbarbsr+   r!   r   r{  r1   Zur4  r   r#   test_barb_unitsrB  .  s    llnGC<A!R<LM<LqXtQB2<LEM
Aq#e*%AKK2s5z**AHHUq N   #B#c            
      r?  r@  )r'   r   r   r  r^   r   r:  ZquiverrA  r   r#   test_quiver_unitsrD  6  s    llnGC<A!R<LM<LqXtQB2<LEM
Aq#e*%AKK2s5z**AIIe NrC  c                  s
   \         P                  p \        P                  ! 4       w  r\	        ^4       FL  pVP                  \	        ^4      4      w  pVP                  \	        ^4      \	        ^4      4      pV F  pK  	  KN  	  R# r  )rZ  to_rgbr'   r   r   r   ri  )rE  r+   r!   rt  r  ZbrsZbrr   r#   test_bar_color_cyclerF  >  sY    ^^FllnGC1XggeAhffU1XuQx(B# r%   c                  s   \         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K  	  VP                  RR7       F  pK  	  VP                  R^5R7       VP                  R^#R7       VP                  RR7       F  pK  	  VP                  RR7       F  pK  	  R	# )
r5   r~   )r  r  r  r0   )r   r?  r1   )r   r  r7  N)	r'   r   r   r   r
  r   r  r  r1  )r  r!   r   textr   r#   test_tick_param_label_rotationrH  H  s    \\!Q'NC"GGQFQFHHaVaVHH6B7HH6B7"""00"""00 OOBO/OOrO*##'#22##'#22r%   c                  s   \         P                  ! 4       w  r\        ^4       F@  pVP                  \        ^4      \        ^4      4      p\        P
                  ! RV 24      pKB  	  \        ^^4       F@  pVP                  \        ^4      \        ^4      4      p\        P
                  ! RV 24      pKB  	  \        P
                  ! R4      pR F+  pVP                  ! \        ^4      \        ^4      3/ VR/B pK-  	  \        P
                  ! R4      p\        RR.^R7       FF  w  r'VP                  ! \        ^4      \        ^4      3/ VR/B p\        P
                  ! RV 24      pKH  	  R# )rV  r  rx  r   r  )r\  N)r   rG  r   )r'   r   r   rf  rZ  Zto_rgbark  rL  )	r+   r!   rt  ZcctargetZalZedge_targetZelZface_targetr'  r#   test_fillbetween_cyclerJ  [  s"   llnGC1X__U1XuQx01QC) 
 1a[eAha11QC) 
 __S!F2__U1XuQx=B9= 3 //#&KK6a@__U1XuQx=B9=oo!g. Ar%   c                  s   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# )rm  r  rA  N)
r'   r   r   Zset_xmarginr_  r   r   rT  r   r   )r+   r!   ZmarginZxlim0Zxlim1r   Zxlim0tZxlim1tZx0tZx1tr   r  r#   test_log_marginsrK  w  s    *0CLL&'llnGCFNN6KKS	B9%;;=LE&&(I((%8NF""B9-HCY& EV^V^4sjAr%   c                  s<   ^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  Nr9  r  r  )	r^   rf   r'   r   r   r   r  r6   rA  )rO  r0   r1   r  r+   r!   r   r#   test_color_length_mismatchrL    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                  sb    \         P                  ! R .RR7       \         P                  ! 4        R# )r   ZLabelr  N)r'   r  rD   r   r%   r#   test_eventplot_legendrM    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                 r`  ra  )r   r   r'   r  rb  ru  r#   test_eventplot_errorsrN    s3    * 
s	(	(t&v& 
)	(	(	(re  c                  s    \         P                  ! 4       w  rVP                  \        ^4      ^4       VP	                  ^ ^\        ^4      ^R7       VP                  ^ ^.^ ^.RR7      w  r#R# )rW  )rK   rg  r(  N)r   r   r   ry  )r'   r   ri  r   rj  )r+   r!   Zrect1rect2r   r#   test_bar_broadcast_argsrP    sZ    llnGCFF58QGGAquQxG*661a&1a&4D6ELE5r%   c                  sN   \         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r4  )
r'   r   r   r   r  r|   r^   rE  r  r}   r   r%   r#   test_invalid_axis_limitsrQ    s    HHaVaV	z	"	" 
#	z	"	" 
#	z	"	" 
#	z	"	" 
#	" 
#	"	"	"	"	"	"	"	"s/   %E%E-%F +%FE*	-E=	 F	F$	r,  r  r   r$  c                 s    \         P                  ! 4       pVP                  . RO4       VP                  V 4       VP	                  V4       VP                  4        R# )r5   NrU  )r'   r  r   r  r@  rG  )r,  r$  r!   r"   r#   test_minorticks_onrR    s?     
BGGLMM&MM&r%   c                  s   \         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# )r5   r   N)r'   r   r  r   r   r   r[  Z	intervalx)r+   r!   Zxtwinre  r   rP  r#   test_twinx_knows_limitsrS    s    llnGCJJq!HHJE	JJ3x!Q IDKK1HHaX1vu}}..0E0EFr%   c                  sB    \         P                  ! ^ ^.^ ^.R^ R7       R# )r    r  )r  r   N)r'   r   r   r%   r#   test_zero_linewidthrT    s    HHaVaV+r%   c                  s    \         P                  ! 4       w  rVP                  . . . R R7       VP                  . . . RR7       VP                  4        R# )zempty y)r  r.   zempty x)r  r.   N)r'   r   r  rD   r*   r,   r#   test_empty_errorbar_legendrU    s@    llnGCKKBRyK1KKBRyK1IIKr%   c                 s   \         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 )r  r   g@r-  g\(\@r  NrY  )r^   rf   r   r   r   )r   r    rB  r0   rC  r   r1   rD  r#   test_plot_decimalrV    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                 s    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    r   r#   test_markerfacecolor_none_alpharW    sB    Qr:As26r%   c                 sF   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R# )z5Test that tick padding gets turned off if axis is offrk  rE  zytick.directionoffN)r'   r   r   get_tightbboxrr  r)  r   r+   r!   bbbb2r   r#   test_tick_padding_tightbboxr]    sr    &+CLL"#&+CLL"#llnGC			#**113	4BGGEN


3::224
5Cr%   c                 s   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                  P                  4        \         P                  ! RR.RR..4      pR# )
z2
Ensure that inset_ax argument is indeed optional
rA  Nr   r   333333@r9  )boundsr   r   )r^   mgridr  r   r  r'   r   rd  rW  apply_aspectindicate_insetrr  r   r  )dxdyr1   r0   r  r+   r!   r|   r}   rR  insetxxr  r#   
test_insetrg    s7    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#;  
!Br%   c                  s   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        \         P*                  ! RR.RR..4      p
\         P*                  ! RR.R	R
..4      p
\         P,                  P/                  VP1                  4       P3                  4       V
RR7       R#   + '       g   i     L; i)rA  Nr   r   r^  r9  r   g=
ףp=?gKXc'?g(\?g?g-C6?Zrtolr   )r  r  r+  r+  )r^   r`  r  r   r  r'   r   rd  rW  ra  r6  r  r  Z
get_aspectr   rA  r   r  Zindicate_inset_zoomrr  r   r  r   r   rZ  
get_points)rc  rd  r1   r0   r  r+   r!   Zaxin1Zrec
connectorsrf  r  r#   test_zoom_insetrk  (  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	C":#;  
!B 
FH%H%' 
(BJJ'')2D  : 
8	7s   II	zinset_polar.pngc                  s   \         P                  ! 4       w  rVP                  . RORR7      p\        P                  ! ^ ^R4      p^\        P
                  ,          V,          pVP                  WC4       VP                  WC4       R# )r   Tr%  r{  N)r   r   r  r  )r'   r   r6  r^   rf   r   r   )r  r!   axinsr  r  rP  r#   test_inset_polarrm  J  s_    LLNEAMM0M=E 			!QAIMEGGE	JJur%   c                  s^    \         P                  ! 4       w  rVP                  . RORR7      pR# )r   Zhammerr  Nr   r   r   r   )r'   r   r6  r  r!   rl  r   r#   test_inset_projectionrp  W  s"    LLNEAMM.8MDEr%   c                  sz    \         P                  ! 4       w  rVP                  . RO\        P                  R7      pR# )r   )rC  Nrn  )r'   r   r6  AAr   ro  r   r#   test_inset_subclassrr  ]  s&    LLNEAMM.277MCEr%   
x_inverted
y_invertedc                sh   \         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pR# ^pR# )zJ
Test that the inset lines are correctly located with inverted data axes.
r   N)r   r   r  rW  r   )	r'   r   r^   rf   r   r>  r?  rb  rj  )rs  rt  r+   r   r   r0   re  Z
lower_leftZ
upper_leftZlower_rightZupper_rightZsign_xZsign_ys   &&           r#   test_indicate_inset_invertedru  c  s     ll1a(OC#
		"AHHQ3|S1E7<7G7G4JKR1FRF1Fr%   c                  s   \         P                  ! 4       w  rVP                  R 4       VP                  . RORR7       VP                  R4       VP                  . RORR7       VP                  R 4       VP                  . RORR7       R# )r#  r~   r  r   r  ZactiveN)r   r   ry  ry  )r'   r   rW  r0  r*   r,   r#   test_set_positionrv  }  sf    llnGCMM"OO(O7MM"OO(
O;MM"OO(O9r%   c                  s   \         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# )r  r:  NFgư>rh  )r  r  r+  r+  )r'   r   r.  rJ   r*  rr  r)  _set_view_from_bboxr^   r   r   ri  rZ  r   r#   !test_spines_properbbox_after_zoomrx    s    llnGC				+	+CJJ,C,C,E	FB//
))


,
,SZZ-D-D-F
GCJJr}}0@tLr%   c                  s   \         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  Zatolr   Nrb  r   )r   r   )r  r  r   )r  r  r   )gB!Bؿg{?)g      ڿg     ?)r  r  r   )
r'   r   r  r  rw  r^   r   r   r   r   )r+   r!   r|   r}   r  Znew_ylimZres_xlimZres_ylimrU  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                  s2   \         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# )r5   r4  i  N)r'   r   r   rG  r^   rE  rr  r)  r   r   rY  rh  )r+   r!   r+  r   r#   test_gettightbbox_ignore_nanr|    sb    llnGCC GGBFFAuzz&&(HJJr//9??Er%   c                 s:   \        ^
^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# )r  r  r~  N)r5   r5   r5   r5   r5   r    r    r    )r   r  r^   r_   r  r'   r6   )re  rd  r0   r1   r8   r  r#   "test_scatter_series_non_zero_indexr}    sv    
B-C
		"))###+3	7A
		"))###+3	7A
		*#	6AKKar%   c                  sh    \         P                  ! . . 4       \         P                  ! . . . . R 7       R# ))r  r8   N)r'   r6   r   r%   r#   test_scatter_empty_datar~    s"    KKBKKB"#r%   zannotate_across_transforms.png)r   rK  r   c                  s,   \         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    rw  r   Fr   r  )r  )r~  r  r  r  r  N)gQ@rV  )ry  r   r   r   rw  )r^   r   rs  r   r'   r   r   r6  rW  r   r   r   r  	transDatar   r  )r0   r1   r+   r!   rl  rP  r#   test_annotate_across_transformsr    s     	Ar3A
r
RVVAYAll9-GCGGAMMM./E	S	KKE"	KKE"KK##'",,%//40  2r%   c                   s:   a  ] tR tRt o ^t^tR tR tR tRt	V t
R# )_Translationi  c                s    Wn         R # r   rc  )r  rc  r   r#   r`  Z_Translation.__init__  s    r%   c                s&    WP                   ,           # r   r  )r  r  r   r#   r   Z_Translation.transform  s    r%   c                s.    \        V P                  ) 4      # r   )r  rc  r  r5  r#   r  Z_Translation.inverted  s    TWWH%%r%   r  N)r   r!  r"  r#  Z
input_dimsZoutput_dimsr`  r   r  r$  r%  rN  rO  r#   r  r    s#     JK & &r%   r  zsecondary_xy.pnggS㥛?c                  s   \         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# )r5   T)r  r  c                     \         P                  ! R R7      ;_uu_ 4        ^V ,          uuRRR4       #   + '       g   i     R# ; irB  rC  Nr^   rD  r  r5  r#   invertZ!test_secondary_xy.<locals>.invert  '    [[))q5 *)))	   	4A	r   Z	functionsry  c                 s    ^V ,          # r   r   r  r5  r#   r6  #test_secondary_xy.<locals>.<lambda>  s    Ar%   c                 s    V ^,          # r  r   r  r5  r#   r6  r    s    Qr%   r  c                 s    V ^,          # r  r   r  r5  r#   r6  r     s    1r%   c                 s    V R,          # r  r   r  r5  r#   r6  r     s    Cr%   r  r:   r>   g      @r  Nr0  )
r'   r   rL  r   r^   rf   secondary_xaxissecondary_yaxisr  r  )r+   rN  r  nnr!   secaxr   r#   test_secondary_xyr    s     ||Aq'dKHC C.
		!R "))Ar"237&&E&&Ecf-.co?@cn.@ABc
rQweG|AGdbll+ !r%   c                  s0   \         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                 s    ^V ,          # r5   r   r  r5  r#   r6  Z%test_secondary_fail.<locals>.<lambda>
  s    QUr%   r  Nr>   rJ   Zerrorr  )r'   r   r   r^   rf   r   r   r  r  r  r   r*   r,   r#   test_secondary_failr    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                  s   \         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# )	r  rw  c                 r  r  r  r  r5  r#   r  Z%test_secondary_resize.<locals>.invert  r  r  r:   r  Nr0  )r  rW  r  )r'   r   r   r^   rf   r  rr  r   r  r   rZ  rh  )r+   r!   r  r   r#   test_secondary_resizer    s    ll7+GCGGBIIabii2./ u(89JJOOBOO%--/EFr%   c                  s   \         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                  4        VP                  R4       \         P                  ! 4        VP                  R4       \         P                  ! 4        R# )	r  rw  c                 r  r  r  r  r5  r#   r  Z'test_secondary_minorloc.<locals>.invert%  r  r  r:   r  r   r  Nr0  )	r'   r   r   r^   rf   r  rG  r  r   )r+   r!   r  r  r   r#   test_secondary_minorlocr  !  s    ll7+GCGGBIIabii2./ u0@AE 
 MM%HHJ MM(HHJr%   c                  s   \         P                  ! 4       w  rVP                  R 4       VP                  R4      pVP                  P                  \        P                  ! 4       4       V P                  P                  4        R# )r   r:   N)
r'   r   r  r  r   r   r   ZScalarFormatterrr  r   r+   r!   r  r   r#   test_secondary_formatterr  9  sT    llnGCMM%u%E	KK##G$;$;$=>JJOOr%   c                  sV    \         P                  ! 4       w  rVP                  R 4      pR# )r:   Nr'   r   r  r  r   r#   test_secondary_reprr  C  s    llnGCu%Er%   zaxis_options.pngc            
      s   \         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   rx  r  r  N)ZscaledrT  imager   )r5   g	@)r   r   )r5   g      @)r5   r   )r   r  )r'   r   rL  r   r   r   r  r  )r+   r  r   Zoptionr   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                s   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  r1   r   N)rh  rg  r   r   r   r   r  r   r   r9  r  )rJ   r:   rK   r>   )rr  r   r)  rL  r   r   rY  r  r  rB  rC  rh  rg  r   r.  r*  )r+   r!   r+  bbaxisr  Zaxxr[  Zaxisrbbspinesr   ZspinerrO  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                  sn   \        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  ry  r  Nё\]@r        @gR!@r  r  r  r  g]@r  r  )g+e`U@gbhR@g{G@g{Gȏ@)r	   r'   r   rr  r   r  r  rL  rS  Bboxfrom_boundsr   r_  rZ  ZtransformedtransFigurer*  )r+   r!   r  r  r  r  rI  r  r   targetbbZaxbbr  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                  s   \        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  rgK  	  . 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  ZxticklabelsZyticklabelsNr{  ry  r  r  r  r  r  r  )r        ^@r  r  )r	   r'   r   rr  r   r   r  rL  rS  r  r  r   r_  )
r+   r!   r  r  r  r  r  r   rI  r  r  r#   test_nodecoratorr    s*   	-u5	6	6,,37


22.'23';$$	 
7 6"A" 	(#(,	F 8$##//<(//= % 7F++V4HDKKt<%F++V4HDKKt<5 
7	6	6s   AE::F	c                  s2   \        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{  ry  r  )r  r  )r        8@r  gs~8&@r  r  r  r  )r  r  r  g     @)r	   r'   r   r   r.  rJ   r0  rr  r   r  r  rS  r  r  r   r_  )
r+   r!   r  r  r  r  targetsrI  Zbbspiner  r  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            
     s>   . 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  rl  r{  ry  N)r  r  r  +e8&@)r  r  r  r  )r  gZӼ8[@r  88&@)g r\a@r  r  r  )r  gqq\@r  r  )g88b@r  r  r  )r:  rk  Zinoutr  )rL  r	   r'   r   r1  rr  r   r  rS  r  r  r   r_  )r  ZdnumZdirsr+   r!   r  r  r  r  r  r   r  r  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            	      s
   \        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~   rk  )r  r;  r{  ry  r  r  Nr  )r  g88[@r  r  )gCiq\a@r  r  r  )r  gPUUUUUB@r  gVUUUUT@)gz6P@r  goTT@r  )r	   r'   r   rr  r   r1  r  r   rS  r  r  r   r_  rG  )	r+   r!   r  r  r  r  r  r(  r  r'  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                 s,   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# )i   FrX  TZonN)r   r   r   r"   r#   test_axis_bool_argumentsr     su     ""5)!!%(			c	"BGGENGGDM!!$'r%   c                  sj    \         P                  ! 4       w  r^p^
p^p^pVP                  W#WE.4      pR# r  r'   r   r   r+   r!   r\   r]   r  r  r  r   r#   test_axis_extent_argr  *   s6    llnGCDDDDWWd$-.Fr%   c                  sj    \         P                  ! 4       w  r^p^
p^p^pVP                  W#WER7      pR# )r  )r\   r]   r  r  Nr  r  r   r#   test_axis_extent_arg2r  :   s5    llnGCDDDDWW$W@Fr%   c                  sH    \         P                  ! . RO. RO.RR7      w  rp R# )r5   r  r  Nrv  )rV  rW  r  r8  )r'   r  r  r  r,   r#   test_hist_auto_binsr  K   s    9l3&AJAQr%   c                  s   \         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   rB  r  Nrv  )r'   r   r^   rE  r  rD  r   r   )
r+   r   r   rm  Znan_datar  r  r  ZnanbinsZnanedgesr  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                  sz    \         P                  ! \        P                  P	                  ^
4      RRRR7      w  rp R# )r  r  T)r   r  Nrt  )r'   r  r^   r_   rn   r  r,   r#   test_hist_range_and_densityr  _   s*    "))..,f &6JAQr%   c                  s    \         P                  ! 4       w  r. ROpVP                  W"V^^R7      pVP                  P                  w  rEpVP
                   F  pV F  pK  	  V F  p	K  	  K  	  R# )r5   )r0   rg  r  r<  r  Nrv  )r'   r   ri  r  r  r   )
r+   r!   r0   ZbarcontZ	data_lineZcaplinesZbarlinecolsri  ZcaplineZ
barlinecolr  r#   test_bar_errbar_zorderr  f   s^     llnGCAffqAaf@G'.'7'7'='=$IGx%J+ r%   c                  s    \         P                  ! 4       w  rVP                  4        VP                  R R.4       VP                  R.4       R# )r   r  Nr   )r'   r   r>  r  r*   r,   r#   test_set_ticks_invertedr  u   s7    llnGCOOMM2r(MM2$r%   c            	      s"   \         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R# )r  rw  ry  r  r   logitrQ  r,  r|   r$  r}   r{   rR  Nr  )r5   r  )F]tE?g'^P?)	r'   r   r   r   r   r  r  Ztransform_bboxrZ  )r+   r!   r   r   r#   $test_aspect_nonlinear_adjustable_boxr  ~   sy    
**X
&C		BGGRHr2hFF%g  ' JJqM
//
(
():
;Cr%   c            	      s    \         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        R# )r  rw  ry  r  r   r  rV  r  Nr  r  )r5   r  )gbeF?r  )r'   r   r  r   r   r  ra  r*   r,   r#   (test_aspect_nonlinear_adjustable_datalimr     sl    
**X
&C	&	'BGGRHr2hFF%h 1	  + JJqMOOr%   c                  s   \         P                  ! 4       w  rVP                  4       pVP                  ^R.4       VP	                  ^4       \         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# )r  iX  r  rQ  rT  N)r'   r   r   r   set_box_aspectr  rW  rr  r   rZ  r   rh  )rd  r   Zaxtwinre  r   bb1Zbbtr\  rU  r#   test_box_aspectr     s     IDYY[F
KKS	q IDKKNHHaVaVNN7uN-KKKK



C



C



Cs{{CKK0s{{CKK0r%   c                  sB   \         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   r0  rr  r   r  rZ  r   rh  )rd  r   re  r   r  r\  r   r#   test_box_aspect_custom_positionr     s     ID)*KKrIDrKK)*KKKK



C



Cs{{CKK0r%   c                  sx   \         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  r  N)r'   r   r  rr  r   r)  rM  r*  r  rh  rg  r   )r+   rN  r+  r}  r!   r[  r   r#   test_bbox_aspect_axes_initr     s     ||AqTQ-?/35HCJJOOzz&&(HEhh!!(+bhh		*+  E8$r%   c                  s   \         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 positiver  Nr   )r'   r   r   r   r  rW  r^   r  r*   r,   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                  s    \         P                  ! ^^4      w  rVP                  . RO4       V P                  P	                  4        VP                  4        R# r  )r'   r   r   rr  r   Zredraw_in_framer*   r,   r#   test_redraw_in_framer     s:    ll1a GCGGIJJOOr%   c                  sV    \         P                  ! 4       w  rVP                  R 4       R# r   )r'   r   r   r*   r,   r#   test_invisible_axes_eventsr     s    llnGCNN5r%   c                      R \         P                  R&   \         P                  ! 4       p V P                  P	                  4       pV F  pK  	  R# rp  lines.markeredgecolorNr'   r   r  r   get_major_ticksr!   r  rK  r   r#   "test_xtickcolor_is_not_markercolorr     5    ,3CLL()	BHH$$&Er%   c                  r  r  r'   r   r  r   r  r  r   r#   "test_ytickcolor_is_not_markercolorr     r  r%   r   r  c                 s   \         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       VP                  P                  4        \        V! 4       R
4       R# )r  r   Zget_autoscaleZ_onr   ZlimZget_N)r  r  rz  )
r'   r   r^   rf   r   r6   r   rr  r   r   )
r   r  r+   r!   r0   r1   Zget_autoscale_onZset_limZget_limZ	post_autor;  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                 sp   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   r^   r   Zget_pathZ_interpolation_stepsr   )r   r    r  r"   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                  s    \         P                  ! 4       w  rVP                  ^ R4       V P                  P	                  4        R# )r    g&.>N)r'   r   ri  rr  r   r*   r,   r#   test_autoscale_tiny_stickyr  "!  s*    llnGCFF1dOJJOOr%   c                      R \         P                  R&   R\         P                  R&   \         P                  ! 4       p V P                  P	                  4       pV F  pK  	  R# )r  rF  r   rJ  Nr  r  r   r#   &test_xtickcolor_is_not_xticklabelcolorr  *!  C    "*CLL'-CLL#$	BHH$$&Er%   c                  r  )r  ytick.colorr   ytick.labelcolorNr  r  r   r#   &test_ytickcolor_is_not_yticklabelcolorr  4!  r  r%   c                      R \         P                  R&   \         P                  ! 4       p R\         P                  R&   R\         P                  R&   \         P                  ! 4       p R# )r   rJ  r  rF  inheritNr'   r   r  rq  rE  r#   test_xaxis_offsetText_colorr  >!  sF    '-CLL#$	B #+CLL'0CLL#$	Br%   c                  r  )r   r  r  r  r  Nr  rq  rE  r#   test_yaxis_offsetText_colorr  I!  sF    '.CLL#$	B #(CLL'0CLL#$	Br%   r  c                 s<   V \         P                  R &   V \         P                  R&   \        P                  ! 4       w  rVP                  P                  4        \        RR.VP                  VP                  .4       F  w  r4VP                  4        F  pK  	  K  	  R# )rI  zytick.labelsizer0   r1   N)
r   r   r'   r   rr  r   r  r   r   r  )r  r+   r!   Znamer   rK  r  r#   test_relative_ticklabel_sizesr  T!  sr     '+CLL"#&*CLL"#llnGCJJOO3*rxx&:;
((*D* <r%   c                  s    \         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R# )r   r  r[  N)iPF  iJG  iDH  i>I  )r   rV  r   rV  r=  )r'   r   r   r   r   r   )r+   r   r   r|   r   r#   test_multiplot_autoscaler  b!  sK    
**,C||Aq|/HCHH)<8KKA<<>Dr%   c                  s    \         P                  ! 4       p V P                  ^4      pV P                  . ROVR7      pVP	                  4       pV P                  ^ R7       R# )i   r[  rK   N)r  r  r   r   )r'   r   r   r  rZ  r  )r+   r  r   Zinit_posr   r#   $test_sharing_does_not_link_positionsr  k!  sM    
**,C
//#
C
,,',
4C!HQr%   c           	      sV   \         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  r9  r  Nr  r   r   r  )r^   r  r   r   r   r   rA  r6   r  r  rf   ri  )r   r    r   rN  r   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                 s   \         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# )ry  r{  Tr^  N)r^   rf   r   r   r   rM  r   r;  )r   r    r0   r1   rN  r!   r   r#   test_shared_axes_clearr  !  s    
		#qw%A
q	A


1aT

:Chh
  

Aqd

;Chh


 r%   c                  s@   \         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K  	  VR,          P                  . RO4       VP                   F  pK  	  R# )r   r  r^  zo-Nr7  )rb  r    r5   r   )rb  r    r   r9  )r'   r   rM  r   r  r  r  r   r#   test_shared_axes_retickr  !  sx    ||Aqu=HChh
A  I*+hhh I*+hhhr%   rA   c                 s    \        4       pVP                  4       pVP                  R ^V R7       VP                  P	                  R4       R# )Ztestr@   r>   N)r   r   r)   r   Zset_label_position)rA   r+   r!   rf  r#   test_ylabel_ha_with_positionr  !  s8    
(C	BMM&A"M%HH(r%   c                      \         P                  ! 4       p ^^.^R.r!V P                  W4      pV P                  V4      pR# r5   Nr'   r  ri  	bar_labelr!   rS  ZheightsrQ  r|  rP  r#    test_bar_label_location_verticalr  !  s8    	Ba&1b'FF2E\\% Fr%   c                      \         P                  ! 4       p V P                  4        ^^.^R.r!V P                  W4      pV P	                  V4      pR# r  )r'   r  r?  ri  r  r  rP  r#   *test_bar_label_location_vertical_yinvertedr  !  sB    	BOOa&1b'FF2E\\% Fr%   c                  r  r  r'   r  rj  r  r!   rT  ri  rQ  r|  rP  r#   "test_bar_label_location_horizontalr   !  s8    	BQ!RGGBE\\% Fr%   c                  r  r  )r'   r  r?  rj  r  r  rP  r#   ,test_bar_label_location_horizontal_yinvertedr  !  B    	BOOQ!RGGBE\\% Fr%   c                  r  r  )r'   r  r>  rj  r  r  rP  r#   ,test_bar_label_location_horizontal_xinvertedr  !  r  r%   c                  s    \         P                  ! 4       p V P                  4        V P                  4        ^^.^R.r!V P	                  W4      pV P                  V4      pR# r  )r'   r  r>  r?  rj  r  r  rP  r#   -test_bar_label_location_horizontal_xyinvertedr  !  sL    	BOOOOQ!RGGBE\\% Fr%   c                  s    \         P                  ! 4       p ^^.^R.r!V P                  W4      pV P                  VRR7      pR# )r5   rR   Z
label_typeNr  r  r  rP  r#   test_bar_label_location_centerr  "  s<    	BQ!RGGBE\\%H\5Fr%   z%test_centered_bar_label_nonlinear.svgc                  s    \         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# )r8   r   NrR   r  )r8   r   r   )r  i  iX  )r'   r   rj  r  r  r  r  )r  r!   r  r   r#   !test_centered_bar_label_nonlinearr  "  sT    LLNEAGGO-BCMMM%KK4LL8L4OOr%   c                  s   \         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    r  )r.   rK   rR   r  Nr  )r  r  r  )r'   r   r  rj  r  r  r}  )r+   r!   Zlastr.   r  r  r   r#   +test_centered_bar_label_label_beyond_limitsr  "  sn    llnGCDO\:uE
]x8 ; KKb r%   c                  s    \         P                  ! 4       p ^^.^R.r!V P                  W^R7      pV P                  V4      pR# )r5   rR  Nr  r  r  rP  r#   !test_bar_label_location_errorbarsr	  &"  s<    	Ba&1b'FF2QF'E\\% Fr%   r  r  z{:.2f}c                 s    \         P                  ! 4       pVP                  ^^.^R.4      pVP                  W R7      pR# )r5   r  Nr  r  )r  r!   rQ  r|  r  r#   test_bar_label_fmtr  3"  s7     
BFFAq6Ar7#E\\%\)Fr%   c                  s   \         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)r5   zstr or callabler  r
  Nr  )r'   r  ri  r   r   r   r  )r!   rQ  r  r   r#   test_bar_label_fmt_errorr  >"  sX    	BFFAq6Ar7#E	y(9	:	:LLBL' 
;	:	:	:s   A..A?	c                  s    \         P                  ! 4       p V P                  ^^.^R.4      pV P                  VRR.R7      pR# )r5   r  r  r{  Nr  r  )r!   rQ  r|  r   r#   test_bar_label_labelsr  E"  s;    	BFFAq6Ar7#E\\%c
\3Fr%   c                  s    \         P                  ! 4       p V P                  ^^.\        P                  ^.4      pV P                  V4      pR# r   N)r'   r  ri  r^   rE  r  r!   r  r|  r   r#   test_bar_label_nan_ydatar  M"  s7    	B661a&2661+&D\\$Fr%   c                  s    \         P                  ! 4       p V P                  4        V P                  ^^.\        P
                  ^.4      pV P                  V4      pR# r  )r'   r  Zyaxis_invertedri  r^   rE  r  r  r   r#   !test_bar_label_nan_ydata_invertedr  V"  sC    	B661a&2661+&D\\$Fr%   c                  s&   \         P                  ! 4       w  rVP                  . RO\        P                  ^^.. ROR7      pVP                  V4      p\         P                  ! 4       w  rVP                  . RO. ROR\        P                  R.R7      pVP                  V4      p\         P                  ! 4       w  rVP                  . RO\        P                  ^^.\        P                  \        P                  R.R7      pVP                  V4      pR# )r5   r   r  rR  Nrv  r  r   )r'   r   ri  r^   rE  r  )r+   r!   r  r|  r   r#   test_nan_barlabelsr  `"  s    llnGC66)bffa^/6BD\\$F llnGC66)Yc2663-?6@D\\$F llnGC66)bffa^26626632G6HD\\$Fr%   c            
      s   \         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    r  r   rX  gffffff?rA  N)r    r   g)r'   r   r  r  ZWedger^   r   r   r   Zassert_array_almost_equal_nulpr  ZdataLimr_  )r+   r!   Zbotr   r#   test_patch_boundsr  t"  s    llnGCLLr3cBC
bffRXc\"A%
%CJJ--
&CH+tSW56

8I8I2Or%   c                  s    \         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/edgecolorsr  r  r+  r  r   )ru   r  r   r   N)r   rA  r  r'   r6   r   r%   r#    test_warn_ignored_scatter_kwargsr  |"  sM    	k@
B 
BQC!SC3#N
B 
B 
B 
Bs   AA	c            
      s   \         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\        P                  ! \        RR7      ;_uu_ 4        VP                   \#        V4      ^,           ,           RRR4       VP%                  4        VP%                  4        VP%                  4        VP%                  4        VP                    F  pVP%                  4        K  	  R# u upi   + '       g   i     Lz; i)r8  r  zout of ranger  Nr  r  r7  )r'   r   r   r   r^   rf   r6   r   r  r  r  r  rG  r   r   Z
IndexErrorr  r:  r  )	r+   r!   r   r  r  rs  r  rG  r  r'  r#   test_artist_sublistsr  "  s&   llnGC6;Ah?hWWRYYqa%()!,,hE?
**RYYq\299Q<
0C	288F#	$BLL++FAq9:E771aD 
z	8	8
Ua  
9 JJLIIK	LLN 	KKM hh
		 O @" 
9	8s   ;F0$F55G	c                  s    \         P                  ! ^
4      p \         P                  ! R4      p\        P                  ! 4       w  r#VP	                  W4      p\        P                  ! 4       w  r#VP	                  . . 4      pR# )r  N)r  r    )r^   r   r'   r   r   )r0   r1   r  r!   r  rP  r#   test_empty_line_plotsr  "  sU    
A
ALLNEA771=D LLNEA772r?Dr%   z
fmt, matchstringc                 s$   \         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)NZnotzneither a data key norz\Az\Zr  r  r  )r'   r   Zreplacer   r   r  r   )r  r  rm  r+   r!   rh  r#   test_plot_format_errorsr  "  sb     llnGCe%=>	z)>	?	?
#) 
@	?	?	?s    A>>B	c                  s   \         P                  ! 4       w  rVP                  . ROR4      p\         P                  ! 4       w  rVP                  . ROR4      p\         P                  ! 4       w  rVP                  ^^.^^.RR4      pV P                  P	                  4        \         P                  ! 4       w  rVP                  ^^.^^.RR4      pV P                  P	                  4        \         P                  ! 4       w  rVP                  . ROR4      p\         P                  ! 4       w  rVP                  . ROR4      pR# )r5   z1.0r   Zk3z.C12:Nrv  )r'   r   r   rr  r   r  r   r#   test_plot_formatr  "  s    llnGC779e$D llnGC779c"DllnGC77Aq6Aq65#.DJJOO llnGC77Aq6Aq63.DJJOO llnGC779d#D llnGC779g&Dr%   c                  sd   \         P                  ! 4       w  rVP                  R RR^/R7       VP                  4       pV P                  P                  4        \         P                  ! 4       w  rVP                  R RRR^/R7       VP                  4       pV P                  P                  4        R# )r   r   r  r  r8   N)r'   r   r   rD   rr  r   )r+   r!   Zlegr   r#   test_automatic_legendr  "  s~    llnGCGGCC8G$
))+CJJOO llnGCGGCcaG)
))+CJJOOr%   c            
      s   \         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 keywordr  r  Nzplot\(\) with multiple groupsr   Z2r  zx and y must have same firstzx and y can be no greater thanzUsing arbitrary long args withr   r   r8   r  r  rv  rE  )r   r   r   )r   r   r   r'   r   r  r^   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            
      s   \         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 F  pRpV! VR7      P                  pK  	  R# )rV  r  )climN)r  r  )r'   r   r   r   r6   r   r   r  rd  rw  r  )r!   Zplot_methodr  r  r   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 %**r%   c                  s   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        R# r  )mpathr   r   ZCURVE3Z	CLOSEPOLYr'   r   r  r  r   r  )rb  Zcodesr   r+   r!   rP  r#   test_bezier_autoscaler   #  s     !WWVVE ZZZZZZZZ!!#E 	

5 AllnGCLL##A&'LLNr%   c                  s   \         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        R6# )\g@ry  r{  r  g{Gz?r  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?r  g(\?r  gQ?gGz?g=
ףp=?gffffff @r  gGz@rA  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rb  g(\տg
ףp=
ǿg{Gz)r  r    )r  r5   )r^   r  r  r  r  r   r'   r   r  r  r   r  )rb  ZminxZminyZmaxxZmaxyr   r+   r!   rU  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&'LLNr%   c                  s    \         P                  ! 4       w  rVP                  \        P                  ! ^
4      4       \        ^
4       F  pK  	  R# r  )r'   r   r   r^   rf   r   )r+   r!   r  r   r#   test_get_xticklabelr#  c#  s.    llnGCGGBIIbMRyyr%   c                  sv   \         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rV	 F  p
K  	  K  	  R# )rV  rZ  r!  r  r  N)r   r   r   )	r^   rf   r]  r  rE  r'   r   ri  rj  )ZbarxZ
barheightsZ	barstartsr+   r!   r  ZhbarsZbar_setZnanfulZrestr   r  r#   test_bar_leading_nanr$  k#  s    99Qe$D/*J$"IffDGllnGC66$965DGGD9G5E= A !r%   c                 sx   \         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   ri  r^   rE  r  rH  r   r#   test_bar_all_nanr%  #  s    IIMM'!GFKK266(#KKaS
JJsQC!
JJsQCr%   zextent_units.pngc            	      s   \         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-01r  z
2020-01-11zDate extents on y axisrt   Zplasma)rv   r  rx   z(Date extents on x axis (Day of Jan 2020)z%dzDay of Jan 2020)r&  )rv   rx   z set_extent\(\) got an unexpectedr  Fr  Nr7  rt  rw  r  )r'   r   r^   r  r   r3   r   r   r  r   r   r  ZDateFormatterr   Z
set_extentr   r   r   )r  rN  Z
date_firstZ	date_lastrt  r   r  rs  rU  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                  s    \         P                  ! 4       w  rVP                  . . . . 4      pVP                  ^..4      pW#.,            F  pK  	  VP	                  4        W#.,            F  pK  	  R# r  )r'   r   r   r   r;  )r+   r!   r  r  ZartrP  r#   %test_cla_clears_children_axes_and_figr(  #  sZ    llnGCGGBB#E
))aSE
Cu}}} HHJu}}}r%   c                  s    \         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# )r5   r	  r  N)r5   r    r   r5   r  rY  )r'   r   r6  r   r  r   )r+   r!   ZmarginalZmarginal_twinr   r#   test_child_axes_removalr)  #  sG    llnGC}}]2}6HNN$MOOFFhF'r%   c            
      s    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   r7  r   r   r%   r#   r8  Z5test_scatter_color_repr_error.<locals>.get_next_color#  rR  r%   zZ'c' argument must be a color, a sequence of colors, or a sequence of numbers, not 'red\\n'r  zred
NrW  )r   r   r  r   r  r   r?  )r8  Zmsgr8   r   r#   test_scatter_color_repr_errorr*  #  s_    8  
z	-	-//tBa^ 	0 	M 
.	-	-	-s   1A%%A6	c                  s.   \         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)r  r  r  )r  N)r'   r   Zset_rasterization_zorderr   r   r  r   r!  )r+   r!   r  r   r   r#   &test_zorder_and_explicit_rasterizationr+  #  s`    llnGC"
''%(tA'
6CB	Ae$ 
s   %BB	zpreset_clip_paths.pngc            
      sV   \         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# )r5   z#ddffddz#00ff00r   )r   r   r   r  T)clip_onrQ  r  )r   r,  rQ  z#beefc0r   z#faded0)r   r  r   r   r,  rQ  r  r   rx  )r  r  r,  rQ  r  r1   )r   r   r   r  r,  rQ  r&  Nr   r  r  )rb  rb  r  )r  r  )r   r  )r'   r   r   r   ZPolygonr  r  r   Zset_path_effectsr
   ZwithTickedStroker   r  r  r  )r+   r!   Zpolyr  Zpoly2Zpoly3r   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                  s    R \         P                  R&   ^\         P                  R&   R\         P                  R&   \        P                  ! 4       p R# )r  zaxes.labelcolorzaxes.labelsizer  zaxes.labelweightN)r   r   r'   r  rq  rE  r#   test_rc_axes_label_formattingr.  $  s:    &+CLL"#%'CLL!"'-CLL#$	Br%   c                 sX   \         P                  ! ^ \         P                  ) \         P                  ) \         P                  ^^^.4      p\        \	        V4      4      pV P                  ^^4      p\        VRR.4       FP  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KR  	  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    r  rL   rM   r  r  Tr  )rm  rN   ZcomplementaryZcompressr  r  )dsz	steps-pre)r/  r  N)r  r  r  r  rV  r    )r^   r  r  r   r:  r   r  ecdfr   r   rf   )
r   r    rm  rb  r   r!   rN   Zl0Zl1r   r;  r#   	test_ecdfr1  $  s   88Q"&&"&&!Q:;DCIG  A&Hx*l)CDWWTW3WWS#S"%%++d*;S'$J!,#'$3  @ 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            	      s   \         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)r5   NTFr  )	r   r   r  r'   r0  r^   rE  r   r  r   r%   r#   test_ecdf_invalidr2  *$  sy    	z	"	"!RVV 
#	z	"	"aV4-89 
#	" 
#	"	"	"	"s   'B84:C8C	C	c            
      s   \         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       R# )r    r{  r   g333333?ro  r  r   r  )r   r   r  r   )rr  r   r  r   N)r'   r   r^   rf   r   r   r   r   r   rh   rf  r  )r+   r!   r0   r1   Z	thresholdZoriginal_limsr   r#   test_fill_between_axes_limitsr3  1$  s    llnGC
		!QY%ABFF1IAIGGAG [[]BKKM2MJJyASJ9OOAq!1=!8N8N8P  Rr%   c                  s,   \         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K  	  R
# )r5   zX label in Impact fontZImpact)ZfontnamezY label in xkcd scriptzxkcd scriptr  Z	monospace)r   labelfontfamilyzTitle in sans-serifNrU  )r'   r   r   r(   r)   r1  r/   r  )r+   r!   rG  r   r#   test_tick_param_labelfontr5  A$  sm    llnGCGGL,'MM*XM>MM*]MCNNkN:II#$""$$r%   c                  sZ    \         P                  ! 4       w  rVP                  R RR7      pR# )r:   r  r  Nr  )r+   r!   Zsaxr   r#   test_set_secondary_axis_colorr6  L$  s$    llnGC


U%

0Cr%   c                  s0   \         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       R# )r   Tr^  Zxlim_changedZylim_changedr  N)r'   r   Z	callbacksZconnectrq  r   )r+   rN  Zeventsr   r#   test_xylim_changed_sharedr7  V$  ss    ||Ad48HCFF^V]];F^V]];FJJQF!QJ(r%   zaxhvlinespan_interpolation.pngc            	      sj   \         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   rI  r  r   r   ro  )fcry  r   rp  )r8   r  r  r  )r8  r  r  r  N)r'   r   r   r  r  r  rh   r   rq  rE  r#   test_axhvlinespan_interpolationr9  _$  s    		!	!W	!	5BOOJJrTJJJr2$JJJr2r2$J'JJqDJ#JJr2$bJ)JJr2r2$bJ1r%   r  c           	     sx   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<  rh  r   zxkcd:wine redr=  r4  Zserifr  r?  r>  zxkcd:shocking pinkr@  zxkcd:fluorescent greenrA  r   rB  rC  r  rJ   Fr:   TrK   r>   r  r  r  r  r   Nr   )r   r1  r;  r  )r    r   r  rj   rk   rI  r  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%   :NrV  NZfinalz/https://github.com/python/cpython/issues/124538)Zreasonc                  s   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 F  pV ! V4       K  	  V F  p VP                  4        K  	  R# u upi   \         d     K-  i ; i)c                 s*   \        V .4      p\        4       p\        V4      ^ 8  dm   VP                  4       p\        P
                  ! V4       F@  p\        V4      V9   d   K  VP                  \        V4      4       VP                  V4       KB  	  K|  R# r4  )	r   r   r:  ZpopleftgcZget_referentsZidZaddrq  )r\  Zto_visitZexploredZparentchildr  r#   assert_not_in_reference_cycleZFtest_axes_clear_reference_cycle.<locals>.assert_not_in_reference_cycle$  ss    %>5(ma%%'F))&1e9(RY'& 2  r%   r  N)r   r   r^   r_   rn   r   r6   Zget_childrenr;  r=  r   r   r  ZNotImplementedError)	r=  r+   r!   r  Zax_childrenr   Zbig_artistsZ
big_artistr<  r'  r#   test_axes_clear_reference_cycler>  $  s    
' (C		BYY^^D!FGGFJJv//#KIIK aa&.12 	
;  
 "
%j1 " 	LLN  # 		s   C&CC  C/.C/c                  s   \         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                  V . R	OR7       R#   + '       g   i     L.; i)
rT   T)r  r  r
  zhas been renamed 'tick_labels'r  r{  N)Ztick_labels)r  rV  r  r  r  )
r^   r_   r`   r'   r   r   rA  r   r  rd  rl  r   r#   test_boxplot_tick_labelsr@  $  s     IINN899G$D||!1T:HC	c66>
@ 
@AtO4
@ FNN4_N5
@ 
@s   CC	c                 s    . 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%%ZusetexT)rq  r  z%1.0f\%%N)r  r  r)  )r   r|  )r   r    rm  r!   r   rH   r#   test_latex_pie_percentrA  $  sS     D				BFF4x.>F?



CGGD+(D1AGBr%   c                 s   \         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                  VRR7       \         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)
r5   r  rT   rL   rM   z
vert: boolr  F)ZvertN)r'   r   r^   r_   r`   r   ra   r  r  r   rA  rB  r   r    r+   rN  ZstdZall_datark   rj   r  r#   test_violinplot_orientationrC  $  s     ||!1-HCIINN89>q"F#		  C-HFFh FhL9 IIK F	/|	D	D(/ 
E !Gx\:7 G. 
E	Ds   *D0/D55E	c           	      s   \         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                  VRR7       \         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)
r5   r  rT   rL   rM   z!was deprecated in Matplotlib 3.10r  zboxplot.verticalFN)r'   r   r^   r_   r`   r   ra   rd  r  r   rA  r   r  r	   rB  r  r#   test_boxplot_orientationrD  %  s(    ||!1-HCIINN89>q"F#		  C-HFFNN8 FNN8N6 IIK 
c66?
A 
A ^^/788%%'FNN8$ 9 ##%l;
A 
A+ G2 98	
A 
A 
As*   *E!)!E9
"E&	,+E9&E61E99F
	zuse_colorizer_keyword.pngrA  c            
      s   \         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    float32rZ  r  r  rx   )r8   	colorizer)rG  r-  )rG  r  Nr  r7  rt  r  ru  r    rV  rw  r  r   r  r    r5   r   rV  r  r8  r5   rV  NrW  NrL  r   r    r   r5   r  )r^   r_   r`   rf   r   r'   r   r   r  r[  rG  	Colorizerr6   r	  r   r  rd  rw  r  rR  rl  
tricontourr  tricontourffigimager  r   )rand_xrand_yr8   r+   r  r  clr   r#   test_use_colorizer_keywordrV  +%  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            
      s$   \         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    rE  rZ  r  rF  z5The `colorizer` keyword cannot be used simultaneouslyr  r  r  r   rx   r  r  r8   rG  Nr-  r  r7  rt  r  ru  rH  rw  r  r   r  rI  rJ  rK  rM  rN  r  )r^   r_   r`   rf   r   r'   r   r   r  r[  rG  rO  r   r   r  r6   r	  r   r  rd  rw  r  rR  rl  rP  r  rQ  rR  )
rS  rT  r8   r+   r  r  rU  Z	match_strZkwrdsZkwrdr  r#   test_wrong_use_colorizerrW  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                  s:   \         P                  ! 4       w  rVP                  . RO. R	O4      pV F  pK  	  VP                  . R
O. R	ORR7      pV F  pK  	  VP                  . RO. R	ORR7      pV F  pK  	  VP                  . RO. R	ORRR7      pV F  pK  	  R# )r5   r  r  r  r  r   )r   r   Nrv  rF  )r  r  r  )r  i   r  )i   r   i!   r6  )r+   r!   r  ri  r   r#   test_bar_color_precedencerX  %  s    llnGC 66)Y'Dt 66,	67Dt 66,	X6>Dt 66,	'6JDtr%   c                 s    \         P                  ! R R .RR..4      pV P                  V4      pVP                  . RO4       VP                  . RO4      pR# )ry  r   N)r  r  r   r   )rS  r  r  r0  )r   r    rg  rj   rk   rH   r#   .test_axes_set_position_external_bbox_unchangedrY  %  sQ     c3Z#s45D%G/045Fr%   c                  s    \         P                  ! ^ ^
^
4      p R\        P                  R&   Rp\        P
                  ! 4       w  r#VP                  V \         P                  ! V 4      RVR7      pV^,           F  pK  	  R# )r    r   r  r  r   )r  r'  Nr^   r   r   r   r'   r   r  r   )r0   r'  r+   r!   	errorbarscapr   r#   test_caps_colorr]  %  sb    
Ar2A,3CLL()FllnGCArvvays6BI |||r%   c                  s    \         P                  ! ^ ^
^
4      p R\        P                  R&   \        P
                  ! 4       w  rVP                  V \         P                  ! V 4      RR7      pV^,           F  pK  	  R# )r    r   r  r   rR  NrZ  )r0   r+   r!   r[  r\  rP  r#   test_caps_no_ecolorr^  %  s[    
Ar2A,3CLL()llnGCArvvays3I |||r%   r  )r6   r   rf  r  )Z
2d_x_inputZ2d_y1_inputZ2d_y2_input)Z
2d_y_inputZ2d_x1_inputZ2d_x2_inputr  )rW  r   )r0   rh  r.   r  r  r  )r  r  r   r?  )r  r  r  )r  r  r  )r  zdatetime.datetimeznp.datetime64)Nr   r  r  )r    r   r    r5   )r  r   r
  rJ  r  )r5   r5   r    )errorbar_basic.pngzerrorbar_mixed.pngr_  rv  rG  )rq  r  rs   )r  r  r  )r5   r   r   )r1   r    )r  r    )rI  r    ))r  )z
tab:orangeztab:pinkztab:cyanZbLacK)r  rJ  N)r5   r    r5   r   )Nr  rL   )Zvlines_basicZvlines_with_nanZvlines_masked)Zhlines_basicZhlines_with_nanZhlines_maskedr  )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)r7  TF)r  FTr  r  r   )r  )pie_linewidth_0r`  r`  r   )r   r  rw  r   ))rV  r  )r   r8  )r5   r   rW  r  r  r~  )rW  r  )rV  rW  )r  r   r  r  ))rK   r   )r   rR   )rK   rR   )zleft title movedzcenter title keptzboth titles aligned)TFN)r  r  r  )rK   rR   r>   ))r  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\))Z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\))rV  r  r    (  r>  r^  r   r   r  r  r   Z	functoolsr   r;  r  r  Z	itertoolsr   ZplatformZsysr  r   Zdateutil.tzrw  Znumpyr^   r   r   r   rP   r   r	   r
   Zmatplotlib.colorsr  rZ  Zmatplotlib.datesr{  r  Zmatplotlib.figurer   Zmatplotlib.axesr   r  r   Zmatplotlib.collectionsr   Zmatplotlib.font_managerZfont_managerZmfont_managerZmatplotlib.markersr  r  Zmatplotlib.patchesr   r  Zmatplotlib.pathr   r  Zmatplotlib.projections.geor   Zmatplotlib.projections.polarr   Zmatplotlib.pyplotZpyplotr'   Zmatplotlib.textrG  r  Zmatplotlib.tickerZtickerr   Zmatplotlib.transformsZ
transformsrS  Zmpl_toolkits.axisartistZ
axisartistrq  Znumpy.testingr   r   r   Zmatplotlib.testing.decoratorsr   r   r   Zmatplotlib.testing._markersr   r$   r-   r4   rI   rO   rQ   rS   rm   rr   r   r   r   r   Zmachiner   r   r   r   r   rK  rL  r   r   r  r  r  rD  rF  rI  rQ  r   rM  rY  r`  rc  rf  rk  rn  rp  rr  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.  r1  r2  r<  rA  rG  rK  rP  rV  r\  rc  r  rf   ri  rm  ru  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/  r3  r5  r7  r<  r=  rE  rG  rK  rM  rS  rT  rU  r[  r]  rg  rm  rt  r}  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  ZPatchr  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rP  rQ  r  rT  r  rV  rX  rY  ZCOLOR_TEST_CASESrZ  r\  rc  rf  ri  rj  rk  rr  rx  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  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/  r0  r3  r5  r=  r@  rA  rC  rI  rK  rM  rN  rO  rQ  rV  rW  r\  r^  r`  ra  rc  rj  rr  rv  rx  ry  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  r  r  r  r  r  r  r  r  r  rE  r  r  r  r  r  r  r  r  r  r  r"  r#  r)  r*  r,  r-  r2  r3  r4  r6  r9  rD  rL  rM  r  rh   r  r   rO  rP  rX  rY  r]  r_  r   r  r[  rd  rf  ri  rj  rm  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  r  r  r  Z	AxesImageZPcolorImager_   ZQuadMeshr   rn   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  Zfixturer  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  r2  r3  r5  r7  r;  r=  r>  rB  rD  rF  rH  rJ  rK  rL  rM  rN  rP  rQ  rR  rS  rT  rU  rV  rW  r]  rg  rk  rm  rp  rr  ru  rv  rx  r{  r|  r}  r~  r  Z	Transformr  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  Zfont_scalingsr  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  r2  r3  r5  r6  r7  r9  r:  ZskipifZversion_infoZreleaselevelr>  r@  rA  rC  rD  rV  rW  rX  rY  r]  r^  )r   r  s   00r#   <module>ra     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
