Dear all,
I'm using this code to magnify part of my figure:
But while printing the final figure to .eps, … the 'position magnifier' weirdly disappears from the image. Also, it creates a small black rectangle in the corner of the image (specified by a red circle in image below):
I use these settings when using the code mentioned above:
% plot
figHandler = figure;hold onh1 = plot(x,y);hold off; magnifyOnFigure(... figHandler,... 'units', 'pixels',... 'initialPositionSecondaryAxes', [326.933 259.189 164.941 102.65],... 'initialPositionMagnifier', [120 80 60 75],... 'mode', 'interactive',... 'displayLinkStyle', 'straight',... 'edgeWidth', 2,... 'edgeColor', 'black',... 'secondaryAxesFaceColor', [1 1 1]... );
Can anyone help me fix the bug in the original code?
Added: there is actually a bug in the code that the author couldn't fix:
% – The size and position of the magnifier are modified for % 'PaperPositionMode' equal to 'auto', when the figure is printed to file % through 'print'
Now, can anyone help me fix this?
Best Answer