Place a tape measure horizontally between the inside jamb on the left and the right. Close the window and make a similar measurement from jamb to jamb near the middle of the window. Measure the distance between the jambs at the top of the window. Record the shortest measurement.
To maximize the figure window in Windows, you can use the attached function. Otherwise you can also use code like this, to take up most of the screen except for the task bar at the bottom. % Enlarge figure to full screen. set(gcf, 'Units', 'Normalized', 'OuterPosition', [0, 0.04, 1, 0.96]);
As explained in the documentation, to change the default figure units and position, set the respective properties like this: set(0, 'defaultFigureUnits', 'centimeters', 'defaultFigurePosition', [0 0 8.86 7.8]);
Is it possible to set the window size / position of a plot window (figure)?
plot(0:20, sin(0:20))
Or is there any other possibility to change the size of the print() command?
print('aa.png', '-dpng')
Because the -Sxsize,ysize parameter doesn't change anything. The size of the written picture (aa.png) has always the same size as the plot window.
I'm using Octave 3.0.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With