How To: create bare-bone tiny window attached to figure, no GUI
2 次查看(过去 30 天)
显示 更早的评论
Hello,
without using a GUI, I would like to be able to attach to an existing figure window,
a tiny 'bare-bone' window, for displaying some text info (attached to the figure, not its axes)
The window should not move if the X-limits or the Y limits of the displayed data are changed.
I would like the window to be 'bare-bone', i.e. appearance strictly limited to a line contour
defining an interior. The interior should be able to hold some text (defined programmatically).
The size of the window should be defined programmatically, along with its initial position.
I am looking forward to get an aspect akin to a 'datatip' info window, except it is not pointing to data.
And last, this tiny window should be user-repositionable in X-Y (with no change in size),
anywhere on the figure.
any idea of how to achieve that ?
0 个评论
回答(1 个)
Image Analyst
2023-3-30
Try creating a scroll panel. See attached zoom demo.
2 个评论
Rik
2023-4-4
Your requirements seem to be conflicting. You don't want a GUI, but you want a second figure?
It sounds to me like you did not remove all callbacks related to the scrollpanel.
Note that this communication style (bold text and short sentences) may be perceived as rude. Tone is of course very difficult to communicate through text, especially if you don't know the other person and/or share a similar linguistic and cultural background.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!