<s> """<STR_LIT>""" <EOL> __version__ = "<STR_LIT>" <EOL> from . import types as S <EOL> from . MplBasicLineStyle import MplBasicLineStyle <EOL> from matplotlib import markers as mplmarker <EOL> from matplotlib import path as mplpath <EOL> import matplotlib . lines as mpllines <EOL> __all__ = [ '<STR_LIT>' ] <EOL> MARKER_DICT = { } <EOL> for key in mplmarker . MarkerStyle . markers : <EOL> if key in [ None , '<STR_LIT:U+0020>' ] : <EOL> continue <EOL> MARKER_DICT [ key ] = key <EOL> MARKER_DICT [ mplmarker . MarkerStyle . markers [ key ] ] = key <EOL> class MplMarkerStyle ( S . SubStyle ) : <EOL> """<STR_LIT>""" <EOL> color = S . property . MplColor ( doc = "<STR_LIT>" ) <EOL> edgeColor = S . property . Alias ( '<STR_LIT>' , doc = """<STR_LIT>""" ) <EOL> edgeWidth = S . property . Alias ( '<STR_LIT>' , doc = """<STR_LIT>""" ) <EOL> size = S . property . Float ( min = <NUM_LIT:0.0> , doc = """<STR_LIT>""" ) <EOL> style = S . property . OneOf ( [ S . property . Enum ( MARKER_DICT ) , <EOL> S . property . Instance ( mplpath . Path ) , <EOL> S . property . String ( "<STR_LIT>" ) , ] , <EOL> doc = """<STR_LIT>""" ) <EOL> fill = S . property . Enum ( { '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:left>' : '<STR_LIT:left>' , <EOL> '<STR_LIT:right>' : '<STR_LIT:right>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:none>' : '<STR_LIT:none>' } , doc = """<STR_LIT>""" ) <EOL> def __init__ ( self , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> self . _edge = MplBasicLineStyle ( ) <EOL> S . SubStyle . __init__ ( self , ** kwargs ) <EOL> def __copy__ ( self ) : <EOL> """<STR_LIT>""" <EOL> result = S . SubStyle . __copy__ ( self ) <EOL> result . _edge = self . _edge . copy ( ) <EOL> return result <EOL> def apply ( self , obj , defaults = { } , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> if not isinstance ( obj , mpllines . Line2D ) : <EOL> msg = "<STR_LIT>" "<STR_LIT>" "<STR_LIT>" % ( obj , ) <EOL> raise Exception ( msg ) <EOL> properties = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:size>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } <EOL> kw = { } <EOL> for p in properties : <EOL> mplProp = properties [ p ] <EOL> value = self . getValue ( p , defaults , ** kwargs ) <EOL> if value is not None : <EOL> kw [ mplProp ] = value <EOL> ec = kw . get ( '<STR_LIT>' , None ) <EOL> if ec is None : <EOL> ec = kw . get ( '<STR_LIT>' , None ) <EOL> if ec : <EOL> kw [ '<STR_LIT>' ] = ec <EOL> if kw : <EOL> obj . update ( kw ) </s>
