添加滚动条到带有子图的图形

发布于 2024-10-19 06:57:18 字数 324 浏览 9 评论 0原文

我有一个 m 文件,应该在一张图中显示大约 20 个图像。所以现在我想知道如何向图中添加滚动条。

目前,我的代码正在执行类似的操作:

    figure('Name','Results');
for a=1:20
     img_result = imread(userinput);
     %Process image; img_result
     .
     .
     .
     subplot(5,1,a);
     imshow(img_result);
end 

如果我使用此代码,图像将调整为小图标。有什么想法吗?

I have a m-file which should show about 20 images in one figure. so now I would like to know how to add a scrollbar to the figure.

currently, my code is doing something like this:

    figure('Name','Results');
for a=1:20
     img_result = imread(userinput);
     %Process image; img_result
     .
     .
     .
     subplot(5,1,a);
     imshow(img_result);
end 

if i am using this code the images are getting resized to small icons. any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

下雨或天晴 2024-10-26 06:57:18

我相信这就是您正在寻找的:滚动图形演示 作者:埃文·布鲁克斯

I believe this is what you're looking for: Scrolling Figure Demo by Evan Brooks

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文