# Makie ecdfplot color

**URL:** <https://discourse.julialang.org/t/makie-ecdfplot-color/116675>\
**Category:** Visualization\
**Tags:** question, plotting, makie\
**Created:** [July 5, 2024, 5:44pm UTC](https://discourse.julialang.org/t/makie-ecdfplot-color/116675 "2024-07-05T17:44:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VincentPoupart](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vincentpoupart/32/49479_2.png) [@VincentPoupart](https://discourse.julialang.org/u/VincentPoupart)\
**Post date:** [July 5, 2024, 5:44pm UTC](https://discourse.julialang.org/t/makie-ecdfplot-color/116675/1 "2024-07-05T17:44:38Z")

</div>

Hi everyone, I have problems with changing the curves color in Makie ecdfplot:

```julia
f14 = Figure(size = (700, 450))
ax14 = Axis(f14[1,1], title = "Cumulative distribution long axis orientation, n = $(nrow(filtered_df))", xlabel = "Long axis orientation (degrees)", ylabel = "fraction")
DPaxis = ecdfplot!(ax14, filtered_df[!, :MeanOrientationCtoDP], color = :green)
rachis = ecdfplot!(ax14, filtered_df[!, :MeanAnglesLongAxisRachis], color = :blue)
random = lines!(ax14, collect(0:0.5:90), -cos.(collect(0:0.5:90).*pi/180) .+1, color = :orange)
Legend(f14[1,2], [DPaxis, rachis, random], ["D/P axis", "rachis normal vector", "theoretical random"])
display(f14)

```

![image](https://global.discourse-cdn.com/julialang/original/3X/7/e/7e2280f1d9c1a85334e44256022580bef46a7136.png)

Do you have a solution?

---

<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:** [July 5, 2024, 8:32pm UTC](https://discourse.julialang.org/t/makie-ecdfplot-color/116675/2 "2024-07-05T20:32:16Z")

</div>

That’s a known issue since the last version, already filed. As a hack you could probably set `plt.plots[1].color` where plt is the ecdfplot object

---

<div class="post-metadata">

**Author:** ![VincentPoupart](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vincentpoupart/32/49479_2.png) [@VincentPoupart](https://discourse.julialang.org/u/VincentPoupart)\
**Post date:** [July 5, 2024, 9:22pm UTC](https://discourse.julialang.org/t/makie-ecdfplot-color/116675/3 "2024-07-05T21:22:05Z")

</div>

Thank you jules
