I use matlab to create graphs in pdf files. These pdf graphics must be the correct size, so I use PaperSize. Then I need to place the plot with the correct PaperPosition. The problem is that Matlab uses some weird equation to calculate the position of the graph on the page. Thus, plot positioning is a constant shooting with parameters, not a calculation. For instance:
set(gcf, 'PaperPosition', [-0.3 -0 7.2 3.1]); %Position the plot further to the left and down. Extend the plot to fill entire paper.[left bottom width height]
set(gcf, 'PaperSize', [6.5 3]); %Keep the paper size [width height]
Do you know how MATLAB calculates this position?
source
share