Zooming in on a plot within a GUI

I created a GUI using the GUIDE Quick Start and selecting "GUI with Axes and Menu" option. Once my data gets plotted, I would like to be able to use the magnifying glass toolbar that occurs in the upper right side of a normal plot. Is that possible? I need to be able to zoom into a certain data range.

回答 (1 件)

Cris LaPierre
Cris LaPierre 2020 年 12 月 17 日

0 投票

in my gui, it appears when I place the cursor on the plot. It appears just above the top right corner of the axes.

3 件のコメント

Matthew Pickard
Matthew Pickard 2021 年 1 月 7 日
That is not the case with mine. But I am using bar plots.
Cris LaPierre
Cris LaPierre 2021 年 1 月 7 日
Ah, ok. You could add an axes toolbar to your gui that has the zoom in/out buttons on it. In Guide, open your .fig file, select Tools > Toolbar Editor. A new window will open. Drag the tools you want to have in your gui towards the top and drop them in the indicated space.
Now when the gui launches, you will see those buttons available in a figure toolbar at the top of your gui.
Matthew Pickard
Matthew Pickard 2021 年 1 月 7 日
Thank you!

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeData Exploration についてさらに検索

質問済み:

2020 年 12 月 16 日

コメント済み:

2021 年 1 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by