# Grid, axis and "numbers" of a histogram

**URL:** <https://root-forum.cern.ch/t/grid-axis-and-numbers-of-a-histogram/5947>\
**Category:** ROOT\
**Created:** [January 23, 2008, 3:32pm UTC](https://root-forum.cern.ch/t/grid-axis-and-numbers-of-a-histogram/5947 "2008-01-23T15:32:30Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![cicciodevoto](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@cicciodevoto](https://root-forum.cern.ch/u/cicciodevoto)\
**Post date:** [January 31, 2008, 4:15pm UTC](https://root-forum.cern.ch/t/grid-axis-and-numbers-of-a-histogram/5947/21 "2008-01-31T16:15:07Z")

</div>

Hi,  
I have some questions.

If I write:

```auto
...
TFile *f = new TFile("visualizzazione.root","RECREATE");
...
f->Write();
```

I obtain a ROOT file with my histogram without the grid, and a object “hgrid” there is only the axis.  
Now, is there a method to obtain a ROOT file with the final result?  
And a method for obtain directly a jpg file?

Thank you  
Ciccio

---

<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:** [January 31, 2008, 4:18pm UTC](https://root-forum.cern.ch/t/grid-axis-and-numbers-of-a-histogram/5947/22 "2008-01-31T16:18:14Z")

</div>

there is two objects so that is normal. If you save as a jpg a gif or a PS file it will be ok.

---

<div class="post-metadata">

**Author:** ![cicciodevoto](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@cicciodevoto](https://root-forum.cern.ch/u/cicciodevoto)\
**Post date:** [January 31, 2008, 5:13pm UTC](https://root-forum.cern.ch/t/grid-axis-and-numbers-of-a-histogram/5947/23 "2008-01-31T17:13:43Z")

</div>

> [@couet](#):
>
> there is two objects so that is normal. If you save as a jpg a gif or a PS file it will be ok.

I know that is normal.  
if I run the program I obtain immediately the result that I want, without open the TBrowser.  
If I open the TBrowser and the ROOT file, that I obtain from program, I have the two object, but I don’t have the result that I want.

---

<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:** [February 1, 2008, 10:34am UTC](https://root-forum.cern.ch/t/grid-axis-and-numbers-of-a-histogram/5947/24 "2008-02-01T10:34:29Z")

</div>

can you send a small script showing what you are doing exactly ?

---

<div class="post-metadata">

**Author:** ![cicciodevoto](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@cicciodevoto](https://root-forum.cern.ch/u/cicciodevoto)\
**Post date:** [February 6, 2008, 5:04pm UTC](https://root-forum.cern.ch/t/grid-axis-and-numbers-of-a-histogram/5947/25 "2008-02-06T17:04:55Z")

</div>

> [@couet](#):
>
> can you send a small script showing what you are doing exactly ?

It’s not important, because I solved the problem saving directly on a jpg-file.

If I want line number 8, 16 and 22 of the grid with a greater thickness, is there a method?

Thanks  
Ciccio

---

<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:** [February 7, 2008, 2:03pm UTC](https://root-forum.cern.ch/t/grid-axis-and-numbers-of-a-histogram/5947/26 "2008-02-07T14:03:31Z")

</div>

There is no really simple way …

[Previous page](https://root-forum.cern.ch/t/grid-axis-and-numbers-of-a-histogram/5947.md?page=1)
