+
     ]i{&  c            
       s    R t ^ RIHt ^ RIHtHtHtHtH	t
 ^ RIHt ^ RIHt ^ RIHtHt RRRR	R
RRRRR/tRRRRRRRRRR/t]P(                  P                  tRR ltR# )zHModule that provides a GUI-based editor for Matplotlib's figure options.)chain)cbookcmcolorsmarkersimage)QtGui)_formlayout)DateConverternum2dateZ-ZSolidz--ZDashedz-.ZDashDotZ:ZDottedZNoneZdefaultZDefaultz	steps-prezSteps (Pre)Zstepsz	steps-midzSteps (Mid)z
steps-postzSteps (Post)Nc                s  a aaaaaa a! R+pR pS P                   oSP                  4        UUu/ uF9  w  rEV\        V! \        S RV R24      ! 4       VP	                  4       4      4      bK;  	  pppRS P                  4       3V.\        P                  ! SP                  4        UUu. uFn  w  rERRVP                  4        R23RWd,          ^ ,          3R	Wd,          ^,          3R
VP                  P                  4       3RVP                  4       RRRR.3V3NKp  	  upp4      OR,NpSP                  4        UUu/ uF  w  rEWEP	                  4       bK  	  uppoSP                  4        UUu/ uF  w  rEWEP                  4       bK  	  uppo. o S P                  4        F.  pVP                  4       p	V	R8X  d   K  S P                  W34       K0  	  . p
R pS  EF|  w  r\         P"                  ! \         P$                  ! VP'                  4       VP)                  4       4      RR7      p\         P"                  ! \         P$                  ! VP+                  4       VP)                  4       4      RR7      p\         P"                  ! \         P$                  ! VP-                  4       VP)                  4       4      RR7      pR
V	3VR-RV! \.        VP1                  4       4      3RV! \2        VP5                  4       4      3RVP7                  4       3RV3VR.RV! \8        VP;                  4       4      3RVP=                  4       3RV3RV3.pV
P                  WR.4       EK  	  \?        V
4      o. o!. S P@                  OS PB                  O FA  pVP                  4       p	V	R8X  g   VPE                  4       f   K.  S!P                  V	V34       KC  	  . p\G        \H        PJ                  P                  4       4       UUu. uF
  w  ppVV3NK  	  pppS! EF  w  p	pVPM                  4       pVPN                  \H        PJ                  9  d   VVPN                  3.VOpVPQ                  4       w  ppR
V	3RVPN                  .V,           3RV3RV3.p\S        VR 4      '       dv   \G        \T        PV                  4       Uu. uF  qDV3NK  	  ppVP                  R!VPY                  4       .VO34       . R/OpVP                  R"VP[                  4       .VO34       VP                  VV	R.4       EK  	  \?        V4      oVR#R3.pV
'       d   VP                  V
R$R34       V'       d   VP                  VR%R34       V VVVVVV V!3R& lp\\        P^                  ! VR'V\`        Pb                  ! \e        \f        Ph                  ! R(R)4      4      4      VR*7       R# u uppi u uppi u uppi u uppi u uppi u upi )0zEdit matplotlib figure optionsNc                sn    \        V\        4      '       d   \        \        V 4      # \        \        V 4      # )z.Convert axis limits for correct input editors.)Z
isinstancer   Zmapr	   Zfloat)limZ	converters   &&R/usr/lib64/python3.14/site-packages/matplotlib/backends/qt_editor/figureoptions.pyconvert_limitsZ#figure_edit.<locals>.convert_limits#   s(    i//x%%5#    get_r
   ZTitlez<b>z	-Axis</b>ZMinZMaxZLabelZScaleZlinearZlogZsymlogZlogitZ
_nolegend_c                s:   W9  d   / V CV\        V4      /Cp V P                  4        UUu/ uF  w  r#W2bK	  	  pppVP                  4        UUu/ uF  w  r2W#bK	  	  pppW@V,          ,          pV.\        VP                  4       R R7      ,           # u uppi u uppi )a  
Prepare entry for FormLayout.

*d* is a mapping of shorthands to style names (a single style may
have multiple shorthands, in particular the shorthands `None`,
`"None"`, `"none"` and `""` are synonyms); *init* is one shorthand
of the initial style.

This function returns an list suitable for initializing a
FormLayout combobox, namely `[initial_name, (shorthand,
style_name), (shorthand, style_name), ...]`.
c                 s    V ^,          # )i    )Zshort_and_names   &r   Z<lambda>Z3figure_edit.<locals>.prepare_data.<locals>.<lambda>o   s	    .2Cr   )Zkey)stritemssorted)ZdZinitZshortnameZ
name2shortZ
short2nameZcanonical_inits   &&     r   prepare_dataZ!figure_edit.<locals>.prepare_dataV   s     =&1&dCI&A 67WWY?YkedkY
?5?5E5E5GH5Gkdek5G
H#dG, z'')CEE 	F @Hs   BBT)Z
keep_alphaz
Line stylez
Draw styleZWidthzColor (RGBA)ZStyleZSizezFace color (RGBA)zEdge color (RGBA)Z ZColormapz
Min. valuez
Max. valueget_interpolationZInterpolationzInterpolation stageZAxesZCurveszImages, etc.c           
     s  < S) Uu/ uF  pV\        S'RV R24      ! 4       bK  	  ppV P                  ^ 4      pS+'       d   V P                  ^ 4      M. pS,'       d   V P                  ^ 4      M. pV '       d   \        R4      hVP                  ^ 4      pS'P                  V4       VP                  4       p\	        S)P                  4       4       F  w  pw  rV^V,          ,          p
V^V,          ^,           ,          pV^V,          ^,           ,          pV^V,          ^,           ,          pV	P                  4       V8w  d   \        S'RV R24      ! V4       V	P                  WRR7       V	P                  V4       V	P                  S(V,          4       V	P                  S*V,          4       K  	  \	        V4       F  w  rS-V,          ^,          pVw	  pppppppppVP                  V4       VP                  V4       VP                  V4       VP                  V4       \        P                   ! V4      pVP#                  R4       VP%                  V4       VR	8w  g   K  VP'                  V4       VP)                  V4       VP+                  V4       VP-                  V4       K  	  \	        V4       F  w  ppS.V,          ^,          p\/        V4      ^8X  d-   Vw  ppppp p!VP1                  V 4       VP3                  V!4       M\/        V4      ^8X  d   Vw  ppppVP                  X4       VP5                  X4       VP6                  ! \9        XX.4      !   K  	  V'       dh   Rp"^p#S'P:                  e+   S'P=                  4       p$V$P>                  RJp"V$P@                  p#S'PC                  V#R
7      p%V%'       d   V%PE                  V"4       S'PG                  4       p&V&PH                  PK                  4        S) FJ  p\        S'RV R24      ! 4       W!,          8w  g   K%  V&PH                  PL                  PO                  4         R# 	  R# u upi )zA callback to apply changes.r   r
   zUnexpected fieldZset_ZscaleF)autoNZnone)ncols)(getattrZpopZ
ValueErrorZ	set_titleZ	enumerater   	get_scaleZ_set_limZset_label_textZ_set_converterZ	set_unitsZ	set_labelZset_linestyleZset_drawstyleZset_linewidthmcolorsto_rgbaZ	set_alphaZ	set_colorZ
set_markerZset_markersizeZset_markerfacecolorZset_markeredgecolorZlenZset_interpolationZset_interpolation_stageZset_cmapZset_climr   Zlegend_Z
get_legendZ
_draggableZ_ncolsZlegendZset_draggableZ
get_figureZcanvasZdrawZtoolbarZpush_current)/datar   Zorig_limitsgeneralcurves	mappablestitleZgenerate_legendZiaxisZaxis_minZaxis_maxZ
axis_labelZ
axis_scaleZindexZcurvelinelabelZ	linestyleZ	drawstyleZ	linewidthcolorZmarkerZ
markersizeZmarkerfacecolorZmarkeredgecolorrgbaZmappable_settingsmappablecmaplowhighZinterpolationZinterpolation_stageZ	draggabler   Z
old_legendZ
new_legendZfigureaxesaxis_converteraxis_map
axis_units	has_curvehas_smlabeled_lineslabeled_mappabless/   &                                      r   apply_callbackZ#figure_edit.<locals>.apply_callback   s    !
  '$$tfC 0133  	 

 ((1+ )!r#)DHHQKr	/00Au!++-()9:OA|qs|HqsQw'H 1q)J 1q)J~~:-TF%01*=MM(5M9
+ t 45NN:d+,  ;  &f-LE '*D16/UIy)UFJoNN5!y)y)y)??5)DNN4 NN4 '##J/((9((9 .$ )2)(<$E$(/2H$%*# KtS$7J**=9001DE&'1,):&tS$u%d#vsDk23 )= IE||'!__.
&11=	"))51J((3 "DttD6-.0K4EE%%224 [
s   QzFigure optionsimageszqt4_editor_options.svg)r    parentZiconZapply)NN)z(Re-)Generate automatic legendF)Nz<b>Line</b>)Nz<b>Marker</b>)r   r%   r   )5Z	_axis_mapr   Ztupler   Zget_converterZ	get_titler    Zfrom_iterabler    r#   Zget_textr   Z	get_unitsZ	get_linesZ	get_labelZappendr   Zto_hexr   Z	get_colorZ	get_alphaZget_markeredgecolorZget_markerfacecolor
LINESTYLESZget_linestyle
DRAWSTYLESZget_drawstyleZget_linewidthMARKERSZ
get_markerZget_markersizeZboolr3   ZcollectionsZ	get_arrayr   r   Z
_colormapsZget_cmapr   Zget_climZhasattrmimageZinterpolations_namesr   Zget_interpolation_stager   Zfeditr   ZQIconr   r   Z_get_data_path)"r*   r4   Zsepr   r   r!   Zaxis_limitsr   r"   r#   r   r   r$   ZecZfcZ	curvedatar&   r   r'   Zcmapsr(   r)   ZmappabledataZinterpolationsZinterpolation_stagesZdatalistr2   r+   r,   r-   r.   r/   r0   r1   s"   f&                         @@@@@@@r   figure_editr9      s   
C ~~H
 #..*	 +JD 	eNDDc*+-t/A/A/C
  	 +	   
$.."# 
		 'nn.
 /
 TZZ\N)45)!,-)!,-$**--/04>>+#UHg? @ /
 
 	2G* #..**JD 	  ""*N #..**JD 	nn*J M  L e]+	 !
 FF6 %OODNN,dnn.>? ^^OOD4468HI ^^OOD4468HI e!<
D4F4F4HIJ<
D4F4F4HIJd((*+U##l7DOO,=>?T((*+ "% "%'	 	y,-1 %4 VI 5dkk5D$4$45""$L H$6$6$8$@  %!23	 6
 I,22==3F3F3H,IJ,IjdDdD\,IEJ,x  "99BMM)DII&//E%%'	Te$))u,-34 	
 8011)/0K0K)LN)Lt)L  N++-??!A B $< %113K6JK!M N 	,r23/ -2 )_F&"%&H2./NB78R Rh ([[$$X/GHIK	A
 Z KNs$   ?W %A4W7W)W,W(W)N)Z__doc__Z	itertoolsr    Z
matplotlibr   r   r   r   r   r   r8   Zmatplotlib.backends.qt_compatr   Zmatplotlib.backends.qt_editorr   Zmatplotlib.datesr   r	   r5   r6   ZMarkerStyler7   r9   r   r   r   <module>r:      sw    O  M M / 5 47HI8f	
 y.	"
 


%
%qr   