Error while using App Designer's ui axis

조회 수: 2 (최근 30일)
Jordan Epstein
Jordan Epstein 2016년 6월 10일
댓글: Youssef ElAshry 2017년 2월 28일
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
Youssef ElAshry
Youssef ElAshry 2017년 2월 28일
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.

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

답변 (1개)

Chris Portal
Chris Portal 2016년 7월 26일
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.

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by