How to show a image logo in axes?
Mostrar comentarios más antiguos
hi
i want to show the logo off my school at the top off the window in my project. i must define the axes function like this? this isn't correct, how do i set the position ?
h = axes('style','axes',...
'units','pix',...
'position',[10 20 180 30],...
'string','ISEP',...
'callback',{@ax_call,S});
the function:
function [] = ax_call(varargin)
h = guidata(gcbf);
set(0,'userdata',h); % Save it in the root.
imshow('ISEP.jpg')
2 comentarios
Walter Roberson
el 26 de Ag. de 2011
With the code you have, each time you click on the axes outside of any object drawn on the axes, the image would be drawn on the axes, _replacing_ anything already drawn there. Are you sure that is what you want to do?
(I also suspect the newly drawn logo would be drawn on top of anything else in the figure.)
Nu9
el 26 de Ag. de 2011
Respuesta aceptada
Más respuestas (1)
Fangjun Jiang
el 26 de Ag. de 2011
h=axes;
imshow('board.tif','parent',h);
Categorías
Más información sobre Line Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!