# Implicit plot with plots

**URL:** https://discourse.julialang.org/t/implicit-plot-with-plots/6585
**Category:** New to Julia
**Tags:** plotting, plots, implicit-equation
**Created:** [October 20, 2017, 5:34pm UTC](https://discourse.julialang.org/t/implicit-plot-with-plots/6585 "2017-10-20T17:34:22Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![harven](https://avatars.discourse-cdn.com/v4/letter/h/3da27b/32.png) [@harven](https://discourse.julialang.org/u/harven)
#### Post date: [October 21, 2017, 7:33pm UTC](https://discourse.julialang.org/t/implicit-plot-with-plots/6585/8 "2017-10-21T19:33:25Z")

</div>

So for example if I want to plot the curve given by the implicit equation `x^2+y^2 = 1`, I can use the following python code.

```
   import numpy as np
   import matplotlib.pyplot as plt
   y,x=np.ogrid[-5:5:100j,-5:5:100j]
   plt.contour(x.ravel(),y.ravel(),x^2+y^2,[1])
   plt.show()

```

The result is a circle of radius 1 centered at the origin. Now using the contour function for an implicit plot is as far as I understand a hack.

I can see that sympy has now a proper plot\_implicit function that is documented (and live demonstrated) together with its source code [here](http://docs.sympy.org/latest/modules/plotting.html).

Thanks for your help!

---

_[View the full topic](https://discourse.julialang.org/t/implicit-plot-with-plots/6585)._
