<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hello Stéphane,<br>
<br>
Le 08/12/2016 15:33, Stéphane Mottelet a écrit :<br>
</div>
<blockquote cite="mid:e5777140-beb2-47ef-058d-2bcc94adb83a@utc.fr"
type="cite">Hello, <br>
<br>
The surrounding color of the axes box inherits the parent figure
color. When the axes parent is the figure itself this feature is
logical, but when the parent of the axes is a frame with a
different color (Figure/Frame/Axes), the axes still inherits the
figure color. To me, this is bug. If other users think the same I
will file a bug (run the following script : surrounding color of
Axes should be white (not gray), which is the color of the frame)
<br>
<br>
fig=figure("default_axes", "off","layout","border") <br>
frame=uicontrol(fig, "style", "frame","backgroundcolor",[1 1 1]) <br>
newaxes(frame) <br>
plot <br>
</blockquote>
<br>
Frame.backgroundColor => child.background : <br>
I would rather agree with you, provided that <br>
<ol>
<li>axes do not become an exception: any uicontrol of any style
set as child of a frame (if this is possible for other objects
than axes) should inherit the frame's background as an axes will
do. I don't think it is presently the case.<br>
<br>
</li>
<li>there is a good clear reason to get the default background
color of the frame's children from the frame, and only this
property. Otherwise, the question will be the same for all other
transferable properties:<br>
Handle of type "uicontrol" with properties:<br>
===========================================<br>
Parent: Figure =>
Axes<br>
Children: []<br>
Style = frame<br>
BackgroundColor = [-1,-1,-1] background<br>
Border = "NoBorder"<br>
Constraints = "NoLayoutConstraint"<br>
Enable = "on"<br>
FontAngle = normal<br>
FontName = Tahoma font_style<br>
FontSize = 13
font_size<br>
FontUnits = points ~
fractional_font<br>
FontWeight = normal font_style<br>
Icon = ""<br>
Layout = "none"<br>
Layout_options = "OptNoLayout"<br>
Margins = [0,0,0,0]<br>
Position = [20,40,40,20]<br>
Relief = default<br>
Scrollable = "off"<br>
String = []<br>
Tag = <br>
TooltipString = ""<br>
Units = pixels<br>
Userdata = []<br>
Visible = "on"<br>
HIDDEN frame PROPERTY:<br>
frame.foregroundColor foreground</li>
</ol>
<br>
For consistency, all these modifications would be needed. But is it
so worth doing all that?<br>
<br>
BR<br>
Samuel<br>
<br>
</body>
</html>