# Saving plot like in Matlab

**URL:** https://discourse.julialang.org/t/saving-plot-like-in-matlab/22871
**Category:** New to Julia
**Tags:** plotting
**Created:** [April 7, 2019, 2:11pm UTC](https://discourse.julialang.org/t/saving-plot-like-in-matlab/22871 "2019-04-07T14:11:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![11110](https://avatars.discourse-cdn.com/v4/letter/1/e19adc/32.png) [@11110](https://discourse.julialang.org/u/11110)
#### Post date: [April 7, 2019, 2:11pm UTC](https://discourse.julialang.org/t/saving-plot-like-in-matlab/22871/1 "2019-04-07T14:11:33Z")

</div>

Hello everyone!  
I want to save my plot in Julia in helpful format:  
Matlab has a format .fig . Saving the chart in this format gives some pluses:

- When the graph approaches, the axes remain visible.
- When you click on the point from the chart you can see the coordinates of this points.  
Is there such a format for saving a chart in Julia?

Перевод на русский язык:

Всем привет!  
Я хочу сохранить свой сюжет в Julia в “полезном” формате:  
Matlab имеет формат .fig. Сохранение графика в этом формате даёт некоторые плюсы:

- При приближении в области графика, оси остаются видимыми.
- При нажатии на точку на графике можно увидеть координаты этой точки.  
Есть ли такой формат для сохранения графика в Julia?

---

<div class="post-metadata">

### Author: ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)
#### Post date: [April 7, 2019, 2:37pm UTC](https://discourse.julialang.org/t/saving-plot-like-in-matlab/22871/2 "2019-04-07T14:37:25Z")

</div>

For [VegaLite.jl](https://github.com/fredo-dedup/VegaLite.jl) you can save plots as `.vegalite` files. That format is purely declarative and allows for full round tripping of the figure. In practice that means you can load the figure from the file in Julia, or you can also for example just open this file in JupyterLab and look at the figure. Not sure that is exactly what you are looking for, though 🙂

---

<div class="post-metadata">

### Author: ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)
#### Post date: [November 30, 2019, 10:53pm UTC](https://discourse.julialang.org/t/saving-plot-like-in-matlab/22871/3 "2019-11-30T22:53:36Z")

</div>

A nice way to do this is to save it using [JLD2.jl](https://github.com/JuliaIO/JLD2.jl).
