# Histogram not displaying after program finishes running

**URL:** <https://root-forum.cern.ch/t/histogram-not-displaying-after-program-finishes-running/58453>\
**Category:** ROOT\
**Tags:** graphics, hist\
**Created:** [March 9, 2024, 2:21pm UTC](https://root-forum.cern.ch/t/histogram-not-displaying-after-program-finishes-running/58453 "2024-03-09T14:21:51Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [March 11, 2024, 6:29am UTC](https://root-forum.cern.ch/t/histogram-not-displaying-after-program-finishes-running/58453/5 "2024-03-11T06:29:03Z")

</div>

Are you running an Xserver? Try this:

> [@Root Installation on WSL Ubuntu](https://root-forum.cern.ch/t/root-installation-on-wsl-ubuntu/42634/6):
>
> WSL does not have a graphics server. You need to install (and keep running) an X server like Xming or [VcXsrv](https://sourceforge.net/projects/vcxsrv/), and add this line at the end of your ~/.bashrc export DISPLAY=localhost:0

(the X server has to be running before you open a WSL terminal).  
More here:

> [@ROOT on Windows 11 WSL2 / WSLg](https://root-forum.cern.ch/t/root-on-windows-11-wsl2-wslg/48348):
>
> Dear experts/developers, I installed the latest ROOT (6.24/06) on a Windows 11 with WSL2 (which has native GUI support) and found a weird problem with graphics. Some details: It is not a fresh Windows, but updated from W10, although it did not have WSL installed before, so it is a fresh WSL install. As per the recommended ROOT instructions with this post from @James-Carroll and MicroSoft’s instructions for WSL, I did this (with reboots where needed): Turned on these Windows features: “…

---

_[View the full topic](https://root-forum.cern.ch/t/histogram-not-displaying-after-program-finishes-running/58453)._
