Discussion:
draw line upper points
gigiolone123
2018-11-10 11:42:34 UTC
Permalink
hi all

i write this code:

x=1:2:200

stem(x,'b');

it's possible to paint this line black in this graphis?


https://gyazo.com/8aa5aa2efb70dbea41c2737abf279684





--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
mecht
2018-11-10 13:14:26 UTC
Permalink
you can always add a line plot over your stem plot:

x=1:2:200;
stem(x,"marker","none"); hold on;
plot(linspace(1,length(x),length(x)),x,'k',"LineWidth",3);

Or if you only want to make your points to be visible more you can write:

stem(x,'b',"filled");

Points will not create line, but in high quantities they look like a line
(at least for me) : )



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
gigiolone123
2018-11-10 17:13:41 UTC
Permalink
thank you



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