# Matlab figure replacement

**URL:** <https://discourse.julialang.org/t/matlab-figure-replacement/74942>\
**Category:** Visualization\
**Tags:** io\
**Created:** [January 20, 2022, 2:57pm UTC](https://discourse.julialang.org/t/matlab-figure-replacement/74942 "2022-01-20T14:57:32Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![ohmsweetohm1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ohmsweetohm1/32/49126_2.png) [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Post date:** [January 25, 2022, 7:18pm UTC](https://discourse.julialang.org/t/matlab-figure-replacement/74942/21 "2022-01-25T19:18:15Z")

</div>

I have to try the `JLSO.jl` approach with `Makie.jl`

My original use case is when your are in a meeting, and discuss some data from an experiment or other result of some sorts, it would be nice to have figures where you can zoom, pan and where linked axis would work.

The closest to this is probably `PlotlyJS.jl` with an HTML export. You can even share the file. However, storing the data directly in the HTML as plain JSON is not very efficient.

---

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [January 28, 2022, 2:59pm UTC](https://discourse.julialang.org/t/matlab-figure-replacement/74942/22 "2022-01-28T14:59:48Z")

</div>

> [@gbellomia](#):
>
> Surely you can retrieve from the plot the angles and then update the script, but I see just ad more comfortable to just save the whole editable figure

What is more comfortable to you is obviously indisputable.  
In my own experience, I always found that a completely automated process is a win (eventually). So I would include the camera settings into the script and rerun the complete script each time. First advantage is that this solution is already available and the second is that when the data change you can reuse (or adapt, or enrich) the complete script. It is not a good solution if you want to share the output with non Julia user. An other issue maybe the TTFP to execute the script live (in this case I launch the script ahead of the presentation).

---

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [January 28, 2022, 3:01pm UTC](https://discourse.julialang.org/t/matlab-figure-replacement/74942/23 "2022-01-28T15:01:40Z")

</div>

Same arguments. Maybe the problem in your case is more precisely that you want to share the plot with non Julia users…

---

<div class="post-metadata">

**Author:** ![affans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/affans/32/11911_2.png) [@affans](https://discourse.julialang.org/u/affans)\
**Post date:** [January 28, 2022, 3:15pm UTC](https://discourse.julialang.org/t/matlab-figure-replacement/74942/24 "2022-01-28T15:15:58Z")

</div>

if you really want to save a text representation of the plot (perhaps even with the data embedded), I believe `gnuplot` could be a viable choice for you. Two packages exist in Julia that interface with gnuplot (but ofcourse you’d need to have gnuplot installed on your system)

---

<div class="post-metadata">

**Author:** ![blob](https://avatars.discourse-cdn.com/v4/letter/b/ebca7d/32.png) [@blob](https://discourse.julialang.org/u/blob)\
**Post date:** [October 30, 2023, 4:41pm UTC](https://discourse.julialang.org/t/matlab-figure-replacement/74942/25 "2023-10-30T16:41:04Z")

</div>

Hi, I wonder if there have been any changes with what could replace Matlab’s .fig files? Or any other way of doing: plot -\>save plot → send to someone → open and edit.

[Previous page](https://discourse.julialang.org/t/matlab-figure-replacement/74942.md?page=1)
