quiver arrows in color representing another variable?
Mostrar comentarios más antiguos
Hi
Is it possible to incorporate a second variable into the quiver code? Could the color arrows in quiver be used to represent another variable, such as temperature or humidity ? This would work similarly to the scatter code, where the arrows indicate both the direction and magnitude of the wind but in color another variable?.
Thanks

3 comentarios
Dyuman Joshi
el 21 de Ag. de 2023
The above plot looks more like a feather plot of complex values. (You can change the color of individual arrows in feather.)
It would be better if you can attach your data, so suggestions can be made according to it.
Claudio Iturra
el 21 de Ag. de 2023
Editada: Claudio Iturra
el 22 de Ag. de 2023
Dyuman Joshi
el 22 de Ag. de 2023
You could try getting a similar plot via feather() instead of quiver().
Respuestas (1)
Walter Roberson
el 21 de Ag. de 2023
0 votos
Not by using quiver(). quiver() creates a quivergroup(), which internally contains two LineStrip objects. The LineStrip objects have a CData property that appears to only accept a single color.
Categorías
Más información sobre Vector Fields 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!
