# Increase Gnuplot margins

**URL:** <https://fluka-forum.web.cern.ch/t/increase-gnuplot-margins/213>\
**Category:** Flair\
**Created:** [7 January 2020 18:52 UTC](https://fluka-forum.web.cern.ch/t/increase-gnuplot-margins/213 "2020-01-07T18:52:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rick](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/r/9f8e36/32.png) [@rick](https://fluka-forum.web.cern.ch/u/rick)\
**Post date:** [7 January 2020 18:52 UTC](https://fluka-forum.web.cern.ch/t/increase-gnuplot-margins/213/1 "2020-01-07T18:52:15Z")

</div>

Greetings Experts,

I have run a sample simulation that generates one plot via USRBIN (22 BIN). When plotting this file, the right most energy deposition heat bar is cut off, so that some exponents and any labels are cut off. I am unsure if this is a GNUPLOT issue or one with flair. Please advise. I have attached the FLAIR file and a .eps output of the plot. Thank you kindly for your time.

Cheers,  
Rick

[practice\_3\_Rb\_box.flair](https://fluka-forum.web.cern.ch/uploads/short-url/oVZP3x0YAM5GjYdZDiVVlOjM5Kk.flair) (3.8 KB)

 ![practice_3_Rb_box_22_EnergyDep](https://fluka-forum.web.cern.ch/uploads/default/original/1X/5a3beeb8c16b5dd445d229c2e813caf54c8da92c.png)

---

<div class="post-metadata">

**Author:** ![horvathd](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/horvathd/32/10584_2.png) [@horvathd](https://fluka-forum.web.cern.ch/u/horvathd)\
**Post date:** [7 January 2020 19:59 UTC](https://fluka-forum.web.cern.ch/t/increase-gnuplot-margins/213/2 "2020-01-07T19:59:50Z")

</div>

Hi @rick,

This is an issue with gnuplot, the color bar doesn’t fit automatically on the margin. You can increase it with the following gnuplot commands:

```
set lmargin screen 0.1
set rmargin screen 0.8

```

See the picture, where you need to put these lines:

 ![flair_plot_margin](https://fluka-forum.web.cern.ch/uploads/default/original/1X/39022e5675844dfc64c5b424e3c9e25ceb92d1cf.png)

One extra tip, if you click on **Title** , then **Auto** , you can set the correct aspect ratio for the axes.

---

<div class="post-metadata">

**Author:** ![vasilis](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/vasilis/32/16_2.png) [@vasilis](https://fluka-forum.web.cern.ch/u/vasilis)\
**Post date:** [8 January 2020 07:35 UTC](https://fluka-forum.web.cern.ch/t/increase-gnuplot-margins/213/3 "2020-01-08T07:35:59Z")

</div>

Following @horvathd suggestion you can make the settings in gnuplot **permanent** by adding them in the file **~/.gnuplot**  
Another suggested option is the `set format "%h"`

---

<div class="post-metadata">

**Author:** ![rick](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/r/9f8e36/32.png) [@rick](https://fluka-forum.web.cern.ch/u/rick)\
**Post date:** [8 January 2020 17:32 UTC](https://fluka-forum.web.cern.ch/t/increase-gnuplot-margins/213/4 "2020-01-08T17:32:44Z")

</div>

Thank you, @horvathd and @vasilis, your solutions and explanations are very helpful. I especially appreciate @horvathd 's picture explanations.

---

<div class="post-metadata">

**Author:** ![horvathd](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/horvathd/32/10584_2.png) [@horvathd](https://fluka-forum.web.cern.ch/u/horvathd)\
**Post date:** [8 January 2020 17:46 UTC](https://fluka-forum.web.cern.ch/t/increase-gnuplot-margins/213/5 "2020-01-08T17:46:37Z")

</div>


