Verfasst am: 23.06.2013, 18:22
Titel: depsc nicht die Größe die ich eingestellt habe
Hallo,
ich brauche unbedingt ein Weg um immer genau die Figure Größen zu machen die ich auch eingebe. Ich dachte immer dass tut er mit dem unteren Code aber ich habe heute leider bemerkt dass xwidth nicht 3.7 cm ist sondern 3.3 cm. Außerdem wenn ich einen neuen Datensatz verwende ist es auch anders also z.B 3.4 cm. Wenn es immer gleich falsch wäre, wäre es trotzdem blöd aber damit könnte ich leben. Bitte, kann jemand mir helfen. Und ja ich brauch *.eps Format da ich die Abbildungen in ein Latex Dokument einbinden möchte.
Code:
fx = 5.2; % define width of figure in cm
fy = 4.3; % define height of figure in cm
ax0cm = 1.2; % x position of lower left corner of subplots in cm
ax0 = ax0cm/fx; % normalize with figure width to reach the desired position in cm
ay0cm = 0.5; % y position of lower left corner of subplots in cm
ay0 = ay0cm/fy; % normalize with figure height to reach the desired position in cm
xwidthcm = 3.7; % width in x of subplots in cm
xwidth = xwidthcm/fx;
ywidthcm = 3.7; % width in y of subplots in cm
ywidth = ywidthcm/fy;
figPos = [11 fx fy];
f = figure;
set(gcf,'color','w') set(f,'units','centimeters') set(f,'paperunits','centimeters') set(f,'papertype','A4') set(f,'PaperOrientation','portrait');
set(f,'position',figPos);%position on monitor
set(f,'PaperPositionMode','manual');
set(f,'paperposition',[33 figPos(3) figPos(4)])
%___________________________________________________________ _______________
axesPos = [ax0 ay0 xwidth ywidth];
axes;
set(gca,'pos',axesPos);
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.