Increase grid resolution when printing/saving eps
古いコメントを表示
I am trying to save eps graphics for insertion into Latex documents. To do this I scale the figure using:
set(figure_handle, 'PaperPosition', [0 0 plot_width plot_height]);
The width and height I specify matches what I am going to be using in the document, so the fonts sizes I use in this matlab figure are the same when I insert them into the document at 100% scaling.
My problem is that when I use "set(figure_handle, 'PaperPosition',..." the grid resolution (turned on using 'grid on') decreases to a point where there are only a few dots between major tick points. Here is some example code:
h = figure
plot(rand(1,10),rand(1,10)) %Create the plot
grid on %Turn on the grid
set(h,'Units','inches') %Set the units
saveas(h,'nicegridres.eps','epsc') %Save the original figure with the nice resolution in the grid
set(h,'Paperposition',[0,0,2.75,1.8]) %Change the size of the figure for printing/saving
saveas(h,'badgridres.eps','epsc') %Save the new figure with the bad resolution in the grid
Don't mind the fact that the font sizes look too big. I have already taken care of that. It should be evident in the two output figures that the number of dots in the grid in the second saved figure are reduced. Basically what I am asking is, how can I increase the number of dots in the grid? Thanks!
FYI, I am using R2010a.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Printing and Saving についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!