Discussion:
Color interval chart
shivax
2018-11-19 12:50:06 UTC
Permalink
x = 1:20;
y= 1:20
plot (x,y,'bo-');

it's possible to color interval chart (example : from 1 to 5 color green)
See pic

https://gyazo.com/b85569d280f4b9355af705591b67f682



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
Pantxo
2018-11-19 14:52:29 UTC
Permalink
Post by shivax
x = 1:20;
y= 1:20
plot (x,y,'bo-');
it's possible to color interval chart (example : from 1 to 5 color green)
See pic
https://gyazo.com/b85569d280f4b9355af705591b67f682
--
http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
Yes, it is possible, just add a green rectangle (see "help rectangle"). Draw
the rectangle last if you want it to mask the plot data, and first if you
want it in the background.

Pantxo



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
shivax
2018-11-19 17:55:54 UTC
Permalink
txk you



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
gigiolone123
2018-11-20 06:41:31 UTC
Permalink
hi pantxo…

i need to color green and to see curve …

it is not possible to see the color curves under the color

have you another solution? thank




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825
shivax
2018-11-20 06:43:33 UTC
Permalink
hi pantxo…

i need to see color green and to see curve …

it is not possible to see the color curves under the color

have you another solution? thank



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f
mmuetzel
2018-11-20 12:11:38 UTC
Permalink
Post by shivax
i need to see color green and to see curve …
it is not possible to see the color curves under the color
Yes, it is possible, just add a green rectangle (see "help rectangle").
*
Post by shivax
Draw
the rectangle last if you want it to mask the plot data, and first if you
want it in the background.
*

Or clarify what you want to do.

Markus



--
Sent from: http://octave.1599824.n4.nabble.co
shivax
2018-11-20 14:28:34 UTC
Permalink
https://gyazo.com/366ca7424b510672e320b65a5e18c509





--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
mmuetzel
2018-11-20 17:18:38 UTC
Permalink
I don't want to be disrespectful. But please at least *try* to read the
answers! And show what you have tried!

Pantxo's answer works for me:
axes ();
rectangle ('Position', [0 0 5 10], 'FaceColor', 'g', 'EdgeColor', 'none');
hold on
plot (1:10);



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
shivax
2018-11-20 17:36:42 UTC
Permalink
thank you for answer…

i'de try it with code:

rectangle ("Position", [0, ylim()(1),k1,ylim()(2)], 'FaceColor', 'g',
'EdgeColor', 'none');

hold on
plot(x,ValEquity2_Other,'c');
h=plot(x,ValEquity,x,ValEquity2);


and i don't see curve beacuse the problem was ylim…

ylim i don't know it before to plot..

Thanks you..now i've understand what was the problem and i solve it




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825
Loading...