XLabel Shifts when .fig file saved as .eps

1 view (last 30 days)
When I save files as .eps, the location of the xlabel changes from where it is in the .fig file, and is much too close to the x-axis, sometimes overlapping with the numbers on the axis. I am running 2010a on a Mac. Here is some example code.
toe_angle = [-2 0.5 3 5 7];
max_cp = [0.114 0.169 0.225 0.233 0.195];
plot(toe_angle,max_cp,'k-o','MarkerSize', 8)
set(gca, 'YGrid','on','XGrid','on')
xlabel('\alpha_t - Toe Angle');
ylabel('Maximum C_P')
set(gca,'LineWidth',2.0)
set(gcf,'PaperPositionMode','auto');
% Then I maximize the figure window manually and run:
filename = 'max_cp_vs_toe_angle';
print('-painters','-deps','-r300',filename)
I have tried a number of combinations of renderers and settings, but this is the only combination that has really worked. I'm trying to get publication quality plots. I'm not using LaTex, just Word.
I also tried running this in Windows with 2011a. The label is still close but doesn't overlap.
This is less of a Matlab question, but could it be that I'm opening it in preview (as a pdf i believe), then copy and pasting it into the document?

Answers (1)

Image Analyst
Image Analyst on 12 Feb 2012

Categories

Find more on Migrate GUIDE Apps 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!