Does anyone use the pyglet plotting module in SymPy?
I've been unable to confirm whether or not it even works. Every
attempt I've made at using it results in an exception.
Can anyone get the following to work (from the docstring)?
from sympy.plotting.pygletplot import PygletPlot as Plot
from sympy import symbols
from sympy.abc import x, y, z
Plot(x*y**3-y*x**3)
You will need to install pyglet first, obviously.
Note in master, it definitely does not work in Python 3. I have a pull
request where I fixed some obvious Python 3 issues, but I still am not
able to get any plots
https://github.com/sympy/sympy/pull/14748. Feel
free to try the above in my branch as well (asmeurer/pyglet-fixes).
Particularly if someone has Linux, which I suspect is the only
platform which it ever worked on.
If no one can confirm that the module even works, I think we should
remove it. It clearly has never worked in Python 3, but I think it
also has been broken in Python 2 for some time. It would also be
useful to test it from an old version of SymPy/Pyglet, prior to the
existing plotting module, where I know for a fact that it used to
work.
Aaron Meurer