Matlab 2014b scaling, print, border

1 view (last 30 days)
octus_ma
octus_ma on 10 Oct 2018
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!

Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!