Error while using App Designer's ui axis

2 vues (au cours des 30 derniers jours)
Jordan Epstein
Jordan Epstein le 10 Juin 2016
Commenté : Youssef ElAshry le 28 Fév 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 commentaire
Youssef ElAshry
Youssef ElAshry le 28 Fév 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.

Connectez-vous pour commenter.

Réponses (1)

Chris Portal
Chris Portal le 26 Juil 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.

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by