Plot Grid line colours
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Is it possible to change the colours of the major and minor grid lines in a plot figure without changing the colour of the tickmark annotations (the numbers)? For example, I would like to have pale gridlines, whilst keeping the annotations black. There doesn't appear to be any way that I can see of accessing the annotations separately from the gridlines. The only way I can think of to do this is to plot the grids twice - once in the light colour - and then again in black, with the grid set of "off", thus overwriting just the numbers... There has to be a better way!
0 Commenti
Risposte (1)
the cyclist
il 27 Lug 2011
The only other way I can think of to accomplish this, which is just as kludgy as your method, would be to draw the gridlines manually, using the line() function. This would give you independent control of their color.
0 Commenti
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!