I am trying to plot 3 figures in MATLAB and they are coming out just fine within MATLAB. Here is the screenshot of how it looks within MATLAB. (i.e. once I execute my script)

However, When I save it using print -djpeg -r300 Output.jpeg, it looks like this:

How do I fix it without downloading any files from FileExchange?
I have gone through similar questions on SE however, they all recommend the use of files available on FileExchange.
Here is what I have already tried:
set(gcf, 'PaperUnits', 'inches');
set(gcf, 'PaperSize', [10 10]);
set(gcf, 'PaperPosition', [0 0 10 10]);%No improvement
Try
set(gcf, 'PaperPositionMode','auto')It will adapt the printing size to the size of the figure. It will solve all problems with relative sizes you are having 🙂