# Video about Mapping Data to Color Using Array Attributes in Makie

**URL:** <https://discourse.julialang.org/t/video-about-mapping-data-to-color-using-array-attributes-in-makie/69374>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [October 7, 2021, 2:33pm UTC](https://discourse.julialang.org/t/video-about-mapping-data-to-color-using-array-attributes-in-makie/69374 "2021-10-07T14:33:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Fleischhacker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adam_fleischhacker/32/24468_2.png) [@Adam\_Fleischhacker](https://discourse.julialang.org/u/Adam_Fleischhacker)\
**Post date:** [October 7, 2021, 2:33pm UTC](https://discourse.julialang.org/t/video-about-mapping-data-to-color-using-array-attributes-in-makie/69374/1 "2021-10-07T14:33:56Z")

</div>

Hi All:

This community has helped me to learn Makie and I am trying to give back. I made a video about mapping data to color using array attributes. See here:

[Mapping Data to Colors in Makie.jl Using Array Attributes (guide for grammar-of-graphics lovers)](https://youtu.be/5jUerWOljeg)

Please feel free to critique and comment on my code or presentation as I am just learning. The [code is on github (link)](https://raw.githubusercontent.com/flyaflya/juliaVideosCode/main/makie.jl).

Thanks to all the Makie devs and discourse participants for guidance. -Adam

---

<div class="post-metadata">

**Author:** ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)\
**Post date:** [October 7, 2021, 3:19pm UTC](https://discourse.julialang.org/t/video-about-mapping-data-to-color-using-array-attributes-in-makie/69374/2 "2021-10-07T15:19:38Z")

</div>

Looks very nice! I just scrolled to the video (can’t use sound right now) so maybe my answer is in there, but I’m wondering if you know of AlgebraOfGraphics? I think you might like it (see [Tutorial 🐧 · Algebra of Graphics](http://juliaplots.org/AlgebraOfGraphics.jl/stable/generated/penguins/)).

---

<div class="post-metadata">

**Author:** ![Adam\_Fleischhacker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adam_fleischhacker/32/24468_2.png) [@Adam\_Fleischhacker](https://discourse.julialang.org/u/Adam_Fleischhacker)\
**Post date:** [October 7, 2021, 3:49pm UTC](https://discourse.julialang.org/t/video-about-mapping-data-to-color-using-array-attributes-in-makie/69374/3 "2021-10-07T15:49:50Z")

</div>

Thanks for the comment and suggestion! I absolutely love the potential of AlgebraOfGraphics(AOG) and meant to talk about in the video, but the video got too long and I omitted this discussion.

My biggest problem with AOG is that it is not a complete graphical system compared to something like ggplot2 in R. So what ends up happening for me when I want to customize a plot, I need to use a lot of Makie syntax and the combination of Makie + AOG syntax ends up like some kind of Frankenstein’s monster. See this discussion for example: [Replacing only the data layer of points in a Makie figure with protrusions](https://discourse.julialang.org/t/replacing-only-the-data-layer-of-points-in-a-makie-figure-with-protrusions/68478)

So if I go into a plotting objective and there is a chance I might want to customize things, I stay in pure Makie. If I am doing some exploratory analysis and am less concerned about final formatting, then AOG is really cool and helpful. If I am learning a viz system in Julia for the first time, mastering the main components of Makie (e.g. figure, axis, plot, plotting functions(scatterplot, lines,barpot), legend, colorbar) should come first as AOG is incomplete and hence, that is why I currently focused my lesson on learning to manually do the mappings in Makie.

---

<div class="post-metadata">

**Author:** ![vtomar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vtomar/32/18304_2.png) [@vtomar](https://discourse.julialang.org/u/vtomar)\
**Post date:** [October 8, 2021, 11:34pm UTC](https://discourse.julialang.org/t/video-about-mapping-data-to-color-using-array-attributes-in-makie/69374/4 "2021-10-08T23:34:55Z")

</div>

Thank you. I have watched it. Please continue making videos.
