plot lines and stems behind the markers?
14 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi, How can I put the plot lines and stems behind the markers?
0 Commenti
Risposta accettata
Ameer Hamza
il 21 Ott 2020
You can use uistack(). For example, consider this code
x = 1:10;
y = rand(1,10);
hold on
s = scatter(x, y, 'filled', 'SizeData', 100);
p = plot(x, y, 'LineWidth', 2);
the line will be over the scatter points. You can bring the scatter point on top using
uistack(s, 'top')
3 Commenti
Ameer Hamza
il 21 Ott 2020
You can also get the handle of stem object and arrange it using uistack
s = stem(..)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Stem Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!