Datatip
이전 댓글 표시
Hello!
I have a question regarding datatip on my GUI graph. Everytime I run my GUI and select Data Cursor I have to right click on graph and select my datatip file. The graph opens up the default one(X : xxxx, Y : yyyy). Mine shows date and mass. It's just a bit annoying opening up everytime... Can I change this by making it default for this GUI file?
Thank you in advance!
채택된 답변
추가 답변 (3개)
Slobodan Djordjevi?
2011년 12월 12일
댓글 수: 3
Fangjun Jiang
2011년 12월 12일
It looks right. Anything wrong?
Slobodan Djordjevi?
2011년 12월 13일
Slobodan Djordjevi?
2011년 12월 13일
Slobodan Djordjevi?
2011년 12월 13일
Thomas Flick
2018년 5월 31일
0 개 추천
This is an old post but as far as I can tell the problem has not been satisfactorily solved in that there is no proposed solution that is as easy as setting a default. Here is one that is that easy:
(1) Make a new shortcut or favorite. This requires a fairly new version of Matlab.
(2) Copy/paste this code into your favorite:
dcm=datacursormode(gcf);
datacursormode on;
set(dcm,'updatefcn',@MyDataTipFunction);
(3) While viewing your plot, click on your "favorite" button. This puts the plot in data cursor mode using your data tip function.
카테고리
도움말 센터 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!