octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46122] gnuplot printed figure truncated


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #46122] gnuplot printed figure truncated
Date: Wed, 16 Dec 2015 19:09:17 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/601.3.9 (KHTML, like Gecko) Version/9.0.2 Safari/601.3.9

Follow-up Comment #10, bug #46122 (project octave):

@Ederag,
My point on the axis units, is that it's size on the screen is not related to
the size of the output produced by print() or saveas(). To produce a figure of
a specified size and with a specified font for publication purposes, all that
is needed is to specify the font size of all the objects and to specify the
paperposition width and height.


width = 9;
height = 6;
paperunits = "centimeters";
fontsize = 10;
set (gcf (), "paperunits", paperunits)
set (gcf (), "paperposition", [0 0 width height])
h = findall (gcf (), "-property", "fontsize");
set (h, "fontsize", fontsize)
print -dpdfwrite figure.pdf


If you use -dpdf, then you also need to specify the paper size.


set (gcf (), "papersize", [width, height])


If you desire a wysiwyg solution, please refer to the two comments below on
bug report 46292.

https://savannah.gnu.org/bugs/?46292#comment15
https://savannah.gnu.org/bugs/?46292#comment16

The script I provided works for the qt graphics toolkit. If you like I can try
to work out one for gnuplot as well. The primary difference is that the figure
size for gnuplot needs to be spedified when the figure is created.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46122>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]