# Plotting multivariable function stored in a 2d array

**URL:** <https://discourse.julialang.org/t/plotting-multivariable-function-stored-in-a-2d-array/55288>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [February 15, 2021, 1:23am UTC](https://discourse.julialang.org/t/plotting-multivariable-function-stored-in-a-2d-array/55288 "2021-02-15T01:23:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jigjig](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jigjig/32/21151_2.png) [@jigjig](https://discourse.julialang.org/u/jigjig)\
**Post date:** [February 15, 2021, 1:23am UTC](https://discourse.julialang.org/t/plotting-multivariable-function-stored-in-a-2d-array/55288/1 "2021-02-15T01:23:02Z")

</div>

I am trying to plot the solution to a PDE, which is stored as a 2d array. I am wandering if there is a way to plot the solution as a 3d image.

Thanks

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [February 15, 2021, 7:04am UTC](https://discourse.julialang.org/t/plotting-multivariable-function-stored-in-a-2d-array/55288/2 "2021-02-15T07:04:34Z")

</div>

Try the `surface` function in `Plots.jl`, or `Makie.jl` for a more complete and interactive option.

---

<div class="post-metadata">

**Author:** ![ash](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@ash](https://discourse.julialang.org/u/ash)\
**Post date:** [February 15, 2021, 8:11am UTC](https://discourse.julialang.org/t/plotting-multivariable-function-stored-in-a-2d-array/55288/3 "2021-02-15T08:11:32Z")

</div>

Could you give a little bit more detail so we can help you? Is the data defined on a uniform or nonuniform mesh?

If it’s a uniform mesh, this is fairly straightforward to do using `Plots.jl` as David mentioned. The default `GR` backend is quite quick and looks nice but is not interactive. You can try using the `Plotly` backend for interactivity.

Here is the documentation: [Home · Plots](http://docs.juliaplots.org/latest/)
