# GARFIELD macro plots

**URL:** <https://root-forum.cern.ch/t/garfield-macro-plots/17808>\
**Category:** Garfield++\
**Created:** [June 24, 2014, 2:28pm UTC](https://root-forum.cern.ch/t/garfield-macro-plots/17808 "2014-06-24T14:28:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brittovivek](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/f04885/32.png) [@brittovivek](https://root-forum.cern.ch/u/brittovivek)\
**Post date:** [June 24, 2014, 2:28pm UTC](https://root-forum.cern.ch/t/garfield-macro-plots/17808/1 "2014-06-24T14:28:51Z")

</div>

Hi all,

I am working with the GARFIELD suite, and I have no problems with it when I type the commands individually at the command line. However, when I write a macro to perform these tasks, the plots generated are very out of scale and I am only able to see a very small portion of the plot. I cannot resize these plots either. Could anyone familiar with GARFIELD help me out? Any information on either how to generate the plots in the correct size, or how to resize or specify the size of the plots would be greatly appreciated.

Thanks a lot,  
Vivek Britto  
University of Illinois

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [June 24, 2014, 2:56pm UTC](https://root-forum.cern.ch/t/garfield-macro-plots/17808/2 "2014-06-24T14:56:09Z")

</div>

Hi,

unless you provide a reproducer, it will be impossible to help you out.

Danilo

---

<div class="post-metadata">

**Author:** ![brittovivek](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/f04885/32.png) [@brittovivek](https://root-forum.cern.ch/u/brittovivek)\
**Post date:** [June 24, 2014, 3:57pm UTC](https://root-forum.cern.ch/t/garfield-macro-plots/17808/3 "2014-06-24T15:57:11Z")

</div>

Hi Danilo,

I have attached my PostScript output file here, along with my script. As you can see, the first frame always shows correctly, but subsequent frames are out of scale. For some commands, I can generate separate files for each frame, but for others (e.g. drift track time-graph) this would not be possible as multiple frames are automatically generated.

Thanks for your help,  
Vivek  
[dc5\_garf\_test.txt](https://root-forum.cern.ch/uploads/default/original/2X/8/867b412da6486d07c62a9c2dd04d2dea2d0ee266.txt) (1022 Bytes)  
[garfield.ps](https://root-forum.cern.ch/uploads/default/original/2X/0/062e5038d9dc0f654d1696e6c5a0ae83e7c9c6ea.ps) (214 KB)

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [June 25, 2014, 5:47am UTC](https://root-forum.cern.ch/t/garfield-macro-plots/17808/4 "2014-06-25T05:47:30Z")

</div>

Hi Vivek,

this really seems a genuine Garfield issue/question. I am afraid ROOT is not much involved here…

Cheers,  
Danilo

---

<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:** [June 25, 2014, 11:58am UTC](https://root-forum.cern.ch/t/garfield-macro-plots/17808/5 "2014-06-25T11:58:46Z")

</div>

Garfield uses HIGZ/CERNLIB to render graphics.  
The ps file header is:

```auto
%!PS-Adobe-2.0
%%Title: garfield.ps (Portrait A 4)
%%Pages: (atend)
%%Creator: HIGZ Version 1.29/04
%%CreationDate: 2014/06/24 10.52
%%EndComments
%%BeginProlog
```

As far as I can see the plots look reasonable seems to me. I do not see anything out of scale.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [June 21, 2018, 11:41am UTC](https://root-forum.cern.ch/t/garfield-macro-plots/17808/6 "2018-06-21T11:41:01Z")

</div>

Closed on June 21, 2018, 11:41am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
