# Colors GLMakie

**URL:** <https://discourse.julialang.org/t/colors-glmakie/116515>\
**Category:** General Usage\
**Tags:** question, package, plotting\
**Created:** [July 2, 2024, 11:37am UTC](https://discourse.julialang.org/t/colors-glmakie/116515 "2024-07-02T11:37:57Z")\
**Posts on this page:** 2\
**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:** [July 2, 2024, 11:37am UTC](https://discourse.julialang.org/t/colors-glmakie/116515/1 "2024-07-02T11:37:57Z")

</div>

Hi!

I am using GLMakie to make plots. I would like to know what is the colorset used in this package. In other words, what is by default, the first color used ? the second ? etc

In fact, I want to plot 4 lines and I would like that the thrid line to be the same color as the first one (and the 4th line the same color as the second one). I really like colors in GLmakie, so I don’t want to use other colors.

Thanks,  
Nataline

```julia
f = Figure()
ax1 = Axis(f[1, 1], yticklabelcolor = :black,limits = ((round(location_peaks_6h[1],RoundDown), round(location_peaks_6h[end],RoundUp)), nothing))
# lines!(space_cracking,profile_3h, label = "3 h")
lines!(space_cracking,profile_4h, label = "4 h")
lines!(space_cracking,profile_6h, label = "6h")
lines!([0,20],[best_x0_4h])
lines!([0,20],[best_x0_6h])
axislegend(position = :lb)
f

```

---

<div class="post-metadata">

**Author:** ![fatteneder](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fatteneder/32/33991_2.png) [@fatteneder](https://discourse.julialang.org/u/fatteneder)\
**Post date:** [July 2, 2024, 11:52am UTC](https://discourse.julialang.org/t/colors-glmakie/116515/2 "2024-07-02T11:52:48Z")

</div>

This gives you the list of default colors:

```julia
julia> Makie.wong_colors()
7-element Array{RGBA{Float32},1} with eltype ColorTypes.RGBA{Float32}:
 RGBA{Float32}(0.0f0,0.44705883f0,0.69803923f0,1.0f0)
 RGBA{Float32}(0.9019608f0,0.62352943f0,0.0f0,1.0f0)
 RGBA{Float32}(0.0f0,0.61960787f0,0.4509804f0,1.0f0)
 RGBA{Float32}(0.8f0,0.4745098f0,0.654902f0,1.0f0)
 RGBA{Float32}(0.3372549f0,0.7058824f0,0.9137255f0,1.0f0)
 RGBA{Float32}(0.8352941f0,0.36862746f0,0.0f0,1.0f0)
 RGBA{Float32}(0.9411765f0,0.89411765f0,0.25882354f0,1.0f0)

```
