I have the following code when triyng to plot a graph:
figure
fig = gcf;
ax = gca;
fig.PaperUnits = "centimeters"
fig.PaperSize = [8 8]
fig.Units = "centimeters";
fig.PaperPosition = [0 0 7 7]
plot(Angle_A_pris, PSD_A_pris, 'G')
ImageDPI=1500;
ylim([400 2525]);
xlim([10 80])
xlabel('2\theta (^o)');
ylabel('Intensity (arbitary units)')
ax.YTickLabel = [];
ax.XTickLabel = "manual";
ax.XTickLabel = [10 20 30 40 50 60 70 80]
print(gcf, 'Glass_A_pristene', '-dpdf', '-fillpage');
When I run it in Matlab it produces this:
But when it is in the pdf format it is created as shown below:
Why is this occuring and how do i stop it?
thank you,
Lucas.
Best Answer