# Way to get default color order in Plots.jl?

**URL:** <https://discourse.julialang.org/t/way-to-get-default-color-order-in-plots-jl/12643>\
**Category:** General Usage\
**Tags:** question, plotting, plots\
**Created:** [July 25, 2018, 12:55am UTC](https://discourse.julialang.org/t/way-to-get-default-color-order-in-plots-jl/12643 "2018-07-25T00:55:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [July 25, 2018, 4:40pm UTC](https://discourse.julialang.org/t/way-to-get-default-color-order-in-plots-jl/12643/2 "2018-07-25T16:40:33Z")

</div>

Closing this. For future readers, the answer is:

```julia
get_color_palette(:auto, plot_color(:white), 17)

```

* * *

As in,

```julia
cur_colors = get_color_palette(:auto, plot_color(:white), 17)
pp = linspace(0,1)

plot()
for (cur_index, cur_color) in enumerate(cur_colors[1:7])
    plot!(pp, 0+pp+cur_index-7)
end
for (cur_index, cur_color) in enumerate(cur_colors[1:7])
    plot!(pp, 1-pp+cur_index-7, color=cur_color)
end
plot!()

```

 ![09%20PM](https://global.discourse-cdn.com/julialang/original/3X/f/0/f077d0caada6e0de80dcc683f7baddbc7cea4052.png)

---

_[View the full topic](https://discourse.julialang.org/t/way-to-get-default-color-order-in-plots-jl/12643)._
