# Plot inequality using sympy

**URL:** https://discourse.julialang.org/t/plot-inequality-using-sympy/97722
**Category:** General Usage
**Tags:** question, plotting, sympy
**Created:** [April 20, 2023, 9:04pm UTC](https://discourse.julialang.org/t/plot-inequality-using-sympy/97722 "2023-04-20T21:04:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jcbritobr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jcbritobr/32/219275_2.png) [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)
#### Post date: [April 20, 2023, 9:04pm UTC](https://discourse.julialang.org/t/plot-inequality-using-sympy/97722/1 "2023-04-20T21:04:42Z")

</div>

How to plot this inequality in sympy? I did other inequations and dont have this problem. Also this works pretty neat in python with plot\_implicit

```julia
    @syms x, y;
    ineq = Ge(x + 2y, 5);
    @info ineq;
    w = solve(ineq, y);

    @info w;
    plot(ineq)

```

```julia
118 is not a Function, or is not defined at any of the values [-5.0, -1.0, 0.0, 0.01]

error(::String)@error.jl:35
tryrange(::SymPy.var"#118#119"{SymPy.var"###391"}, ::Vector{Float64})@adapted_grid.jl:183
macro expansion@user_recipe.jl:228[inlined]
apply_recipe(::AbstractDict{Symbol, Any}, ::SymPy.var"#118#119"{SymPy.var"###391"})@RecipesBase.jl:300
_process_userrecipes!(::Any, ::Any, ::Any)@user_recipe.jl:38
recipe_pipeline!(::Any, ::Any, ::Any)@RecipesPipeline.jl:72
_plot!(::Plots.Plot, ::Any, ::Any)@plot.jl:223
var"#plot#186"(::Base.Pairs{Symbol, V, Tuple{Vararg{Symbol, N}}, NamedTuple{names, T}} where {V, N, names, T<:Tuple{Vararg{Any, N}}}, ::typeof(RecipesBase.plot), ::Any)@plot.jl:102
plot(::Any)@plot.jl:93
top-level scope@Local: 8[inlined]

```

---

<div class="post-metadata">

### Author: ![j\_verzani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/j_verzani/32/8551_2.png) [@j\_verzani](https://discourse.julialang.org/u/j_verzani)
#### Post date: [April 20, 2023, 9:41pm UTC](https://discourse.julialang.org/t/plot-inequality-using-sympy/97722/2 "2023-04-20T21:41:53Z")

</div>

If you have PyPlot installed, I believe `sympy.plot_implicit` ([Plotting - SymPy 1.11 documentation](https://docs.sympy.org/latest/modules/plotting.html#sympy.plotting.plot_implicit.plot_implicit)) might be helpful. Here you are bumping into the fact there is no default plot method for equations in `SymPy`, just symbolic expressions of a single indeterminate.
