Effacer les filtres
Effacer les filtres

change colour of a text into blue

310 vues (au cours des 30 derniers jours)
Locks
Locks le 1 Avr 2013
text(0,0.11,'Log-normal distribution')
text(10,0.06,'Normal distribution')
set(text,'Color','b')
I would like to have the 2nd row of code displayed in blue, but if I insert 'b' into the brackets, it does not with and the code above doesn't either, what do I need to change?

Réponse acceptée

Mahdi
Mahdi le 1 Avr 2013
Try doing it in one line
text(10, 0.06, 'Normal distribution', 'Color', 'b')
  1 commentaire
Locks
Locks le 1 Avr 2013
that's working, thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by