- Using the -opengl option of the print function
- Printing with a higher resolution
- Using a different format, like .png
Printing a figure as .eps w/o letting the size change
    8 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Fred
      
 el 1 de Mayo de 2018
  
    
    
    
    
    Respondida: Neil Guertin
    
 el 4 de Mayo de 2018
            My presentation requires plots of polynomials, 1, x, etc. To facilitate comparison all plots should have the same horizontal and vertical axes, but I want to turn the axes off to save space. I prefer to print as .eps because the margins are tighter. However, .eps printing does not respect the axes I set. Right now I am resorting to .png, which does respect the axes, but I prefer a way that give me .eps. Any suggestions? Thanks.
%Printing in eps problem MWE
figure
plot([0 1], [1 1], '-') %horizontal line
axis([0 1 -1.2 1.2]) %but want the axes as given
set(gca,'Visible','off') %turned off, but box to stay the same size
print -depsc HorizLine.eps %figure is compressed to thin box
print -dpng HorizLine.png %figure retains shape, but has extra margin compared to eps
0 comentarios
Respuesta aceptada
  Neil Guertin
    
 el 4 de Mayo de 2018
        This is a known issue and our developers are currently investigating.
As a workaround, consider:
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Labels and Annotations 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!

