Effacer les filtres
Effacer les filtres

Plot with dot and different colors

819 vues (au cours des 30 derniers jours)
LOKESH
LOKESH le 13 Mai 2012
I am using plot function where i need dots.Also I want to change colors?How can I do it.
plot(x,y,'.');
Above function plot the dots but how I change the dots color red or green,etc The following doesn't work:
plot(x,y,'.','r:');
Suggest any answer or solution..
  1 commentaire
Alexander Reina Garzon
Alexander Reina Garzon le 17 Oct 2022
plot(x,y,'r.')
plot(x,y,'o')
plot(x,y,'m')

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 13 Mai 2012
plot(x,y,'r.')
You may wish to consider using scatter()

Plus de réponses (2)

Nadeem Tariq Beigh
Nadeem Tariq Beigh le 8 Juin 2020
Modifié(e) : Nadeem Tariq Beigh le 8 Juin 2020
plot(x,y,'ro');//To plot a red circle
plot(x,y,'r.);//To plot ared dot

Goutham Saravanan
Goutham Saravanan le 21 Sep 2021
x = linspace(1*pi,100);
y = ;
plot(x,y,'ro');
xlabel('x')
ylabel('Likelihood ratio for the given conditions')
title('1.2/c')

Catégories

En savoir plus sur Polar 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!

Translated by