# Y-axis is missing from trace\_plots in pymc3

**URL:** <https://discourse.pymc.io/t/y-axis-is-missing-from-trace-plots-in-pymc3/10863>\
**Category:** v5\
**Tags:** arviz\
**Created:** [November 20, 2022, 2:17pm UTC](https://discourse.pymc.io/t/y-axis-is-missing-from-trace-plots-in-pymc3/10863 "2022-11-20T14:17:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dora\_V](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@Dora\_V](https://discourse.pymc.io/u/Dora_V)\
**Post date:** [November 20, 2022, 2:17pm UTC](https://discourse.pymc.io/t/y-axis-is-missing-from-trace-plots-in-pymc3/10863/1 "2022-11-20T14:17:23Z")

</div>

Hi,  
I am new to PyMC3 and I’m currently running my first codes regarding Bayesian Inference.

When I run my pm.Model () code, it returns the plot\_traces for my parameters, but without Y-axis values in the “plot\_dist” graph in the left area of the plot (namely the “Frequency” values). Both the axis label and the values are missing.

How could I overcome this? Are there any specific directions or lines of code to include in my model in order to appear the y-axis?

I would appreciate it if someone knows what is happening in this theme.  
Thank you in advance!

---

<div class="post-metadata">

**Author:** ![cluhmann](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/cluhmann/32/3083_2.png) [@cluhmann](https://discourse.pymc.io/u/cluhmann)\
**Post date:** [November 20, 2022, 6:23pm UTC](https://discourse.pymc.io/t/y-axis-is-missing-from-trace-plots-in-pymc3/10863/2 "2022-11-20T18:23:36Z")

</div>

Are you asking about the distributions included as part of `plot_trace()`? I think the intent of those is to provide information about the sampling procedure. If you are interested in exploring the distributions themselves, you might want to check out [`plot_dist()`](https://arviz-devs.github.io/arviz/api/generated/arviz.plot_dist.html)?

---

<div class="post-metadata">

**Author:** ![Dora\_V](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@Dora\_V](https://discourse.pymc.io/u/Dora_V)\
**Post date:** [November 20, 2022, 7:49pm UTC](https://discourse.pymc.io/t/y-axis-is-missing-from-trace-plots-in-pymc3/10863/3 "2022-11-20T19:49:04Z")

</div>

@cluhmann  
Thank you for your answer, I also see this direction.

Indeed, precisely in these distributions I’m referring to.  
Navigating to similar topics I see that some of these distributions have “Frequency” and “Sample value” labels as well as visible frequency values in their Y-axes (exactly at the left side of each plot), like the screenshot below:

 ![1](https://canada1.discourse-cdn.com/flex036/uploads/pymc3/original/2X/3/3a59b8f9a514104aeac49c7f3203407c255b54fd.png)

However, in my case, these values and labels are missing, as you can see in the image below:  
 ![Ladj-Bs Ανωδομή-Προβολοδόμηση](https://canada1.discourse-cdn.com/flex036/uploads/pymc3/original/2X/3/36aae5da6883b86a0903adc7d2d006c1a67e7699.png)

I would like to know if there is any differentiation in the code lines in the pm.Model() for extracting the two above plots.

P.S.: I ran some sample code from the Internet in my Jupyter Notebook to see if I get Y-axis labels and values, but even then it doesn’t show them.  
I’m wondering if it’s a pymc3 version issue or if I’ve missed the import of a specific library/package that imports the axes and their values.  
I can attach part of my code if you think it is necessary.

Thank you again!

---

<div class="post-metadata">

**Author:** ![cluhmann](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/cluhmann/32/3083_2.png) [@cluhmann](https://discourse.pymc.io/u/cluhmann)\
**Post date:** [November 21, 2022, 4:04pm UTC](https://discourse.pymc.io/t/y-axis-is-missing-from-trace-plots-in-pymc3/10863/4 "2022-11-21T16:04:07Z")

</div>

Strange. Well on the official documentation page for [`az.plot_trace()`](https://arviz-devs.github.io/arviz/api/generated/arviz.plot_trace.html), none of the examples have the y-axis labeled. But I’m not sure if that behavior has changed or if it’s an option that one can set. @OriolAbril ?

---

<div class="post-metadata">

**Author:** ![OriolAbril](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/oriolabril/32/2497_2.png) [@OriolAbril](https://discourse.pymc.io/u/OriolAbril)\
**Post date:** [December 29, 2022, 12:19am UTC](https://discourse.pymc.io/t/y-axis-is-missing-from-trace-plots-in-pymc3/10863/5 "2022-12-29T00:19:16Z")

</div>

Old versions (4+ years ago) probably had the axis labels added by default. This is no longer the case. Currently you’d need to manually add them using the array of axes returned by `plot_trace`.
