How do plot_implicit work? #27813
-
I am trying to create a program that draws implicit functions, so I am trying to learn the code for sympy. However, i can't find where the code used to draw functions, nor can I find where intervals(or intervalsets) are calculated. Python code is so interdependent that I can't find what I'm looking for. I will extremely appreciate anyone's help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The code for drawing implicit functions is likely in sympy.plotting.plot_implicit, and interval calculations might be in sympy.sets.Interval or related solving functions. Instead of diving straight into the code, I’d recommend checking the SymPy documentation first—it provides much more clarity and helps you find exactly what you need. You can start here: https://docs.sympy.org/. Regarding interdependencies, SymPy docs have a ‘See Also’ section that guides you to related functions, making it easier to navigate interconnected features. |
Beta Was this translation helpful? Give feedback.
I get it. The code is in ImplicitSeries class in sympy/plotting/series.py. But, to my disappointment, its ability to plot implicit function is not as powerful as I thought, and it seems to do nothing in checking whether the real graph of the function contains pixels it draws.
Anyway, I have to thank you very much.