'MarkerFaceColor' according to y value
21 visualizzazioni (ultimi 30 giorni)
Walter Roberson il 13 Nov 2022
No it is not possible with any documented method (maybe with undocumented methods).
The workaround is to not place markers in your plot() call, and instead
shape = 's';
scatter(x, y, pointsize, y, shape, 'filled')
If you want the edge color to be different than the face color then you will need to pass in options.
Note that most markers are drawn completely by edge and setting face color does not affect them.