# Print only certain canvases

**URL:** <https://root-forum.cern.ch/t/print-only-certain-canvases/43923>\
**Category:** Newbie\
**Created:** [March 11, 2021, 9:09am UTC](https://root-forum.cern.ch/t/print-only-certain-canvases/43923 "2021-03-11T09:09:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alan\_H](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/3d9bf3/32.png) [@Alan\_H](https://root-forum.cern.ch/u/Alan_H)\
**Post date:** [March 11, 2021, 9:09am UTC](https://root-forum.cern.ch/t/print-only-certain-canvases/43923/1 "2021-03-11T09:09:51Z")

</div>

Hi,

Is there a way to only print certain canvases?  
I have several stacked histograms (for each I created a canvas because I need them separated) but when my program ends I will like to just see 3 or 4 of them, and leave the rest saved but not printed.  
I know I can just run it in batch mode and then open the file with the plots, but it’s faster if I could just plot the 3 or 4 of interest when I want.

Thanks.

ROOT Version: 6.22/02  
Built for macosx64 on Aug 17 2020, 12:46:52  
From tags/v6-22-02@v6-22-02

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [March 11, 2021, 9:15am UTC](https://root-forum.cern.ch/t/print-only-certain-canvases/43923/2 "2021-03-11T09:15:33Z")

</div>

`delete pointer_to_a_canvas_that_you_do_not_want;`
