Error while using App Designer's ui axis

2 views (last 30 days)
Jordan Epstein
Jordan Epstein on 10 Jun 2016
Commented: Youssef ElAshry on 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 Comment
Youssef ElAshry
Youssef ElAshry on 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.

Sign in to comment.

Answers (1)

Chris Portal
Chris Portal on 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.

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!