horizontal lines in candle chart
5 次查看(过去 30 天)
显示 更早的评论
Hi, I have a candle chart and want to add horizontal lines to it at the following levels: 0%, 23.6%;38.2%;50%;61.8%;76.4%;100%.
The x-axis of the candle chart has 120 minutes. I want to draw these horizontal lines for the first 60 minutes.
thanks for the help.
0 个评论
采纳的回答
Sara
2015-1-14
x = [0 60];
ylev = [0 23.6 38.2]; % add all levels you want
hold on;
for i = 1:numel(ylev)
plot(x,[ylev(i) ylev(i)],'k--'); % change line format as you like them
end
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Syntax for States and Transitions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!