I need to test to see if an object is a sympy.plotting.plot.Plot - i.e. Plot
object, but I'm running in to trouble.
What I want to do:
>>> myPlot = Plot(0)
>>> isinstance(myPlot, something)
True
Issues I'm having:
>>> import sympy
>>> sympy.plot
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'plot'
>>> sympy.Plot
<function Plot at 0x8c00f44>
>>> sympy.plotting
<module 'sympy.plotting' from 'sympy/plotting/__init__.pyc'>
>>> sympy.plotting.plot
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'plot'
>>> import sympy.plotting.plot
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "sympy/plotting/plot.py", line 10, in <module>
raise ImportError("pyglet is required for plotting.\n visit
http://www.pyglet.org/")
ImportError: pyglet is required for plotting.
visit http://www.pyglet.org/
Thanks.
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/sympy/-/k1t4ZIEDypMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy?hl=en.