# Discrete categories on y axis

**URL:** https://forum.generic-mapping-tools.org/t/discrete-categories-on-y-axis/6147
**Category:** Q&A
**Created:** [July 29, 2025, 10:13am UTC](https://forum.generic-mapping-tools.org/t/discrete-categories-on-y-axis/6147 "2025-07-29T10:13:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![RunningWild](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@RunningWild](https://forum.generic-mapping-tools.org/u/RunningWild)
#### Post date: [July 29, 2025, 10:13am UTC](https://forum.generic-mapping-tools.org/t/discrete-categories-on-y-axis/6147/1 "2025-07-29T10:13:46Z")

</div>

Hi all,

I was looking at plots, and specifically horizontal bars. I was wondering, what if I wanted to have discrete categories on the y-axis?

In the cookbook it’s always numerical, and controlled by -B. Can I feed a file into B?

If I had 10 employees, e.g. Alice, Bob etc and I wanted their names on the y axis, and date on the x-axis how would I do this? Image of concept attached.

 ![concept](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/5/5e464837906453c33e4daf65c4371619d82da2ff.jpeg)

Thanks!

---

<div class="post-metadata">

### Author: ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)
#### Post date: [July 29, 2025, 10:46am UTC](https://forum.generic-mapping-tools.org/t/discrete-categories-on-y-axis/6147/2 "2025-07-29T10:46:21Z")

</div>

See [custom axes](https://docs.generic-mapping-tools.org/dev/reference/options.html#custom-axes)

---

<div class="post-metadata">

### Author: ![RunningWild](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@RunningWild](https://forum.generic-mapping-tools.org/u/RunningWild)
#### Post date: [August 7, 2025, 1:37pm UTC](https://forum.generic-mapping-tools.org/t/discrete-categories-on-y-axis/6147/3 "2025-08-07T13:37:36Z")

</div>

Thanks Joaquim, I was able to do it thanks to your guidance:

 ![Stats_censored](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/e/e44161b7cb9ee5682436a8317f658c619aa26aa2.jpeg)
