Ñò …ñ™Jc@ s÷dZddklZddkZddkZddklZlZddklZddk l Z ddk l Z ddk lZd efd „ƒYZd efd „ƒYZeed eeedeedded„ Zeieƒeid Copyright : 2004 John Gill and John Hunter License : matplotlib license iÿÿÿÿ(tdivisionN(tArtisttallow_rasterization(t Rectangle(tis_string_like(tText(tBboxtCellcB s˜eZdZdZddedddd„Zd„Zd„Zd„Z d „Z d „Z d „Z e d „ƒZd „Zd„Zd„Zd„ZRS(s; A cell is a Rectangle with some associated text. gš™™™™™¹?tktwtc C s•ti||d|d|d|d|ƒ|itƒ|djo d}n||_td|dd|d d |d | ƒ|_|iitƒdS( Ntwidththeightt edgecolort facecolortrighttxityittexttfontproperties(Rt__init__t set_clip_ontFalsetNonet_locRt_text( tselftxyR R R RtfillRtlocR((s6/usr/lib64/python2.6/site-packages/matplotlib/table.pyR)s       cC sti||ƒdS(N(Rt set_transform(Rttrans((s6/usr/lib64/python2.6/site-packages/matplotlib/table.pyR?scC s$ti||ƒ|ii|ƒdS(N(Rt set_figureR(Rtfig((s6/usr/lib64/python2.6/site-packages/matplotlib/table.pyR CscC s|iS(sReturn the cell Text intance(R(R((s6/usr/lib64/python2.6/site-packages/matplotlib/table.pytget_textGscC s|ii|ƒdS(N(Rt set_fontsize(Rtsize((s6/usr/lib64/python2.6/site-packages/matplotlib/table.pyR#KscC s |iiƒS(sReturn the cell fontsize(Rt get_fontsize(R((s6/usr/lib64/python2.6/site-packages/matplotlib/table.pyR%NscC sm|iƒ}|i|ƒ}xK|djo=||iƒjo*|d8}|i|ƒ|i|ƒ}qW|S(s# Shrink font size until text fits. i(R%tget_required_widtht get_widthR#(Rtrenderertfontsizetrequired((s6/usr/lib64/python2.6/site-packages/matplotlib/table.pytauto_set_font_sizeRs    cC sC|iƒpdSti||ƒ|i|ƒ|ii|ƒdS(N(t get_visibleRtdrawt_set_text_positionR(RR(((s6/usr/lib64/python2.6/site-packages/matplotlib/table.pyR-]s   c C sè|i|ƒ}|i\}}}}|iidƒ||d}|idjo"|iidƒ||d}n[|idjo%|iidƒ|||i}n&|iidƒ||d|i}|ii||fƒdS(sm Set text up so it draws in the right place. Currently support 'left', 'center' and 'right' tcenterg@tleftRgð?N(tget_window_extenttboundsRtset_verticalalignmentRtset_horizontalalignmenttPADt set_position( RR(tbboxtltbR thRR((s6/usr/lib64/python2.6/site-packages/matplotlib/table.pyR.gscC s.|ii|ƒ}|i|iƒƒ}|iS(s' Get text bounds in axes co-ordinates. (RR1tinverse_transformedtget_data_transformR2(RR(R7tbboxa((s6/usr/lib64/python2.6/site-packages/matplotlib/table.pytget_text_bounds€scC s.|i|ƒ\}}}}|dd|iS(s# Get width required for this cell. gð?g@(R>R5(RR(R8R9R R:((s6/usr/lib64/python2.6/site-packages/matplotlib/table.pyR&†scK s|ii|ƒdS(s&update the text properties with kwargsN(Rtupdate(Rtkwargs((s6/usr/lib64/python2.6/site-packages/matplotlib/table.pytset_text_propsŒsN(t__name__t __module__t__doc__R5tTrueRRRR R"R#R%R+RR-R.R>R&RA(((s6/usr/lib64/python2.6/site-packages/matplotlib/table.pyR"s$          tTablecB sUeZdZhdd6dd6dd6dd6d d 6d d 6d d6dd6dd6dd6dd6dd6dd6dd6dd6dd 6d!d"6d#d$6ZdZd%Zd8d8d&„Zd'„Zd(„Z e d)„ƒZ d*„Z d+„Z d,„ZeZd-„Zd.„Zd/„Zd0„Zed1„Zd2„Zd3„Zd4„Zd5„Zd6„Zd7„ZRS(9s7 Create a table of cells. Table can have (optional) row and column headers. Each entry in the table can be either text or patches. Column widths and row heights for the table can be specifified. Return value is a sequence of text, line and patch instances that make up the table itbestis upper rightis upper leftis lower leftis lower rightis center leftis center rightis lower centeris upper centeri R/i s top righti stop lefti s bottom lefti s bottom rightiRiR0ittopitbottomg{®Gáz”?cC søti|ƒt|ƒoC||ijo3tid|di|iiƒƒfƒd}nt|ƒo|ii|dƒ}n|i |i ƒ||_ ||_ ||_ |i|iƒg|_h|_g|_g|_t|_d|_dS(NsIUnrecognized location %s. Falling back on bottom; valid locations are %s s RIi(RRRtcodestwarningstwarntjointkeystgetR tfiguret_axesRt_bboxRt transAxest_textst_cellst _autoRowst _autoColumnsREt _autoFontsizeRt_cachedRenderer(RtaxRR7((s6/usr/lib64/python2.6/site-packages/matplotlib/table.pyRµs" )          cO s_d}t|||Ž}|i|iƒ|i|iƒƒ|itƒ||i||fs"  nÿ*  a