How to plot smaller o's using plot(x,y,'o')
21 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Cameron Jewell
il 14 Lug 2015
Commentato: Cameron Jewell
il 14 Lug 2015
I need to plot data points from a matrix using plot(x, y, 'o'), but the o's being plotted take up far too much space (the number of data points being plotted and displayed is +85000).
Can I use plot(x, y, 'o', 'markersize', 0.05) or something like that? Changing 'Linewidth' does not help.
0 Commenti
Risposta accettata
Steven Lord
il 14 Lug 2015
Do you really need to plot all 85,000 individual markers and have them visible simultaneously? What fraction of the number of pixels on your screen does each pixel take up? You can check this by querying the ScreenSize property of the groot object.
Setting a MarkerSize of 0.05 means you want each marker to take up 1/20 of a point. A point is 1/72 inch.
If you do need to plot all of them at once, I would change the axes limits to only display a small portion of the plotting region at a time or plot them using '.' as your marker instead of 'o'. Otherwise it's going to be really difficult to interpret your data, like looking at a picture of a desert and hoping to draw conclusions from the appearance of individual grains of sand.
4 Commenti
Più risposte (1)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!