# I want my histogram to remain in the screen

**URL:** <https://root-forum.cern.ch/t/i-want-my-histogram-to-remain-in-the-screen/57078>\
**Category:** Newbie\
**Tags:** hist, root\
**Created:** [November 10, 2023, 11:12am UTC](https://root-forum.cern.ch/t/i-want-my-histogram-to-remain-in-the-screen/57078 "2023-11-10T11:12:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gursharan\_singh](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/gursharan_singh/32/35000_2.png) [@Gursharan\_singh](https://root-forum.cern.ch/u/Gursharan_singh)\
**Post date:** [November 10, 2023, 11:12am UTC](https://root-forum.cern.ch/t/i-want-my-histogram-to-remain-in-the-screen/57078/1 "2023-11-10T11:12:28Z")

</div>

I want my histogram to remain on the screen but when I delete the dynamics memory of it, so its disappears so whats the good option that I got my plot and also delete the dynamic allocated memories as well or does root do itself when I cross the canvas.

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [November 10, 2023, 11:54am UTC](https://root-forum.cern.ch/t/i-want-my-histogram-to-remain-in-the-screen/57078/2 "2023-11-10T11:54:40Z")

</div>

Hi,

Bear with my guessing (not a lot of context is being shared here), but I think what you are after is either a delayed deletion of your drawn entities, such as histograms, or the method _::DrawClone_.

I hope this helps.

Cheers,  
D
