Trouble drawingpolyline in appdesigner

2 visualizzazioni (ultimi 30 giorni)
Ivan Silva
Ivan Silva il 27 Apr 2020
Hello,
I have a child axes of an uifigure, when I execute the drawpolyline(app.myaxe) Matlab give me the follow error n times, i think, same times mouse move.
Warning: Error occurred while executing the listener callback for event WindowMouseMotion defined for class
matlab.ui.Figure:
Error using matlab.ui.Figure/set
Functionality not supported with figures created with the uifigure function. For more information, see Graphics Support
in App Designer.
Error in images.roi.internal.setROIPointer
Error in images.roi.internal.IPTROIPointerManager/motionCallback
Error in images.roi.internal.IPTROIPointerManager>@(src,evt)self.motionCallback(src,evt)
Error in uiwait (line 81)
waitfor (hFigDlg, 'WaitStatus', 'inactive');
Error in images.roi.internal.ROI/draw
Error in drawpolyline (line 153)
h.draw;
Error in Background/Barradi (line 310)
drawpolyline(app.GRAFICO3D1)
Error in appdesigner.internal.service.AppManagementService/tryCallback (line 330)
callback(app, event);
Error in
matlab.apps.AppBase>@(source,event)tryCallback(appdesigner.internal.service.AppManagementService.instance(),app,callback,requiresEventData,event)
I tried drawpolyline in uiaxes but give me error not supported, i have 2018b version. Help me please. Thanks.

Risposte (1)

Sampath Rachumallu
Sampath Rachumallu il 27 Apr 2020
Modificato: Sampath Rachumallu il 30 Apr 2020
I think drawpolyline functionality for uiaxes has been recently added (r2020a). I am using r2019a and i got following.error:
Functionality not supported with UIAxes. For more information, see Graphics Support in App Designer.
Error in images.roi.internal.ROI/extractInputNameValue
Error in images.roi.internal.ROI/parseInputs
Error in images.roi.Polyline
Refer documentation of drawpolyline here.
It was specified that input for drawpolyline can be 'axes' or 'uiaxes' object
  2 Commenti
Ivan Silva
Ivan Silva il 29 Apr 2020
Thanks Sampath Rachumallu, do you know how i can confirm that drawpolyline has been added in r2020a?
Sampath Rachumallu
Sampath Rachumallu il 29 Apr 2020
Modificato: Sampath Rachumallu il 30 Apr 2020
In the documentation it was specified.Check this link.
It was specified that input for drawpolyline can be 'axes' or 'uiaxes' object

Accedi per commentare.

Categorie

Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by