scalable vector graphics and LaTex or Tex
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Eugene
 el 31 de En. de 2018
  
    
    
    
    
    Respondida: Eugene
 el 25 de Mzo. de 2018
            I try to save my graphics like scalable vector graphics but the Tex or LaTex string doesn’t look right.
x            = 0:pi/360:2*pi;
y            = sin(x+pi);
hFigure          = figure;
hAxes            = subplot(1,1,1);
hLine            = plot(x,y);
hAxes.XGrid          = 'on';
hAxes.YGrid          = 'on';
hAxes.TickLabelInterpreter  = 'Latex';
hAxes.XLim          = [0  2*pi];
hAxes.XTick          = 0  : pi/6  :  2*pi;
hAxes.XTickLabel        =  {  ...
             '$-\pi$'  ...
            ,'$-5\pi/6$'  ...
            ,'$-2\pi/3$'  ...
            ,'$-\pi/2$'  ...
            ,'$-\pi/3$'  ...
            ,'$\pi/6$'  ...
            ,'$0$'    ...
            ,'$\pi/6$'  ...
            ,'$\pi/$3'  ...
            ,'$\pi/2$'  ...
            ,'$2\pi/3$'  ...
            ,'$5\pi/6$'  ...
            ,'$\pi$'  ...
              };
saveas(hFigure,'MyFigure.svg');
saveas(hFigure,'MyFigure.pdf');
The symbol "pi" is shown correct on MyFigure.pdf. The symbol "pi" is replaced an invalid symbol on MyFigure.svg. Can you help me?
0 comentarios
Respuesta aceptada
Más respuestas (0)
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!
