# Line Color Sequence in Plots.jl

**URL:** <https://discourse.julialang.org/t/line-color-sequence-in-plots-jl/10390>\
**Category:** Visualization\
**Created:** [April 17, 2018, 2:40pm UTC](https://discourse.julialang.org/t/line-color-sequence-in-plots-jl/10390 "2018-04-17T14:40:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gideonsimpson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gideonsimpson/32/1928_2.png) [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Post date:** [April 17, 2018, 2:40pm UTC](https://discourse.julialang.org/t/line-color-sequence-in-plots-jl/10390/1 "2018-04-17T14:40:45Z")

</div>

For `Plots.jl`, is there a way to manually access/iterate through the default line color sequence? I know that in the latest matplotlib, it’s default sequence is labeled `C0`, `C1`, etc. Is there an analog here?

---

<div class="post-metadata">

**Author:** ![daschw](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daschw/32/2926_2.png) [@daschw](https://discourse.julialang.org/u/daschw)\
**Post date:** [April 17, 2018, 3:06pm UTC](https://discourse.julialang.org/t/line-color-sequence-in-plots-jl/10390/2 "2018-04-17T15:06:08Z")

</div>

`palette(thm::Symbol)` returns an array of the default palette colors of a [PlotTheme](https://github.com/JuliaPlots/PlotThemes.jl). So `palette(:default)` returns an array of the default palette colors.  
Within a plot command or recipe you can use an integer `i` to access the `i`th element of the default colors, e.g. `plot(rand(10), color = 4)`.
