Error when trying to change the colour of a line in a figure

10 visualizaciones (últimos 30 días)
Shannon
Shannon el 31 de Mayo de 2018
Respondida: anis oukil el 22 de Ag. de 2019
Hello - I'm using Matlab 2017a with Ubuntu 18.04. I open Matlab using the opengl option. I'm getting the following error when I try to change the colour of a line using the GUI:
Error using matlab.ui.internal.dialog.WebColorChooser/show (line 72)
Java exception occurred:
com.mathworks.html.BrowserCreationException: com.mathworks.html.BrowserCreationException:
com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process exited. Exit code: 127
at
com.mathworks.mlwidgets.html.LightweightBrowserBuilder.buildBrowser(LightweightBrowserBuilder.java:86)
at
com.mathworks.mlwidgets.html.LightweightBrowserBuilder.buildDefaultBrowser(LightweightBrowserBuilder.java:52)
at
com.mathworks.mlwidgets.html.LightweightBrowserFactory.createLightweightBrowser(LightweightBrowserFactory.java:36)
Caused by: com.mathworks.html.BrowserCreationException:
com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process exited. Exit code: 127
at
com.mathworks.html.jxbrowser.chromium.LightweightChromiumBrowser.<init>(LightweightChromiumBrowser.java:32)
at
com.mathworks.mlwidgets.html.LightweightBrowserBuilder.buildBrowser(LightweightBrowserBuilder.java:78)
... 2 more
Caused by: com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: IPC process exited. Exit code: 127
at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Is there a solution to this? I'm also having a graphics bug, I think the two could be related https://www.mathworks.com/matlabcentral/answers/342959-matlab-r2016b-graphics-bug-linux
Thanks,
Shannon
  2 comentarios
Walter Roberson
Walter Roberson el 31 de Mayo de 2018
These lines you are trying to change: are they on "traditional" figures, or are they on the much newer uifigure() such as are used with App Designer ?
Shannon
Shannon el 31 de Mayo de 2018
Traditional figures.

Iniciar sesión para comentar.

Respuesta aceptada

Greg
Greg el 1 de Jun. de 2018
Error using matlab.ui.internal.dialog.WebColorChooser/show (line 72) indicates you're using uisetcolor, and that's causing the problem - not the actual attempt to change plot line color.
See my own question regarding issues (and workarounds) with the new uisetcolor WebColorChooser.
Since you're running R2017a, try this:
setpref('Mathworks_uisetcolor','Version',1); % RESTART MATLAB
  1 comentario
Shannon
Shannon el 1 de Jun. de 2018
The above solution does not work but the other one that you posted did work:
s = settings;
oldcolorpicker = 'matlab.ui.internal.dialog.ColorChooser';
% For reference:
% newcolorpicker = 'matlab.ui.internal.dialog.WebColorChooser';
s.matlab.ui.dialog.uisetcolor.ControllerName.TemporaryValue = oldcolorpicker;
Thanks for your help!

Iniciar sesión para comentar.

Más respuestas (1)

anis oukil
anis oukil el 22 de Ag. de 2019
I confirm that the second solutions works, as I get the error while trying to change textbox color in a figure menu. Thanks

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by