Position of map axes in figure
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ellen
el 3 de Nov. de 2011
Comentada: Chad Greene
el 20 de Ag. de 2014
Where are the map axes? I need to their absolute position in a figure, equivalent to what is returned by get(gca,'Position') for ordinary, Cartesian axes. As shown in the example below, doing this for map axes (red) returns the default position of ordinary axes (black). Can anyone help me?
figure; hold on;
h_axm = axesm('eqdcylin','FLonLimit',[0 20],'FLatLimit',[0 20]); %Create axes
set(h_axm,'XColor',[1 0 0],'YColor',[1 0 0]); %Color map axes red
axespos = get(h_axm,'Position'); %Get position of axes
h_ax = axes('Position',axespos); %Create new axes at same position
set(h_ax,'Color','None'); %Turn off background color to show both axes
0 comentarios
Respuesta aceptada
Ellen
el 3 de En. de 2013
1 comentario
Chad Greene
el 20 de Ag. de 2014
Brilliant! This solves my problem perfectly. Thanks Ellen for posting this question and answer.
Más respuestas (0)
Ver también
Categorías
Más información sobre Graphics Object Properties en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!