I have a GUI which contains an axes('Graph1_axes') and I would like to save it in jpg fromat and with the legends. Right now Im using the next code:
newfig1 = figure('Visible','off');
saveDataName = fullfile(path1,filename1);
where 'Graph1_axes' is the axes to save, 'path1' where to save and 'filename1' the name of the file, the problem is that is saving the graph but without the legends and cuting-off the graph.
Thanks in advance!