Which plot do I need?
Mostrar comentarios más antiguos
Hello,
I'm trying to plot in 2D some points and I want to color them depending on a logic (1 or 0) classification.
I'll explain myself better. I have a matrix with different xy-coordinates and a logic values assigned to each coordinate that tells me if the point is suitable as an initial points for the deployment of a satellite. I've tried using scatter but I just get colored points and I'm looking for a "painted map" so I can easily see groups of good points and groups of bad points.
EDIT: I want to see a colored, continuum surface indicating "good" zones and "bad" zones depending of if there are many suitable points or not. Something like this image.
Thank you guys.
Respuesta aceptada
Más respuestas (2)
Image Analyst
el 11 de Ag. de 2015
0 votos
scatter() should still work. What did you do? You can pass in a list of colors for every point you know. You can also determine the sizes that way. Did you pass colors and sizes in to scatter(), or you just passed in x and y? You'd need to have an array with as many rows as you have data points, and three columns, with the values in the columns being in the range 0-1.
1 comentario
Felix Lauwaert
el 11 de Ag. de 2015
Bjorn Gustavsson
el 11 de Ag. de 2015
0 votos
Well if you really want a surface-type plot look at trisurf and possibly TriScatteredInterp, if you prefer to first reinterpolate your goodness onto a regular grid.
HTH
Categorías
Más información sobre Surface and Mesh Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!