Create zoom function in GUI

조회 수: 2 (최근 30일)
Andrew
Andrew 2013년 1월 9일
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

답변 (2개)

Jan
Jan 2013년 1월 9일
편집: Jan 2013년 1월 9일
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
Jan
Jan 2013년 1월 9일
I'd prefer the scrollwheel for zooming in and out.

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2013년 1월 9일
I use a slider with a text label that has the current zoom. See this link for my code.
  댓글 수: 2
Andrew
Andrew 2013년 1월 9일
I have tried it, but it is not convinient
Image Analyst
Image Analyst 2013년 1월 9일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Exploration에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by