'Positional Arguments
Any given positional arguments are used to
initialize a plot function at index 1. In
other words...
>>> from sympy.plotting.pygletplot import PygletPlot as Plot
>>> from sympy.core import Symbol
>>> from sympy.abc import x
>>> p = Plot(x**2, visible=False)
...is equivalent to...
>>> p = Plot(visible=False)
>>> p[1] = x**2
Note that in earlier versions of the plotting
module, you were able to specify multiple
functions in the initializer. This functionality
has been dropped in favor of better automatic
plot plot_mode detection.
Named Arguments
axes
An option string of the form
"key1=value1; key2 = value2" which
can use the following options:
style = ordinate
none OR frame OR box OR ordinate
stride = 0.25
val OR (val_x, val_y, val_z)
overlay = True (draw on top of plot)
True OR False
colored = False (False uses Black,
True uses colors
R,G,B = X,Y,Z)
True OR False
label_axes = False (display axis names
at endpoints)
True OR False
visible = True (show immediately
True OR False
The following named arguments are passed as
arguments to window initialization:
antialiasing = True
True OR False
ortho = False
True OR False
invert_mouse_zoom = False
True OR False'

@doctest_depends_on(modules=('pyglet',))
def __init__(self, *fargs, **win_args):

    self._win_args = win_args
    self._window = None
    self._render_lock = RLock()
    self._functions = {}
    self._pobjects = []
    self._screenshot = ScreenShot(self)
    axe_options = parse_option_string(win_args.pop('axes', ''))
    self.axes = PlotAxes(**axe_options)
    self._pobjects.append(self.axes)
    self[0] = fargs
    if win_args.get('visible', True):
        self.show()
