horizontal lines in candle chart

3 Ansichten (letzte 30 Tage)
AA
AA am 14 Jan. 2015
Beantwortet: Sara am 14 Jan. 2015
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.

Akzeptierte Antwort

Sara
Sara am 14 Jan. 2015
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

Weitere Antworten (0)

Kategorien

Mehr zu Syntax for States and Transitions finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by