# How to color surfaces of Shape objects according to categorical values?

**URL:** <https://discourse.julialang.org/t/how-to-color-surfaces-of-shape-objects-according-to-categorical-values/42556>\
**Category:** New to Julia\
**Tags:** plotting\
**Created:** [July 5, 2020, 2:20pm UTC](https://discourse.julialang.org/t/how-to-color-surfaces-of-shape-objects-according-to-categorical-values/42556 "2020-07-05T14:20:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gedankenexperiment](https://avatars.discourse-cdn.com/v4/letter/g/a183cd/32.png) [@gedankenexperiment](https://discourse.julialang.org/u/gedankenexperiment)\
**Post date:** [July 5, 2020, 2:20pm UTC](https://discourse.julialang.org/t/how-to-color-surfaces-of-shape-objects-according-to-categorical-values/42556/1 "2020-07-05T14:20:27Z")

</div>

I’m using `fill_z` to color surfaces inside `Shape()` objects. I have a column that has categorical data. But `fill_z` only accepts type float. I mean I can have an additional column with float values, but if I for example only have two cases, using `1.0` and `2.0`, it doesn’t color the two different cases accordingly. Does anyone have a solution to this dilemma?
