# Combine two color channels in a plot / heatmap / image?

**URL:** <https://discourse.julialang.org/t/combine-two-color-channels-in-a-plot-heatmap-image/71008>\
**Category:** General Usage\
**Tags:** images, plotting\
**Created:** [November 5, 2021, 2:31pm UTC](https://discourse.julialang.org/t/combine-two-color-channels-in-a-plot-heatmap-image/71008 "2021-11-05T14:31:34Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![thompsonmj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thompsonmj/32/25172_2.png) [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Post date:** [November 5, 2021, 3:27pm UTC](https://discourse.julialang.org/t/combine-two-color-channels-in-a-plot-heatmap-image/71008/3 "2021-11-05T15:27:48Z")

</div>

Thanks for the hint, Tim. I’m still not clear what to write though to apply these ideas to produce an image with two channels that range from black for 0 to the specified colors for each channel.

It seems like I need to use `channelview` or `colorview`, but how do I apply the palette to the grayscale images? I guess I would need something like the `color_me` function from [this post](https://discourse.julialang.org/t/how-to-convert-a-matrix-to-an-rgb-image-using-images-jl/7265)? But it doesn’t accept my `ch1_grad` as a second argument, so I still can’t tell how to get my colors applied.

---

_[View the full topic](https://discourse.julialang.org/t/combine-two-color-channels-in-a-plot-heatmap-image/71008)._
