Borrar filtros
Borrar filtros

Get Zoom Handle for UIAxes/Axes when using App Designer

19 visualizaciones (últimos 30 días)
RichardW
RichardW el 17 de Sept. de 2019
Comentada: RichardW el 23 de Sept. de 2019
I am developing an application using App Designer, and I am unable to obtain the zoom handle when using 'zoom'.
out = zoom(UIFigurehandle)
Returns the exception 'UI figure not supported as an input to zoom. Specify UIAxes or Axes in a UI figure instead.'
out = zoom(UIAxeshandle)
or
out = zoom(Axeshandle)
Returns the exception 'Incorrect number of input arguments.'
I can enable zoom using:
zoom(UIAxeshandle, 'on')
Which works as expected, but as per the documentation it wont return an output (it throws 'Output argument "out" (and maybe others) not assigned during call to "zoom".' if I try).
Using simply:
out = zoom()
Opens a new figure, but returns the handle.
How can I obtain the zoom handle when using app designer? I need it to be able to set the callback and other options, but right now I cannot find a way to do so.
  3 comentarios
RichardW
RichardW el 18 de Sept. de 2019
Thank you, but that is what I used in my example above. Within app designer both my call to the figure handle and uiaxes/axes handles are contained within 'app'.
Ankit
Ankit el 18 de Sept. de 2019
zoom(app.UIFigurehandle) throws an error as already mentioned by Richard.

Iniciar sesión para comentar.

Respuesta aceptada

Ned
Ned el 20 de Sept. de 2019
You can't. As at 2017a pertaining to UIAxes, "zoom only supports the 'on' , 'off', and factor arguments."
  3 comentarios
Ned
Ned el 23 de Sept. de 2019

Have you considered using axtoolbar ? Or changing the toolbar property of the UIAxes object? Or does this not suit your needs?

RichardW
RichardW el 23 de Sept. de 2019
I need access to a callback in relation to zoom functionality, so I don't think axtoolbar or toolbar properties will help. axtoolbar callbacks seem to be in relation to button selection, whereas I want a callback to be flagged while zoom is being performed.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Visual Exploration en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by