Im trying to plot circles with plot_implicit()
This works:
x, y = symbols('x y')
print type(Eq(x**2 + y**2 - 10000.0, 0.0))
print Eq(x**2 + y**2 - 10000.0, 0.0)
plot_implicit(Eq(x**2 + y**2 - 10000.0, 0.0), (x, -radius, radius), (y,
-radius, radius))
# print type(Eq(circles[0].equation(), 0.0))
# print Eq(circles[0].equation(), 0.0)
# plot_implicit(Eq(circles[0].equation(), 0.0), (x, -radius, radius), (y,
-radius, radius))
> <class 'sympy.core.relational.Equality'>
> x**2 + y**2 - 10000.0 == 0
(also generates a matplotlib figure)
This exits with an error:
x, y = symbols('x y')
# print type(Eq(x**2 + y**2 - 10000.0, 0.0))
# print Eq(x**2 + y**2 - 10000.0, 0.0)
# plot_implicit(Eq(x**2 + y**2 - 10000.0, 0.0), (x, -radius, radius), (y,
-radius, radius))
print type(Eq(circles[0].equation(), 0.0))
print Eq(circles[0].equation(), 0.0)
plot_implicit(Eq(circles[0].equation(), 0.0), (x, -radius, radius), (y,
-radius, radius))
> <class 'sympy.core.relational.Equality'>
> x**2 + y**2 - 10000.0 == 0
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File
"C:\Python27\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py",
line 523, in runfile
> execfile(filename, namespace)
> File "D:\Spyder\Minipanel\src\run.py", line 55, in <module>
> main()
> File "D:\Spyder\Minipanel\src\run.py", line 52, in main
> plot_implicit(Eq(circles[0].equation(), 0.0), (x, -radius, radius),
(y, -radius, radius))
> File "C:\Python27\lib\site-packages\sympy\plotting\plot_implicit.py",
line 299, in plot_implicit
> raise NotImplementedError("Implicit plotting is not implemented for "
> NotImplementedError: Implicit plotting is not implemented for more than 2
variables
circles[] is a list of circles...
does anyone have an idea why this doesn't work?
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.