How can I create polar axis without numeric labels?

1 view (last 30 days)
Helo!
I wont to create circle axis and some text label in image. I use polar function to create axis. But there are numeric label, which I do not wont here. So I use function findall to find out text and remove it by function delete. But I need to create my own text in image. When I use function text, it does not work. No error, but there in no inserted text in image.
What do I do wrong?
Thanks for you answer!
My code:
image = imread('img.jpg');
% display image
figure(1)
imagesc(image);
h2=axes('position',[1 1 1 1]); % setcenter of polar
hold on;
% create polar
polar(1, 1, '-r');
% transparency Settings
ph=findall(h2,'type','patch');
set(ph,'Facecolor','none');
% remove numeric label
T = findall(gcf, 'type', 'text'); % find all text
delete(T); % delete text
% create new text in image
T = text(50,50,'text');
set(T,'Visible','on');
fig=gcf;

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!