Plot only markers without lines
1 105 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I have two matrices V(NXM) and g(NXM). I wish to plot each column in V (x axis) against each column in g(y axis). I must have the data plotted only as markers i.e without lines.
I tried 'LineStyle','none' but I didn't managed to "turn on" the marker stuff. I do not want to specify manually what markers to use beacuse I have many columns (which I will also plot on separate figures).
I thought that matlab can plot the markers and once it finished all the markers it will change color and restart the marker order.
so can I do this?
Thanks, Rami
0 commentaires
Réponse acceptée
Plus de réponses (3)
TheStranger
le 5 Déc 2018
Hi!
I know it was like 4 years ago, but anyway.
You need to specify 'LineStyle', 'none'
3 commentaires
Esen Ozbay
le 1 Juil 2021
Thanks so much! Just what I was looking for since scatter was working problematic.
Yash Doshi
le 23 Fév 2021
Modifié(e) : Yash Doshi
le 23 Fév 2021
You can also use the 'LineStyle','none' in the stem() function, and yes, MATLAB itself knows when to change markers for different columns, you just need to plot each column in a loop using (hold on).
Hope this answers and solves your query.
I know I have been very early in answering the question xD. But maybe it can be useful for anyone who sees this in the future.
0 commentaires
Voir également
Catégories
En savoir plus sur Discrete Data Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!