Very attractive! Just a problem that i I have encountered when i try to export the figure in eps format with print function. The magnifier shrink and move out the axes to the right corner of the generates image. The link between the magnifier and the secondary axes is not affected and it kept its position. The only problem is with the magnifier. Can anyone helps me please.
Thanks for Mr David and all they contribute here.
Comment only
16 May 2013
export_fig
Exports figures nicely to a number of vector & bitmap formats.
Thank you for sharing your code.
I hade used this code.
'initialPositionSecondaryAxes':
Initial position vector ([left bottom width height]),the unit is 'pixels' ,the width and height can be right,but left and bottom are wrong. the same problem is with 'initialPositionMagnifier'.
For exemple:
[Tempfirst,rect] = imcrop(Picfirst);
figure(2);imshow(Picfirst);title('Picfirst and Tempfirst');
magnifyOnFigure(figure(2),'magnifierShape','rectangle',...
'initialPositionMagnifier',[rect(1),ysize-rect(2)-rect(4),rect(3),rect(4)],...
'initialPositionSecondaryAxes',[xsize-rect(3),ysize-rect(4),rect(3),rect(4)],...
'mode','interactive','edgeWidth', 3,'edgeColor', 'red');
5
11 May 2013
export_fig
Exports figures nicely to a number of vector & bitmap formats.
Please don't get it the wrong way :)
I'll create a script of my own combining it with 'fig' for instance.
I only meant well, your script is great as it is ;)
Comment only