Declared in module Gnuplot
class PlotItem: def __init__(self, basecommand, **keyw) # Construct a 'PlotItem'. def clear_option(self, name) # Clear (unset) a plot option. No error if option was not set. def command(self) # Build the 'plot' command to be sent to gnuplot. def get_option(self, name) # Return the setting of an option. May be overridden. def pipein(self, f) # Pipe necessary inline data to gnuplot. def set_option(self, with=<class Gnuplot._unset at 14019cc00>, title=<class Gnuplot._unset at 14019cc00>, **keyw) # Set or change a plot option for this PlotItem. list _option_sequence = ['binary', 'using', 'title', 'with']
For the finest control over the output, you can create PlotItems
yourself with additional keyword options, or derive new classes
from PlotItem
.
_basecommand
sin(x)
or "filename.dat"
.
_options
with
:'linespoints'}.
Construct a 'PlotItem'.
with=<string>
title=<string>
title=None
notitle
option (omit item from legend).
Build the 'plot' command to be sent to gnuplot.
Build and return theplot
command, with options, necessary
to display this item.Pipe necessary inline data to gnuplot.
If the plot command requires data to be put on stdin (i.e., 'plot "-"'), this method should put that data there. Can be overridden in derived classes.Set or change a plot option for this PlotItem.
See documentation for __init__ for information about allowed options. This function should be overridden by derived classes to allow additional options.
![]() |
|