Your question can be rephrased in more general terms: how to plot implicit functions?
There is some related discussion here:
Your question can be rephrased in more general terms: how to plot implicit functions?
There is some related discussion here: