Filter löschen
Filter löschen

Create zoom function in GUI

4 Ansichten (letzte 30 Tage)
Andrew
Andrew am 9 Jan. 2013
Hello community,
I've got a GUI with controls and axes. I need to zoom in and out my axes after plotting. I want to do this with pushing mouse button. Any idea how can I do this?
Thanks in advance.
Best regards,
Andrew

Antworten (2)

Jan
Jan am 9 Jan. 2013
Bearbeitet: Jan am 9 Jan. 2013
I suggest to search in the internet at first, because you will find a lot of existing solutions:
One of the links points to the function camzoom, but zoom might be useful also.
  1 Kommentar
Jan
Jan am 9 Jan. 2013
I'd prefer the scrollwheel for zooming in and out.

Melden Sie sich an, um zu kommentieren.


Image Analyst
Image Analyst am 9 Jan. 2013
I use a slider with a text label that has the current zoom. See this link for my code.
  2 Kommentare
Andrew
Andrew am 9 Jan. 2013
I have tried it, but it is not convinient
Image Analyst
Image Analyst am 9 Jan. 2013
If clicking the mouse button on a slider is too inconvenient, what could be more convenient? Clicking on the image? Is that more convenient? If so, then you'll have to make a callback for the mouse button down event.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Visual Exploration finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by