
    G8cq                        d dl mZ d dlZd dlmZ d dlmZ d dlm	Z	 d dl
Z
d Ze
j                  j                  dddd	d
dfdddddfdddddfdddddfddid
dfddiddfddiddfddiddfg      d        Ze	d        Zy)    )PathN)
TexManager)needs_usetexc                      dt         j                  d<   t               j                  dd      } dt         j                  d<   t               j                  dd      }| |k7  sJ y)	z1Test that the preamble is included in the source.Ttext.usetex    fontsizez\usepackage{txfonts}ztext.latex.preambleN)pltrcParamsr   _get_tex_source)src1src2s     B/usr/lib/python3/dist-packages/matplotlib/tests/test_texmanager.pytest_fontconfig_preambler   
   sY    "&CLL<''R'8D*ACLL&'<''R'8D4<<    zrc, preamble, familyz
sans-serif	helvetica)font.familyzfont.sans-serifz\usepackage{helvet}z	\sffamilyserifpalatino)r   z
font.serifz\usepackage{mathpazo}z	\rmfamilycursivezzapf chancery)r   zfont.cursivez\usepackage{chancery}	monospacecourier)r   zfont.monospacez\usepackage{courier}z	\ttfamilyr   c                     t         j                  j                  |        t               }t	        |j                  dd            j                         }||v sJ g t        j                  d|      |gk(  sJ y )Nzhello, worldr	   r
   z\\\w+family)	r   r   updater   r   make_tex	read_textrefindall)rcpreamblefamilytmsrcs        r   test_font_selectionr&      si    " LL	B
r{{>B{7
8
B
B
DCs??-RZZ,-&999r   c                     dt         j                  d<   t        j                         \  } }|j                  d       |j	                  d       | j
                  j                          t        j                  t              5  |j                  d       | j
                  j                          d d d        y # 1 sw Y   y xY w)NTr   u   \textit{Velocity (°/sec)}u   ¼Öøæu   ☃)r   r   subplots
set_ylabel
set_xlabelcanvasdrawpytestraisesRuntimeError	set_title)figaxs     r   test_unicode_charactersr3   -   s     #'CLLllnGCMM<=MM9:JJOO 
|	$ 
]#

  s    ,B55B>)pathlibr   r   matplotlib.pyplotpyplotr   matplotlib.texmanagerr   matplotlib.testing._markersr   r-   r   markparametrizer&   r3    r   r   <module>r<      s     	  , 4  %+	F		/ 
	;	!<	1"O	D	!<	1$		B	 ,	0
	%'=|L
	$&>M
	)	!<	1
	#%<lK :! :  r   