In Python, using MatPlotLib, given [vector] parameters $a$ and $b$ and [scalar] parameter $c$, I want to draw a general cubic plane curve in 2-dimensional space (regular plane with $x$ and $y$ axes): $$ \sum\limits_{i=1}^3 \left( a_i \cdot x^i + b_i \cdot y^i \right) + c = 0. $$
How can I draw a part of this curve with constraints $(x, y) \in [0; 1]^2$?
I've found a solution for MatPlotLib: matplotlib.pyplot.contour allows to draw contour set by implicit equation. Here are answers from StackOverflow:
https://stackoverflow.com/questions/4680525/plotting-implicit-equations-in-3d https://stackoverflow.com/questions/4690471/plotting-system-of-implicit-equations-in-matpotlib https://stackoverflow.com/questions/2484527/is-it-possible-to-plot-implicit-equations-using-matplotlib
Here is my solution on Python 2.7:
Image with 2-dimensional cubic plane curve example