Error while using App Designer's ui axis

2 visualizaciones (últimos 30 días)
Jordan Epstein
Jordan Epstein el 10 de Jun. de 2016
Comentada: Youssef ElAshry el 28 de Feb. de 2017
Hello all. I am writing an app that plots data live. It uses a UIAxes component to display the data.
The component's name is ooAxis. Everytime my app calls plot(app.ooAxis, blah, blah) I get a strange error.
Error using appdesigner.internal.appdesignererrorcallback (line 8)
Error updating LineStrip.
LineWidth of more than 0.4 is not supported.
Error in appdesigner.internal.service.AppManagementService/axeserrorhandler (line 138)
appdesigner.internal.appdesignererrorcallback(event.Source, event);
Error in appdesigner.internal.service.AppManagementService>@(source,event)obj.axeserrorhandler(event,app) (line 132)
@(source, event)obj.axeserrorhandler(event, app);
Error while evaluating HTMLCanvas ErrorCallback
I have tried setting app.ooAxis.LineWidth=.2 before every plot call however this changes nothing. If I dont use the UIAxes to plot it works fine. I.e. if I use plot(gca, blah, blah) its plots just fine in an old style axis.
Any help would be appreciated!
  1 comentario
Youssef ElAshry
Youssef ElAshry el 28 de Feb. de 2017
Hello Jordan,
If you are using the plot function to plot your data do this: plot(app.UIAxes,x,y,'LineWidth',0.4);
This is because MATLAB's plot function assumes a Line Width of 0.5
Also change app.UIAxes.Appearance.LineWidth to 0.4 for example.
Hope this helps.

Iniciar sesión para comentar.

Respuestas (1)

Chris Portal
Chris Portal el 26 de Jul. de 2016
This is a bug dealing with the handling of wide lines and high DPI monitor settings. One possible fix is to check your monitor's DPI setting and trying to bump it down if it's greater than 100%. That may offer a temporary workaround for now.

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by