Hi,
I open multiple images to separate figures and drop couple of data tips manually. I want to start to automate this process but keep this same way of working so I would like have these pre added data tips when figure opens and i could move they if they are in wrong position. I have the pixel locations where i want to drop those data tips. I have googled 1000 links but havent seen any example so is this even possible?
Thx
Mika

 채택된 답변

Kevin Holly
Kevin Holly 2022년 8월 22일
편집: Kevin Holly 2022년 8월 22일

0 개 추천

figure
img = rand(800,1000);
h = imagesc(img);
d = datatip(h);
d.DataIndex=353*800+355;
d.Location = "northwest";
d2 = datatip(h);
d2.DataIndex=895*800+351;
d2.Location = "northeast";
d3 = datatip(h);
d3.DataIndex=628*800+662;
d3.Location = "southwest";

추가 답변 (1개)

Mika Ihatsu
Mika Ihatsu 2022년 8월 22일

0 개 추천

Thank you so much, exactly what i needed!

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

질문:

2022년 8월 22일

답변:

2022년 8월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by