# No legend using lines (and plots)

**URL:** <https://discourse.julialang.org/t/no-legend-using-lines-and-plots/115483>\
**Category:** New to Julia\
**Tags:** makie\
**Created:** [June 11, 2024, 3:27pm UTC](https://discourse.julialang.org/t/no-legend-using-lines-and-plots/115483 "2024-06-11T15:27:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NaSi](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@NaSi](https://discourse.julialang.org/u/NaSi)\
**Post date:** [June 11, 2024, 3:27pm UTC](https://discourse.julialang.org/t/no-legend-using-lines-and-plots/115483/1 "2024-06-11T15:27:45Z")

</div>

Hi ! I am a new user of Julia and I have some issues to show legends on my plots :

f = Figure()  
lines(f[1,1],time\_test,data[1,:], label=[“Time 1”], linewidth=3)

the legend of the curve should appear, right ?  
Thanks,  
NaSi

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [June 11, 2024, 3:30pm UTC](https://discourse.julialang.org/t/no-legend-using-lines-and-plots/115483/2 "2024-06-11T15:30:00Z")

</div>

You should specify which plotting package you are using. From your code I guess Makie, in which case you need `axislegend()`

> **[Legend | Makie](https://docs.makie.org/stable/reference/blocks/legend#Legend-Inside-An-Axis)**
>
> Create impressive data visualizations with Makie, the plotting ecosystem for the Julia language. Build aesthetic plots with beautiful customizable themes, control every last detail of publication quality vector graphics, assemble complex layouts and...

---

<div class="post-metadata">

**Author:** ![NaSi](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@NaSi](https://discourse.julialang.org/u/NaSi)\
**Post date:** [June 11, 2024, 3:48pm UTC](https://discourse.julialang.org/t/no-legend-using-lines-and-plots/115483/3 "2024-06-11T15:48:28Z")

</div>

Ah yes you’re right 😅 Sorry, I have started yesterday using Julia and I am kind of lost with packages

Thanks
