开发者

MATLAB candle chart handle

开发者 https://www.devze.com 2023-02-21 17:46 出处:网络
When I use >&开发者_JAVA百科gt; load disney; >> hcndl = candle(dis(\'3/31/98::4/30/98\'))

When I use

>&开发者_JAVA百科gt; load disney;
>> hcndl = candle(dis('3/31/98::4/30/98'))

hcndl =

  176.0044
  178.0032
  177.0031

How can I use this handle to change the background color of the chart.

Thanks


I think you're looking for the set function. Set function accepts the handle of the figure and allows you to change the properties of the figure.

handle  = candle(dis('3/31/98::4/30/98'));
set(handle,'BackgroundColor','blue');


You want to modify the color of the axes. candle gives you handles to lines, whose parent are the axes you'd like to modify.

load disney;
hcndl = candle(dis('3/31/98::4/30/98'));

%# find handle to axes using the first of the three handles
%# note that you could have used any of the three
axH = get(hcndl(1),'Parent');

%# modify axes
set(axH,'Color','k') %# black color
0

精彩评论

暂无评论...
验证码 换一张
取 消