When I export figures containing a legend to a jpeg file, the text in the legend appears outside the legend box. For example, if I execute the following code:
plot(1:10)set (gca, 'position', [0.13 0.12 0.775 0.805])set (gcf, 'paperposition', [1 2 4 3])l = legend ('Plot');print -djpeg legend.jpg
The text "Plot 1" appears outside the legend box in the jpeg. This problem does not occur in MATLAB 6.5.1 (R13SP1) and earlier.
Best Answer