|
giordano.sagredo@gmail.com wrote:
> I made a 3-d figure using scatter3(x,y,z).
>
> Then, changed the tickmarks using:
> set(gca,'XTickLabel',num2str([-axlims:2:axlims]'))
> set(gca,'YTickLabel',num2str([-axlims:2:axlims]'))
> set(gca,'ZTickLabel',num2str([-axlims:2:axlims]'))
>
> It looks gorgeous, perfectly fine in the figure on my screen. Then when I save to eps using:
> print -depsc foo
>
> It ends up changing the tick marks on the Z-axis so they are every single unit, not every two as specified in my command line code (and as appeared just fine in my figure).
>
> Help please?
By default the figure is resized when printed/saved, and this is probably
what's causing your issue. Assuming fig is the handle to your figure:
set(fig, 'PaperPositionMode', 'auto');
will tell MATLAB to generate output for the figure at the same size as the
onscreen figure.
You may also need to set the axes XTickMode, YTickMode, and ZTickMode
properties to 'manual'.
Hope that helps.
--
Richard Quist
Software Developer
The MathWorks, Inc.
|