gnuplot patch for x11 terminal allows specifying position and size

Ben Abbott bpabbott at mac.com
Sun Nov 16 02:48:27 CST 2008


On Nov 14, 2008, at 8:21 AM, Ben Abbott wrote:

> I've put together an initial changeset for the gnuplot backend which  
> respects several properties of the root and figure.
>
> The properties included are root.screensize,  
> root.screenpixelsperinch, figure.papersize, figure.papertype,  
> figure.paperposition, figure.name, figure.numbertitle,  
> figure.position, & figure.units.
>
> Regarding position information, the coordinates are ignored, but the  
> figure/canvas size is respected by the gp terminals which support a  
> size option. At the present, that excludes x11, but that there  
> appears to be an discussion/effort to correct that. See the link  
> below.
>
> https://sourceforge.net/tracker/index.php?func=detail&aid=1553072&group_id=2055&atid=302055
>
> The gp canvas size is that area respecting the plot itself, which  
> corresponds to an area of figure.position(3:4).
>
> This changeset assumes the prior changeset to add screensize &  
> screenpixelsperinch to root is applied.
>
> <gnuplot_drawnow.patch>

There is presently a patch available for gnuplot that allows the  
window size and position to be specified. It is available for those  
interested from the gnuplot tracker.

https://sourceforge.net/tracker2/index.php?func=detail&aid=1553072&group_id=2055&atid=302055

If anyone is interested in playing, it will be a simple task to modify  
my patch to set the size and position of the gnuplot window from the  
figure's "position" property.

Ben


More information about the Octave-maintainers mailing list