# Heat Map with Categorical axes

**URL:** <https://discourse.julialang.org/t/heat-map-with-categorical-axes/9901>\
**Category:** New to Julia\
**Created:** [March 22, 2018, 4:18pm UTC](https://discourse.julialang.org/t/heat-map-with-categorical-axes/9901 "2018-03-22T16:18:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanjay\_chawla](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@sanjay\_chawla](https://discourse.julialang.org/u/sanjay_chawla)\
**Post date:** [March 22, 2018, 4:18pm UTC](https://discourse.julialang.org/t/heat-map-with-categorical-axes/9901/1 "2018-03-22T16:18:37Z")

</div>

I am trying to use StatPlots to create a heat map with categorical axes in v0.6

I have tried;  
X = rand(3,3)  
S = [“a”, “b”, “c”]  
StatPlots.heatmap(X, xticks=S)

---

<div class="post-metadata">

**Author:** ![jw3126](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jw3126/32/3086_2.png) [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Post date:** [March 22, 2018, 9:03pm UTC](https://discourse.julialang.org/t/heat-map-with-categorical-axes/9901/2 "2018-03-22T21:03:36Z")

</div>

```julia
julia> using Plots

julia> heatmap(["A", "B"], ["foo", "bar"], randn(2,2))

```
