# How to render graphics in a file, without displaying the image on the screen?

**URL:** <https://root-forum.cern.ch/t/how-to-render-graphics-in-a-file-without-displaying-the-image-on-the-screen/28258>\
**Category:** Howto\
**Tags:** graphics\
**Created:** [March 9, 2018, 4:10pm UTC](https://root-forum.cern.ch/t/how-to-render-graphics-in-a-file-without-displaying-the-image-on-the-screen/28258 "2018-03-09T16:10:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 9, 2018, 4:10pm UTC](https://root-forum.cern.ch/t/how-to-render-graphics-in-a-file-without-displaying-the-image-on-the-screen/28258/1 "2018-03-09T16:10:00Z")

</div>

Run in batch mode:

```auto
root -b -q myscript.C

```

or in your program add:

```auto
gROOT->SetBatch();

```
