Class Func
source code
PlotItem --+
|
Func
Represents a mathematical expression to plot.
Func represents a mathematical expression that is to be computed by
gnuplot itself, as if you would type for example:
gnuplot> plot sin(x)
into gnuplot itself. The argument to the contructor is a string that
should be a mathematical expression. Example:
g.plot(Func('sin(x)', with_='line 3'))
As shorthand, a string passed to the plot method of a Gnuplot object
is also treated as a Func:
g.plot('sin(x)')
__init__(self,
function,
**keyw)
(Constructor)
| source code
|
Construct a 'PlotItem'.
Keyword options:
'with_=<string>' -- choose how item will be plotted, e.g.,
with_='points 3 3'.
'title=<string>' -- set the title to be associated with the item
in the plot legend.
'title=None' -- choose 'notitle' option (omit item from legend).
Note that omitting the title option is different than setting
'title=None'; the former chooses gnuplot's default whereas the
latter chooses 'notitle'.
- Overrides:
PlotItem.__init__
- (inherited documentation)
|