# Setting both color maps and opacity when plotting rasters and heatmaps with Makie

**URL:** <https://discourse.julialang.org/t/setting-both-color-maps-and-opacity-when-plotting-rasters-and-heatmaps-with-makie/133600>\
**Category:** Visualization\
**Tags:** makie, rasters\
**Created:** [November 2, 2025, 6:48am UTC](https://discourse.julialang.org/t/setting-both-color-maps-and-opacity-when-plotting-rasters-and-heatmaps-with-makie/133600 "2025-11-02T06:48:48Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![aplavin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aplavin/32/222056_2.png) [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Post date:** [November 2, 2025, 1:51pm UTC](https://discourse.julialang.org/t/setting-both-color-maps-and-opacity-when-plotting-rasters-and-heatmaps-with-makie/133600/3 "2025-11-02T13:51:31Z")

</div>

See a small `imagealpha()` recipe I shared some time ago here on discourse: [How to implement Value Suppressing Colormaps in Makie - #6 by aplavin](https://discourse.julialang.org/t/how-to-implement-value-suppressing-colormaps-in-makie/129140/6)  
Maybe `image()` should just support `alpha=matrix` natively?..

---

_[View the full topic](https://discourse.julialang.org/t/setting-both-color-maps-and-opacity-when-plotting-rasters-and-heatmaps-with-makie/133600)._
