XLabel lowered but a bit out of the eps printed file

Dear all,
I lowered the XLabel position of a figure by doing
xlabh = get(gca,'XLabel');
set(xlabh,'Position',get(xlabh,'Position') - [0 0.075 0])
The problem is that when I then print the file with
print -painters -despc -r600 ../folder/title.eps
the XLabel is indeed lowered but since the size of the picture does not adapt to this new position, the XLabel is cut. Is there any way to say to Matlab to expand the printing area so that I have a full lowered XLabel?
Thanks a lots,

 Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 19 Nov. 2013

0 Stimmen

The figure's PaperPosition and PaperUnits control this.
Have you tried export_fig? Ranked number one for a good reason :)

1 Kommentar

Pl Pl
Pl Pl am 26 Nov. 2013
Sorry for the late answer. Right, it was a bit tricky. After some research, I found some useful function that does precisely what I was looking for:

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 19 Nov. 2013

Kommentiert:

am 26 Nov. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by