# Makie plots with color cycles and color palettes

**URL:** https://discourse.julialang.org/t/makie-plots-with-color-cycles-and-color-palettes/53745
**Category:** Visualization
**Tags:** plotting, makie
**Created:** [January 21, 2021, 9:29pm UTC](https://discourse.julialang.org/t/makie-plots-with-color-cycles-and-color-palettes/53745 "2021-01-21T21:29:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Krastanov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/krastanov/32/6817_2.png) [@Krastanov](https://discourse.julialang.org/u/Krastanov)
#### Post date: [January 21, 2021, 9:29pm UTC](https://discourse.julialang.org/t/makie-plots-with-color-cycles-and-color-palettes/53745/1 "2021-01-21T21:29:17Z")

</div>

Makie seems really exciting, but when I tried it as part of my workflow, I found it lacks a rather basic feature.

It seems that Makie does not have working color cycles (automatically picking up a new color for each new line in a plot). The lack of automation does not bother me too much as even in matplotlib I frequently just put these colors by hand.

**However** , picking up custom but pretty colors from a palette seems very clunky (personal subjective opinion) and under documented (I think that is fairly objective). The majority of the examples in the gallery just use :red :blue :green which definitely detracts from the visual appeal and legibility.

In matplotlib I can pick the default palette and just use “C1”, “C2”, etc as references to these colors. **What is the “standard” way in Makie to draw a couple of lines colored by colors from a pretty palette?** Something that does not require boilerplate hopefully? Any chance this advice can be added to the tutorial/gallery instead of using the :red :green :blue lines? (Happy to make the edits if I know what the Makie invocation looks like)

---

<div class="post-metadata">

### Author: ![Krastanov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/krastanov/32/6817_2.png) [@Krastanov](https://discourse.julialang.org/u/Krastanov)
#### Post date: [January 21, 2021, 9:31pm UTC](https://discourse.julialang.org/t/makie-plots-with-color-cycles-and-color-palettes/53745/2 "2021-01-21T21:31:58Z")

</div>

These are some pages I went through before writing the post:

[http://juliaplots.org/MakieReferenceImages/gallery/index.html](http://juliaplots.org/MakieReferenceImages/gallery/index.html) and in particular the following examples:

- [http://juliaplots.org/MakieReferenceImages/gallery//tutorial\_removing\_from\_a\_scene/index.html](http://juliaplots.org/MakieReferenceImages/gallery//tutorial_removing_from_a_scene/index.html)
- [http://juliaplots.org/MakieReferenceImages/gallery//color\_1/index.html](http://juliaplots.org/MakieReferenceImages/gallery//color_1/index.html)
- [http://juliaplots.org/MakieReferenceImages/gallery//simple\_line\_plot/index.html](http://juliaplots.org/MakieReferenceImages/gallery//simple_line_plot/index.html)

[https://github.com/JuliaPlots/Makie.jl/issues/189](https://github.com/JuliaPlots/Makie.jl/issues/189)  
[https://github.com/JuliaPlots/AbstractPlotting.jl/pull/37](https://github.com/JuliaPlots/AbstractPlotting.jl/pull/37)

---

<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: [January 23, 2021, 8:23am UTC](https://discourse.julialang.org/t/makie-plots-with-color-cycles-and-color-palettes/53745/3 "2021-01-23T08:23:45Z")

</div>

I don’t know what the reasons were that something like this wasn’t added before, but I’m currently trying to add attribute cycling in this PR.

It is a bit trickier than it looks on first glance if I try to make everything as customizable for the end user as possible while also making it simple to use.

[https://github.com/JuliaPlots/AbstractPlotting.jl/pull/609](https://github.com/JuliaPlots/AbstractPlotting.jl/pull/609)

---

<div class="post-metadata">

### Author: ![Krastanov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/krastanov/32/6817_2.png) [@Krastanov](https://discourse.julialang.org/u/Krastanov)
#### Post date: [November 30, 2022, 11:04am UTC](https://discourse.julialang.org/t/makie-plots-with-color-cycles-and-color-palettes/53745/4 "2022-11-30T11:04:47Z")

</div>

I am occasionally getting notifications from this old post, so I wanted to note:

# Color cycles are now wonderfully supported by Makie

See Cyclers and Palettes in the following

[https://docs.makie.org/v0.18.3/documentation/theming/index.html#cycles](https://docs.makie.org/v0.18.3/documentation/theming/index.html#cycles)
