Represent an argument that must be passed as a keyword to gnuplot.
Some gnuplot options take the form of single unquoted keywords
(possibly preceded by a fixed keyword). We allow those to be
passed as strings option="keyword" . Check that the option
supplied is in the list of allowed options.
Members:
-
fixedword
- the fixed keyword that must precede the
variable keyword in the gnuplot command, or None if none
is required.
-
options
- a list of strings containing the legal
alternatives for this argument.
Methods
|
|
__call__
__init__
|
|
__call__
|
__call__ ( self, keyw )
Exceptions
|
|
Errors.OptionError('Illegal option %s="%s"' %( self.argname, k, ) )
|
|
|
__init__
|
__init__ (
self,
argname,
options,
fixedword=None,
default=None,
)
|
|