# Styling Using both Relative and Absolute Units

**URL:** <https://root-forum.cern.ch/t/styling-using-both-relative-and-absolute-units/55671>\
**Category:** Newbie\
**Tags:** python, hist, root\
**Created:** [July 13, 2023, 10:54pm UTC](https://root-forum.cern.ch/t/styling-using-both-relative-and-absolute-units/55671 "2023-07-13T22:54:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhillman](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rhillman/32/33798_2.png) [@rhillman](https://root-forum.cern.ch/u/rhillman)\
**Post date:** [July 13, 2023, 10:54pm UTC](https://root-forum.cern.ch/t/styling-using-both-relative-and-absolute-units/55671/1 "2023-07-13T22:54:16Z")

</div>

Greetings!

I’d like to better understand how sizing and offsets work for histograms. Right now, I’m defining custom styles for plotting, and I’m curious how the offset units for various elements within a pad work.

For example, in HTML, there are both relative and absolute units, e.g. rem/px. I’m wondering in essence whether I’m able to set and manipulate histogram elements like axis labels according to both of these unit styles fluidly. I wasn’t able to find any documentation on the matter, so any assistance would be greatly appreciated.

Cheers,  
Micah

* * *

_ROOT Version:_ 6.24/06  
_Platform:_ linuxx8664  
_Compiler:_ gcc

* * *

---

<div class="post-metadata">

**Author:** ![vpadulan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vpadulan/32/25315_2.png) [@vpadulan](https://root-forum.cern.ch/u/vpadulan)\
**Post date:** [July 17, 2023, 8:24am UTC](https://root-forum.cern.ch/t/styling-using-both-relative-and-absolute-units/55671/2 "2023-07-17T08:24:28Z")

</div>

Dear @rhillman

Probably @couet can help you better understand the structure of the histogram axes.

Cheers,  
Vincenzo

---

<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:** [July 27, 2023, 12:11pm UTC](https://root-forum.cern.ch/t/styling-using-both-relative-and-absolute-units/55671/3 "2023-07-27T12:11:06Z")

</div>

Welcome to the ROOT forum.

Can you provide a small demonstrator macro showing what kind of “offset” you are talking about ?
