Effacer les filtres
Effacer les filtres

Matlab 2014b scaling, print, border

1 vue (au cours des 30 derniers jours)
octus_ma
octus_ma le 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!

Réponses (0)

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by