# Histogram over time

**URL:** <https://community.wandb.ai/t/histogram-over-time/5494>\
**Category:** W&B Help\
**Created:** [December 5, 2023, 10:12am UTC](https://community.wandb.ai/t/histogram-over-time/5494 "2023-12-05T10:12:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstein06](https://avatars.discourse-cdn.com/v4/letter/c/7ab992/32.png) [@cstein06](https://community.wandb.ai/u/cstein06)\
**Post date:** [December 5, 2023, 10:12am UTC](https://community.wandb.ai/t/histogram-over-time/5494/1 "2023-12-05T10:12:25Z")

</div>

Hi all,

I would like to have a plot of multiple histograms, that I log over time, like in the figure attached. They are the activations of units in a layer, thus ‘wandb.watch()’ doesn’t work, as it is only for gradients and parameters, right?

I’m using the standard histogram code, and it shows the latest version of the histogram, not all of them over time.  
“”“”  
def hook(model, input, output):  
data = [[x.item()] for x in output.flatten()]  
table = wandb.Table(data=data, columns=[“activations”])  
wandb.log({f’layer\_hist’: wandb.plot.histogram(table, “activations”,  
title=f"activations")})  
“”"

Is there a way to get the histogram over time plot?

Thanks, Carlos

 ![watch](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/8/8e342a9cc5ea3410e9ec74b1acf7c4232d7944f2.png)

---

<div class="post-metadata">

**Author:** ![nathank](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nathank](https://community.wandb.ai/u/nathank)\
**Post date:** [December 7, 2023, 11:00pm UTC](https://community.wandb.ai/t/histogram-over-time/5494/2 "2023-12-07T23:00:12Z")

</div>

Hi @cstein06,  
If you go to edit the chart and change from the summary table to the history table. Then you can edit the chart specs and add a step slider to visualize this over time. Let me know if this helps.

 ![Screen Shot 2023-12-07 at 3.58.18 PM](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/0/0bc21fa567d5e45195e74eec67dae371870be9d9.png)

 ![Screen Shot 2023-12-07 at 3.59.09 PM](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/9/93d32d6bef6167f99f58f550736b3bc752a97062.png)  
1G19Vs7tcBzpH15GSvJgIemBYmt.png)

---

<div class="post-metadata">

**Author:** ![nathank](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nathank](https://community.wandb.ai/u/nathank)\
**Post date:** [December 13, 2023, 4:07pm UTC](https://community.wandb.ai/t/histogram-over-time/5494/3 "2023-12-13T16:07:36Z")

</div>

Hi @cstein06, I’ll close this out since I believe this should solve your issue but feel free to ping me here if you have any other questions or this doesn’t resolve this for you.

Thank you,  
Nate

---

<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:** [February 11, 2024, 4:07pm UTC](https://community.wandb.ai/t/histogram-over-time/5494/4 "2024-02-11T16:07:45Z")

</div>

Closed on February 11, 2024, 4:07pm UTC

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