Error while using App Designer's ui axis

1 Ansicht (letzte 30 Tage)
Jordan Epstein
Jordan Epstein am 10 Jun. 2016
Kommentiert: Youssef ElAshry am 28 Feb. 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 Kommentar
Youssef ElAshry
Youssef ElAshry am 28 Feb. 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Chris Portal
Chris Portal am 26 Jul. 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.

Kategorien

Mehr zu Develop Apps Using App Designer 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