0

I used to set PaperSize in Matlab to control the font size in different axis. This is better than directly changing the fontsize. I think this kind of procedure can be working for gnuplot too.

Here some overview of papersize in Matlab. An unanswered question here in SO about setting fontsize with partisan view how to do it.

So Matlab's command

set(hFig, 'PaperSize',[X Y])

Is there any similar way to control the papersize in Gnuplot as Matlab? I want to get consistent font sizes in my plots.

Community
  • 1
  • 1
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697

1 Answers1

3

You can set the overall image size with the terminals size option like

set terminal pdfcairo size 21cm,29.7cm
Christoph
  • 47,569
  • 8
  • 87
  • 187
  • My terminal is qt. I cannot find any size which match good size of the screen (Macbook air); cm is not allowed, only pixels. Etc `set terminal qt size 1280,720` working bad. I would like to get the output to Qt first without creation of the file. – Léo Léopold Hertz 준영 Apr 19 '15 at 09:36
  • 1
    Then I don't understand your question: what's your final output? Screen, PNG (or similar, pixel-based), or vector format? And yes, a screen is pixel-based, and giving units like centimetres wouldn't make sense. So, what is bad with `set terminal qt size 1280,720`? – Christoph Apr 19 '15 at 10:41
  • Actually, nothing anymore. There was some conflict in my terminal which caused the window to be in strange configuration. I logged off and now the image is as it should be. – Léo Léopold Hertz 준영 Apr 19 '15 at 10:47