# 4D dataset plotting

**URL:** <https://discourse.julialang.org/t/4d-dataset-plotting/96841>\
**Category:** General Usage\
**Tags:** dataframes, plots\
**Created:** [March 30, 2023, 11:45am UTC](https://discourse.julialang.org/t/4d-dataset-plotting/96841 "2023-03-30T11:45:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abehersan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abehersan/32/47221_2.png) [@abehersan](https://discourse.julialang.org/u/abehersan)\
**Post date:** [March 30, 2023, 11:45am UTC](https://discourse.julialang.org/t/4d-dataset-plotting/96841/1 "2023-03-30T11:45:15Z")

</div>

Hi!  
I have 4D experimental data that I would like to plot just like in the figure below.  
Does anyone have an idea how this could be done with Plots.jl?

It is basically a superposition of three 3D heatmaps for which some variable is kept constant. In this case for example, there’s a constant E slice plotted as a function of (0, 0, zeta) and (xi, xi, 0).

![imagen](https://global.discourse-cdn.com/julialang/original/3X/b/c/bcd5e55350a10a47305a6a3ddc02697c7cadca45.jpeg)

---

<div class="post-metadata">

**Author:** ![fedoroff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fedoroff/32/53209_2.png) [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Post date:** [March 30, 2023, 11:48am UTC](https://discourse.julialang.org/t/4d-dataset-plotting/96841/2 "2023-03-30T11:48:27Z")

</div>

You can try `volumeslices` from Makie:  
[https://docs.makie.org/stable/examples/plotting\_functions/volumeslices/index.html#volumeslices](https://docs.makie.org/stable/examples/plotting_functions/volumeslices/index.html#volumeslices)
