# Plot a parameter space with Plots.jl possibly using contour()

**URL:** <https://discourse.julialang.org/t/plot-a-parameter-space-with-plots-jl-possibly-using-contour/10796>\
**Category:** General Usage\
**Created:** [May 9, 2018, 12:56pm UTC](https://discourse.julialang.org/t/plot-a-parameter-space-with-plots-jl-possibly-using-contour/10796 "2018-05-09T12:56:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IljaK91](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iljak91/32/44301_2.png) [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Post date:** [May 9, 2018, 12:56pm UTC](https://discourse.julialang.org/t/plot-a-parameter-space-with-plots-jl-possibly-using-contour/10796/1 "2018-05-09T12:56:21Z")

</div>

Hey everyone,

I am looking for the best way plotting a parameter space using `Plots.jl`. Essentially, I have a matrix of 0s and 1s and possibly a few other values. The outcome should look similar to a contour plot, but with `fill=true` and only a discrete number of values. I would like then to have a legend that says something like

White: 1 = “Description for White/value 1”  
Black: 0 = “Description for Black/value 0”

I don’t need the whole gradient as is standard with `legend = true`, since the values between whole numbers are meaningless for me and don’t appear in my matrix anyway.

Can I tune `contour()` somehow for that purpose or is there a better way of doing it?

Thanks a lot!
