horizontal lines in candle chart
조회 수: 3 (최근 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에서 Bar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!