I have for example the following code:
figure() axes() plot([1 5],[2 20],'r') ylabel('Something 2') xlabel('Something 1') set(gca, 'FontSize', 16) set(gca, 'Position', [0.1 0.12 0.8 0.8]) print('Test.png')
The figure generated by this commands looks like the uploaded image “Scrennshot.png”. However, the print command gives the result shown in the uploaded image “Print.png”. As you can see the FontSize is much bigger than in the actual figure and as a result the x- and ylable are partly outside the image boundary. Do you guys have any idea how to fix this?
Thanks and best regards,
- OS: Windows 10 Pro 10.0.18363
- Octave version: Version 6.1.0
- Installation method: Downloaded and installed “octave-6.1.0-w64-installer.exe” from https://www.octave.org/download.html