Helper class for parsing options.
Definition at line 75 of file draw_obj.py.
◆ __init__()
def python.draw_obj._options.__init__ |
( |
|
self, |
|
|
|
options |
|
) |
| |
Definition at line 77 of file draw_obj.py.
88 options = options.replace (
',',
' ')
89 for o
in options.split():
91 if lo
in [
"merge",
"same",
"norm",
"logy",
'linecolors']:
93 elif (self._optmatch (lo,
"fill")
or
94 self._optmatch (lo,
"linetype")
or
95 self._optmatch (lo,
"color")):
◆ _optmatch()
def python.draw_obj._options._optmatch |
( |
|
self, |
|
|
|
lo, |
|
|
|
pat |
|
) |
| |
|
private |
Definition at line 102 of file draw_obj.py.
102 def _optmatch (self, lo, pat):
103 if lo.startswith (pat+
'='):
104 setattr (self, pat, int (lo[len (pat)+1:]))
◆ color
python.draw_obj._options.color |
◆ fill
python.draw_obj._options.fill |
◆ linecolors
python.draw_obj._options.linecolors |
◆ linetype
python.draw_obj._options.linetype |
◆ logy
python.draw_obj._options.logy |
◆ merge
python.draw_obj._options.merge |
◆ norm
python.draw_obj._options.norm |
◆ other
python.draw_obj._options.other |
◆ same
python.draw_obj._options.same |
The documentation for this class was generated from the following file: