How to generate proper DIN A4 sized plots with Gnuplot (January 14, 2011)
I’ve had a major annoyance today: The plot generated by gnuplot looked good inside the wxt
terminal but I simply couldn’t get a proper fullsized DIN A4 postscript exported. This is how I’ve done it now:
- Inside gnuplot:
```bash
set size ratio 0.71 # this is the ratio of a DIN A4 page (21/29.7)
set terminal postscript enhanced landscape "Arial" 9 # you can change landscape to portrait and the fontname and -size
set output 'yourfilename.ps' # this is your export file
replot # or put your custom plot command here ```
- In a shell:
```bash
ps2ps -sPAGESIZE=a4 yourfilename.ps new_dina4_file.ps ```
- Now you can simply print
new_dina4_file.ps
from within KGhostView for example. Have fun!