quiver arrows in color representing another variable?
조회 수: 7 (최근 30일)
이전 댓글 표시
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
Dyuman Joshi
2023년 8월 22일
You could try getting a similar plot via feather() instead of quiver().
답변 (1개)
Walter Roberson
2023년 8월 21일
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Vector Fields에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!