# Plot inside a function

**URL:** <https://discourse.julialang.org/t/plot-inside-a-function/35582>\
**Category:** General Usage\
**Created:** [March 5, 2020, 3:05pm UTC](https://discourse.julialang.org/t/plot-inside-a-function/35582 "2020-03-05T15:05:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [March 5, 2020, 3:09pm UTC](https://discourse.julialang.org/t/plot-inside-a-function/35582/2 "2020-03-05T15:09:12Z")

</div>

Call `display()` on the plot object (there are other ways, see: [The plot (with Plots pkg) not displayed, if plot(...) is not the last operator](https://discourse.julialang.org/t/the-plot-with-plots-pkg-not-displayed-if-plot-is-not-the-last-operator/34410))

---

_[View the full topic](https://discourse.julialang.org/t/plot-inside-a-function/35582)._
