Change map coordinates to Latex Interpreter
7 views (last 30 days)
Show older comments
I am making a figure, I want it to use latex interpreter for the axis labels, but I fail at it, maybe because I use the m_map package.
figure
m_proj('lambert','lon',[10 20],'lat',[25 31]);
m_gshhs_c('patch',[.8 .8 .8],'edgecolor','none');
m_grid('linewi',2,'tickdir','out','fontsize',24);
I tried using latex interpreter, but it does nothing.
set(gca, 'TickLabelInterpreter', 'latex');
Any idea what am I missing?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1706011/image.png)
0 Comments
Answers (1)
Adam Danz
on 29 May 2024
Edited: Adam Danz
on 31 May 2024
The map axes you see is a psuedo-axes created from a patch with labels to appear as an axes. The actual axes is not visible. So when you set the TicklabelInterpreter, it has no visible effect.
For confirmation of this, turn on the visibility of the axes,
set(gca,'Visible','on')
I'm not familiar with the 3rd party toolbox these functions appear to be from (link?). See the Mapping Toolbox for alternatives.
See Also
Categories
Find more on Map Display in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!