# Ylabels in pm.forestplot

**URL:** <https://discourse.pymc.io/t/ylabels-in-pm-forestplot/3880>\
**Category:** Questions\
**Created:** [September 20, 2019, 3:35pm UTC](https://discourse.pymc.io/t/ylabels-in-pm-forestplot/3880 "2019-09-20T15:35:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luca\_giacomel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/luca_giacomel/32/365_2.png) [@luca\_giacomel](https://discourse.pymc.io/u/luca_giacomel)\
**Post date:** [September 20, 2019, 3:35pm UTC](https://discourse.pymc.io/t/ylabels-in-pm-forestplot/3880/1 "2019-09-20T15:35:41Z")

</div>

I used to be able to do `pm.forestplot(...,ylabels=array_of_labels)`, but with the arviz integration it looks like I can’t anymore. Any idea on how to do this now?

---

<div class="post-metadata">

**Author:** ![colcarroll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/colcarroll/32/9_2.png) [@colcarroll](https://discourse.pymc.io/u/colcarroll)\
**Post date:** [September 20, 2019, 5:51pm UTC](https://discourse.pymc.io/t/ylabels-in-pm-forestplot/3880/2 "2019-09-20T17:51:19Z")

</div>

The APIs are pretty complicated, so we tried to fall back to “base matplotlib” when possible. In this case, `pm.forestplot` returns a `figure` and an array of `axes`, so you can use

```python
fig, ax = pm.plot_forest(trace, var_names='theta')
ax[0].set_yticklabels(range(10, 18));

```

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pymc3/original/2X/8/8f8bd391f30a5dede0bed6921a87eecb862f7524.png)

---

<div class="post-metadata">

**Author:** ![luca\_giacomel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/luca_giacomel/32/365_2.png) [@luca\_giacomel](https://discourse.pymc.io/u/luca_giacomel)\
**Post date:** [September 23, 2019, 5:13pm UTC](https://discourse.pymc.io/t/ylabels-in-pm-forestplot/3880/3 "2019-09-23T17:13:07Z")

</div>

thanks, for the record, it looks like they should be passed in the reversed order. gave me a bit of headache. so it should be `ax[0].set_yticklabels(ylabels[::-1]);`
