Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use safe_figure if graphic includes Latex symbol? #15

Open
litvinen opened this issue Feb 8, 2017 · 4 comments
Open

How to use safe_figure if graphic includes Latex symbol? #15

litvinen opened this issue Feb 8, 2017 · 4 comments

Comments

@litvinen
Copy link

litvinen commented Feb 8, 2017

I do
plot(x,y75,':g','LineWidth',2);
ylabel('$\ell$','Interpreter','latex');
save_figure(gcf, 'FileName', 'figdir', '.', 'fontsize', 16)

then if I open FileName.eps, I see something like $\ell$. So, Latex interpreter is switched off when I safe the figure into file.At the same time in Matlab Window latex symbols are displayed correct.

Probably I need to use something like
save_figure(gcf, 'FileName', 'figdir', '.', 'fontsize', 16, 'latex_param' ), but an example would be very helpful.
Thanks,

@litvinen
Copy link
Author

litvinen commented Feb 8, 2017

Ok, I have found,
In safe_figure.m it was
%set( h_text, 'interpreter', 'latex' );
set( h_text, 'interpreter', text_interpreter );
Now
set( h_text, 'interpreter', 'latex' );
%set( h_text, 'interpreter', text_interpreter );

Thanks,

@ezander
Copy link
Owner

ezander commented Feb 8, 2017 via email

@litvinen
Copy link
Author

litvinen commented Feb 8, 2017

Thanks a lot,
But I cant find tikz/pgfplots stuff. Is it a part of sglib ? sglib-testing? a separate project? where?

@ezander
Copy link
Owner

ezander commented Feb 9, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants