File: //opt/alt/python27/lib64/python2.7/site-packages/matplotlib/projections/__init__.pyo
�
`�3Lc @ s� d d l m Z m Z m Z m Z d d l m Z d d l m Z d e f d � � YZ
e
� Z e j e j
e e e e e � d � Z d
d � Z d � Z d � Z d
S( i����( t
AitoffAxest
HammerAxest LambertAxest
MollweideAxes( t PolarAxes( t axest ProjectionRegistryc B s2 e Z d Z d � Z d � Z d � Z d � Z RS( sA
Manages the set of projections available to the system.
c C s
i | _ d S( N( t _all_projection_types( t self( ( sR /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/projections/__init__.pyt __init__ s c G s+ x$ | D] } | j } | | j | <q Wd S( s6
Register a new set of projection(s).
N( t nameR ( R t projectionst
projectionR
( ( sR /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/projections/__init__.pyt register s
c C s | j | S( s9
Get a projection class from its *name*.
( R ( R R
( ( sR /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/projections/__init__.pyt get_projection_class s c C s | j j � } | j � | S( sZ
Get a list of the names of all projections currently
registered.
( R t keyst sort( R t names( ( sR /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/projections/__init__.pyt get_projection_names s
( t __name__t
__module__t __doc__R R
R R ( ( ( sR /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/projections/__init__.pyR s
c C s t j | � d S( N( t projection_registryR
( t cls( ( sR /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/projections/__init__.pyt register_projection- s c C sN | d k r d } n y t j | � SWn! t k
rI t d | � � n Xd S( s�
Get a projection class from its name.
If *projection* is None, a standard rectilinear projection is
returned.
t rectilinears Unknown projection '%s'N( t NoneR R t KeyErrort
ValueError( R ( ( sR /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/projections/__init__.pyR 0 s
c K s t | � | | | � S( sT
Get a new projection instance.
*projection* is a projection name.
*figure* is a figure to add the axes to.
*rect* is a :class:`~matplotlib.transforms.Bbox` object specifying
the location of the axes within the figure.
Any other kwargs are passed along to the specific projection
constructor being used.
( R ( R t figuret rectt kwargs( ( sR /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/projections/__init__.pyt projection_factory? s c C s
t j � S( s4
Get a list of acceptable projection names.
( R R ( ( ( sR /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/projections/__init__.pyR P s N( t geoR R R R t polarR t
matplotlibR t objectR R R
t AxesR R R R R ( ( ( sR /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/projections/__init__.pyt <module> s "