# Contour plot of density function

**URL:** <https://discourse.julialang.org/t/contour-plot-of-density-function/7806>\
**Category:** Visualization\
**Tags:** question\
**Created:** [December 16, 2017, 11:51am UTC](https://discourse.julialang.org/t/contour-plot-of-density-function/7806 "2017-12-16T11:51:48Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Ralph\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ralph_smith/32/10344_2.png) [@Ralph\_Smith](https://discourse.julialang.org/u/Ralph_Smith)\
**Post date:** [December 17, 2017, 4:13am UTC](https://discourse.julialang.org/t/contour-plot-of-density-function/7806/5 "2017-12-17T04:13:05Z")

</div>

For plots like this, I’m finding I have to provide axis ranges, so

```julia
contour(0:0.005:1,0:0.005:1,mypdf) # for the OP case, with logit-normal sec. @benelsen
contour(-5:0.05:5,-5:0.05:5,(x,y)->Distributions.pdf(d,[x,y])) # for a typical MvNormal

```

---

_[View the full topic](https://discourse.julialang.org/t/contour-plot-of-density-function/7806)._
