MATLAB: Make UIAxes Background invisible or hide it in APP Designer

app designeraxeshide uiaxes backgroundMATLABuiaxes

Hi,
I want to hide completely a uiaxes in my app. I first hided the Axes (easy)
app.UIAxes.Visible = 'off';
But still the background is present, i used a second command to change background color to "none". But it throws an error. ANy solutions please ?
set(app.UIAxes,'BackgroundColor','none')
Error in V_1_APP/PassiveElementsButtonPushed (line 1573)
set(app.UIAxes,'BackgroundColor','none')
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 382)
Error while evaluating Button PrivateButtonPushedFcn.

Best Answer

It seems that the background color of a UIAxes cannot be set to 'none'. See the attached app for an alternative. It set the background color to the color of the figure window.