Save fig with both imshow and plot components
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have a script
x = figure;
imshow(image1); hold on;
plot(1:256); hold on; % Scaled to match image size
drawnow;
saveas(x, 'C:\ImagesFromAnalysis\fig9F.eps','epsc');
I get both the image and plot as I want them on the screen, but only the image displayed within the eps file.
At the moment, I can get by cutting and pasting a screen shot into the draft document, but will need the actually eps file later.
Thanks
0 comentarios
Respuestas (1)
Image Analyst
el 6 de Mzo. de 2014
I never use saveas() - I've learned not to, from countless people like you saying it doesn't work. Try the FAQ http://matlab.wikia.com/wiki/FAQ#How_do_I_save_my_figure.2C_axes.2C_or_image.3F_I.27m_having_trouble_with_the_built_in_MATLAB_functions.
0 comentarios
Ver también
Categorías
Más información sobre Printing and Saving en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!