Format axes in plot
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Is it possible to color a single number (or a set of numbers) on one of the axes in Matlab?
Suppose I have a plot:
plot(1:10, rand(1,10))
Now, can I e.g. make the number 3 on the x-axis red?
Thanks!
1 Commento
Hanif
il 21 Mag 2013
try plot(1:10, rand(1,10), 'ForegroundColor','Red')
as for one number not too sure
Risposte (1)
Jan
il 22 Mag 2013
Searching in the FileExchange for "tick label" finds a lot of interesting methods, e.g. http://www.mathworks.com/matlabcentral/fileexchange/36254-ticklabelformat-set-a-dynamic-format-of-axes-tick-labels. This will not solve the problem directly, but it contains enough details.
0 Commenti
Vedere anche
Categorie
Scopri di più su Annotations 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!