Matlab 2014b scaling, print, border

1 次查看(过去 30 天)
octus_ma
octus_ma 2018-10-10
Hello everybody,
i have a problem where I need help. I have an easy example. I want to create a DIN A4 with a borderline. The problem ist, that when printing the figure, the scaling is not correct. Here is the code
handles.fig = figure(...
'PaperType','a4letter',...
'Units','centimeters',...
'PaperOrientation','Portrait',...
'PaperUnits','centimeters', ...
'Position',[0.63 0.63 19.72 28.41],...
'PaperPosition',[0.63 0.63 19.72 28.41],...
'PaperSize',[20.98 29.68],...
'Visible','off');
handles.frame.axes1 = axes('parent',handles.fig,'Units','centimeters','Position',[0.3 0.3 19 24],'Visible','off',...
'XTickLabel',{},'YTickLabel',{},'XTick',[],'YTick',[],'Box','on');
Printing is done with
print(handles.fig,'-dpdf','test.pdf')
Can anyone help me what I am doing wrong? Thank you!

回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by