# Makie cycle palette acress all axis?

**URL:** <https://discourse.julialang.org/t/makie-cycle-palette-acress-all-axis/87702>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [September 23, 2022, 2:36pm UTC](https://discourse.julialang.org/t/makie-cycle-palette-acress-all-axis/87702 "2022-09-23T14:36:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rongcuid](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rongcuid/32/42911_2.png) [@rongcuid](https://discourse.julialang.org/u/rongcuid)\
**Post date:** [September 23, 2022, 2:36pm UTC](https://discourse.julialang.org/t/makie-cycle-palette-acress-all-axis/87702/1 "2022-09-23T14:36:21Z")

</div>

I have a figure with two axis, and I want them to share the same color cycle:

```julia
fig = Figure()
ax1 = Axis(fig[1, 1], xscale=log2)
ax2 = Axis(fig[1, 1], yaxisposition = :right)
lines!(ax1, ...)
lines!(ax2, ...)

```

I would like the two `lines` to plot different colors, as if I am cycling the colors on the same palette. Is it possible?

---

<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:** [September 23, 2022, 4:01pm UTC](https://discourse.julialang.org/t/makie-cycle-palette-acress-all-axis/87702/2 "2022-09-23T16:01:13Z")

</div>

No but you can use `color = Cycled(2)` to access the second cycle color directly.

---

<div class="post-metadata">

**Author:** ![rongcuid](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rongcuid/32/42911_2.png) [@rongcuid](https://discourse.julialang.org/u/rongcuid)\
**Post date:** [September 23, 2022, 5:19pm UTC](https://discourse.julialang.org/t/makie-cycle-palette-acress-all-axis/87702/3 "2022-09-23T17:19:31Z")

</div>

Not ideal, but I guess this would suffice for my need now.
