# Histogram produced by wandb.plot.histogram is incorrect

**URL:** <https://community.wandb.ai/t/histogram-produced-by-wandb-plot-histogram-is-incorrect/4113>\
**Category:** W&B Help\
**Created:** [March 24, 2023, 6:25am UTC](https://community.wandb.ai/t/histogram-produced-by-wandb-plot-histogram-is-incorrect/4113 "2023-03-24T06:25:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephan-rabanser](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@stephan-rabanser](https://community.wandb.ai/u/stephan-rabanser)\
**Post date:** [March 24, 2023, 6:25am UTC](https://community.wandb.ai/t/histogram-produced-by-wandb-plot-histogram-is-incorrect/4113/1 "2023-03-24T06:25:32Z")

</div>

I am trying to plot a histogram over a score I am computing. I followed these guidelines to log a single histogram at the end of training:

- [Weights & Biases](https://wandb.ai/wandb/plots/reports/Creating-Custom-Histograms-With-Weights-Biases--VmlldzoyNzE0NzM)
- [Log and Track Plots from W&B Experiments.](https://docs.wandb.ai/guides/track/log/plots)

The underlying data table is correctly uploaded to my run but the displayed histogram (figure left side) is clearly wrong as verified by both Excel (figure top right side) and matplotlib (figure bottom right side).

 ![Screenshot 2023-03-24 at 2.24.38 AM](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/5/52885b1751484d6ea113becd22b13762ef119f60.jpeg)

Any hints towards debugging this would be highly appreciated!

---

<div class="post-metadata">

**Author:** ![luis\_bergua](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@luis\_bergua](https://community.wandb.ai/u/luis_bergua)\
**Post date:** [April 1, 2023, 3:39am UTC](https://community.wandb.ai/t/histogram-produced-by-wandb-plot-histogram-is-incorrect/4113/2 "2023-04-01T03:39:29Z")

</div>

Hi @stephan-rabanser, thanks for reporting this! It is actually an already know bug on our end related to the vega spec so I’ll add you to the ticket as well. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [May 31, 2023, 3:40am UTC](https://community.wandb.ai/t/histogram-produced-by-wandb-plot-histogram-is-incorrect/4113/3 "2023-05-31T03:40:16Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
