# Solving a PDE but no plots are returned

**URL:** <https://discourse.julialang.org/t/solving-a-pde-but-no-plots-are-returned/123493>\
**Category:** New to Julia\
**Created:** [December 5, 2024, 12:03pm UTC](https://discourse.julialang.org/t/solving-a-pde-but-no-plots-are-returned/123493 "2024-12-05T12:03:54Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [December 6, 2024, 2:26am UTC](https://discourse.julialang.org/t/solving-a-pde-but-no-plots-are-returned/123493/9 "2024-12-06T02:26:26Z")

</div>

> [@nilshg](#):
>
> the short answer is no, there’s nothing like `clear` in Matlab.

The closest thing is to set all the variables in `Main` to `nothing`, which will allow their memory to be freed.

See e.g. [How to clear variables and/or whole work space - #27 by heliosdrm](https://discourse.julialang.org/t/how-to-clear-variables-and-or-whole-work-space/10149/27) or this one-liner:

```julia
setproperty!.((Main,), filter(n -> !isconst(Main, n), names(Main)), nothing);

```

but this doesn’t eliminate constants, including function definitions and new methods, or other global state that might be affecting your code.

---

_[View the full topic](https://discourse.julialang.org/t/solving-a-pde-but-no-plots-are-returned/123493)._
