altmany / export_fig

A MATLAB toolbox for exporting publication quality figures
BSD 3-Clause "New" or "Revised" License
1.28k stars 368 forks source link

Problems with .eps #376

Closed MarcenLaguna closed 1 year ago

MarcenLaguna commented 1 year ago

My version of Matlab generates an .eps file (Effort_z_0.eps) which is fine, except that it is not selectable in LaTex. A simple plot does inherit all the good properties of the .eps format.

Any advice?

figure('Name','Esfuerzo_z_0');
subplot(1, 2, 1);                
%surf 1
surf(a(2:20,1:50), z1(2:20,1:50),os_g1(1:50,2:20)')
%surf 2
ylabel('Unemployment benefits; $b$', 'interpreter','latex')
xlabel('Wealth, $a$', 'interpreter','latex'), zlabel('Search effort, $s_0(a;b)$','interpreter','latex')

subplot(1, 2, 2)
[~, hCont] = contour(real(a(2:20,1:50)), real(os_g1(1:50,2:20)'),real(z1(2:20,1:50)), levels, 'linewidth', 2 );
contourLegend(hCont)
xlabel('Wealth, $a$', 'interpreter','latex')
ylabel('Search effort, $s_0(a;b)$','interpreter','latex')

print -depsc Esfuerzo_z_0.eps
altmany commented 1 year ago

You're using the print command in your script, not export_fig, so I'm not sure why you opened an issue here - you should report this to MathWorks.

If this issue is related to export_fig and not to the print function, then fix your script to explain exactly what's wrong with export_fig's output, and upload relevant output files/screenshots - just saying "it is not selectable in LaTex" makes no sense and does not describe the problem. If you want me to help you, then you should make an effort to make the issue description clear and reproducible.

altmany commented 1 year ago

No additional information or feedback received in 2 weeks so I'm closing this issue. If and when you send me more information then this issue can be reopened.