# Does Makie.save("name", scene) also save the legends on the plot automatically?

**URL:** <https://discourse.julialang.org/t/does-makie-save-name-scene-also-save-the-legends-on-the-plot-automatically/81492>\
**Category:** Visualization\
**Tags:** question, makie\
**Created:** [May 23, 2022, 7:12am UTC](https://discourse.julialang.org/t/does-makie-save-name-scene-also-save-the-legends-on-the-plot-automatically/81492 "2022-05-23T07:12:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nihilol1](https://avatars.discourse-cdn.com/v4/letter/n/ce7236/32.png) [@Nihilol1](https://discourse.julialang.org/u/Nihilol1)\
**Post date:** [May 23, 2022, 7:12am UTC](https://discourse.julialang.org/t/does-makie-save-name-scene-also-save-the-legends-on-the-plot-automatically/81492/1 "2022-05-23T07:12:45Z")

</div>

My simplified code looks as follows:  
using GLMakie

fig1 = Figure()  
ax1 = Axis(fig1[1,1], xlabel = “What”, ylabel = “is going on”)  
GLMakie.scatter!(ax1, xvalues, yvalues, makersize = 4, color = colours, label = “please help”)  
title\_of\_plot = “\path\to\folder\name.png”  
Makie.save(title\_of\_plot, fig1)  
axislegend(ax1, position=:lt, labelsize = 25)

It does save the plot with the correct name, but the legends/labels are not present.  
Am I passing it a wrong key-argument, or what?

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [May 23, 2022, 10:24am UTC](https://discourse.julialang.org/t/does-makie-save-name-scene-also-save-the-legends-on-the-plot-automatically/81492/2 "2022-05-23T10:24:14Z")

</div>

I don’t see you creating any legends, so I guess that’s why? Or what exactly is the problem?

---

<div class="post-metadata">

**Author:** ![Nihilol1](https://avatars.discourse-cdn.com/v4/letter/n/ce7236/32.png) [@Nihilol1](https://discourse.julialang.org/u/Nihilol1)\
**Post date:** [May 23, 2022, 10:50am UTC](https://discourse.julialang.org/t/does-makie-save-name-scene-also-save-the-legends-on-the-plot-automatically/81492/3 "2022-05-23T10:50:20Z")

</div>

I was creating legends, but after I used Makie.save(), so that was the issue. I have edited my original question, to showcase what happened.  
Thanks for the inspiration to fix it!

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [May 23, 2022, 4:56pm UTC](https://discourse.julialang.org/t/does-makie-save-name-scene-also-save-the-legends-on-the-plot-automatically/81492/4 "2022-05-23T16:56:32Z")

</div>

So is your issue solved?

---

<div class="post-metadata">

**Author:** ![Nihilol1](https://avatars.discourse-cdn.com/v4/letter/n/ce7236/32.png) [@Nihilol1](https://discourse.julialang.org/u/Nihilol1)\
**Post date:** [May 23, 2022, 7:05pm UTC](https://discourse.julialang.org/t/does-makie-save-name-scene-also-save-the-legends-on-the-plot-automatically/81492/5 "2022-05-23T19:05:20Z")

</div>

Yes, it is!

I had just put things in the wrong order.

Should I delete the question or let it remain?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [May 23, 2022, 7:53pm UTC](https://discourse.julialang.org/t/does-makie-save-name-scene-also-save-the-legends-on-the-plot-automatically/81492/6 "2022-05-23T19:53:34Z")

</div>

You can mark your own post as the solution

---

<div class="post-metadata">

**Author:** ![Nihilol1](https://avatars.discourse-cdn.com/v4/letter/n/ce7236/32.png) [@Nihilol1](https://discourse.julialang.org/u/Nihilol1)\
**Post date:** [May 23, 2022, 8:00pm UTC](https://discourse.julialang.org/t/does-makie-save-name-scene-also-save-the-legends-on-the-plot-automatically/81492/7 "2022-05-23T20:00:27Z")

</div>

Oh thanks!

I’m new on here, so not entirely sure how the community/site functions yet.
