Ñò …ñ™Jc @ sw d d k Z d d k Z d d k l Z e i Z d d k l Z d d k l Z l Z l Z l Z d d k l Z l Z l Z l Z l Z d d k l Z l Z d e f d „ ƒ YZ d e f d „ ƒ YZ d „ Z d „ Z d e f d „ ƒ YZ d e f d „ ƒ YZ h e d 6e d 6e d 6Z d „ Z d „ Z e e i ƒ h d i e ƒ ƒ d 6e _ d „ Z d „ Z! d S( iÿÿÿÿN( t ma( t dedent( t NullFormattert ScalarFormattert LogFormatterMathtextt Formatter( t NullLocatort LogLocatort AutoLocatort SymmetricalLogLocatort FixedLocator( t Transformt IdentityTransformt ScaleBasec B s) e Z d Z d „ Z d „ Z d „ Z RS( s@ The base class for all scales. Scales are separable transformations, working on a single dimension. Any subclasses will want to override: - :attr:`name` - :meth:`get_transform` And optionally: - :meth:`set_default_locators_and_formatters` - :meth:`limit_range_for_scale` c C s t ‚ d S( sq Return the :class:`~matplotlib.transforms.Transform` object associated with this scale. N( t NotImplementedError( t self( ( s6 /usr/lib64/python2.6/site-packages/matplotlib/scale.pyt get_transform s c C s t ‚ d S( s¦ Set the :class:`~matplotlib.ticker.Locator` and :class:`~matplotlib.ticker.Formatter` objects on the given axis to match this scale. N( R ( R t axis( ( s6 /usr/lib64/python2.6/site-packages/matplotlib/scale.pyt# set_default_locators_and_formatters! s c C s | | f S( sù Returns the range *vmin*, *vmax*, possibly limited to the domain supported by this scale. *minpos* should be the minimum positive value in the data. This is used by log scales to determine a minimum value. ( ( R t vmint vmaxt minpos( ( s6 /usr/lib64/python2.6/site-packages/matplotlib/scale.pyt limit_range_for_scale) s ( t __name__t __module__t __doc__R R R ( ( ( s6 /usr/lib64/python2.6/site-packages/matplotlib/scale.pyR s t LinearScalec B s/ e Z d Z d Z d „ Z d „ Z d „ Z RS( s# The default linear scale. t linearc K s d S( N( ( R R t kwargs( ( s6 /usr/lib64/python2.6/site-packages/matplotlib/scale.pyt __init__: s c C sD | i t ƒ ƒ | i t ƒ ƒ | i t ƒ ƒ | i t ƒ ƒ d S( sd Set the locators and formatters to reasonable defaults for linear scaling. N( t set_major_locatorR t set_major_formatterR t set_minor_locatorR t set_minor_formatterR ( R R ( ( s6 /usr/lib64/python2.6/site-packages/matplotlib/scale.pyR = s c C s t ƒ S( sy The transform for linear scaling is just the :class:`~matplotlib.transforms.IdentityTransform`. ( R ( R ( ( s6 /usr/lib64/python2.6/site-packages/matplotlib/scale.pyR G s ( R R R t nameR R R ( ( ( s6 /usr/lib64/python2.6/site-packages/matplotlib/scale.pyR 3 s c C s1 | d j } | i ƒ o t i | d | ƒS| S( s Return a Numpy masked array where all non-positive values are masked. If there are no non-positive values, the original array is returned. g t mask( t anyR t MaskedArray( t aR# ( ( s6 /usr/lib64/python2.6/site-packages/matplotlib/scale.pyt _mask_non_positivesO s c C s d | | d j <| S( NgYóøÂn¥g ( ( R&