# Stack different color palettes in a single plot

**URL:** https://discourse.julialang.org/t/stack-different-color-palettes-in-a-single-plot/92076
**Category:** General Usage
**Tags:** plotting, colors, plots
**Created:** [December 24, 2022, 4:21am UTC](https://discourse.julialang.org/t/stack-different-color-palettes-in-a-single-plot/92076 "2022-12-24T04:21:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jose\_Diaz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jose_diaz/32/43750_2.png) [@Jose\_Diaz](https://discourse.julialang.org/u/Jose_Diaz)
#### Post date: [December 24, 2022, 4:21am UTC](https://discourse.julialang.org/t/stack-different-color-palettes-in-a-single-plot/92076/1 "2022-12-24T04:21:13Z")

</div>

Hello!

Let’s say I have the following code.

```julia
using Plots

plots = palette.([:leonardo, :autumn])

```

By doing that, I create a Vector{ColorPalette}, but actually I’d like to stack and display both color palettes (hopefully even with the names).Maybe there is a solution where I can create a grid and then display them. How could I do it?

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [December 24, 2022, 12:02pm UTC](https://discourse.julialang.org/t/stack-different-color-palettes-in-a-single-plot/92076/2 "2022-12-24T12:02:54Z")

</div>

This would stack the two:

```julia
using Plots, ColorSchemes
colors = [ColorSchemes.leonardo.colors; ColorSchemes.autumn.colors]
heatmap(rand(10,10), c=palette(colors))

```

NB: or just `c=colors`

![Plots_ColorSchemes_stacked](https://global.discourse-cdn.com/julialang/original/3X/d/8/d8aaa36febc8bf8779319b95e878c2fb5da94ddc.png)
