When is Matlab going to offer a colored chart

3 views (last 30 days)
With the standard quiver chart offered in matlab (as of 2020a) its is not possible to map a color to each vector based on some input property and a colormap. In matplotlib it is possible to create beautiful colored quiver plots without much more computational cost. At present I have to save all my data from matlab just to visualize in Python which makes sharing my code more complicated. My question is whether there is a new quiver version on the horizon which has the ability to specify a color property which links to a colormap (similar to Matplotlibs implementation). There are hacks in the File Exchange (see this the links provided in this answer) but as they mention - these may not be supported in later versions of matlab - I think this is some basic functionality that is sorely missing.
  1 Comment
Rik
Rik on 22 May 2020
Generally Mathworks will only tell you what they are working on after you sign an NDA, so even if someone who knows the answer sees your question you will still not get the answer.
I disagree that it is a basic functionality to be able to individually color the quivers. If you want it, you can: use a loop and plot each array separately. If you don't want to use a loop: set the object properties like with the FEX submissions mentioned in the thread you linked.
The only other option you have is writing your own quiver function that allows this.

Sign in to comment.

Accepted Answer

Steven Lord
Steven Lord on 22 May 2020
Rik is correct that we generally do not discuss whether or not we're working on a particular piece of functionality without an NDA.
If you want to request that the quiver function be enhanced to allow different arrows in the plot to be displayed in different colors, along the lines of what scatter allows for points, that seems like a reasonable enhancement request to send to Technical Support using the telephone icon in the upper-right corner of this page.

More Answers (1)

Image Analyst
Image Analyst on 22 May 2020
I agree it would be nice since they have that feature for scatter(). But you can plot them individually, like I did for this other question: Cluster analysis from edge detection
  1 Comment
Jason
Jason on 3 Jun 2020
Edited: Jason on 3 Jun 2020
Thanks, I thought of plotting multiple quivers with different colors from a colormap but I need to do this with hundreds to thousands of time-frames and thought that adding another color loop in the mix would slow down things considerably - so I saved my data to file and performed my visualisation using matplotlib (I am not sure which is faster to be honest).

Sign in to comment.

Categories

Find more on Vector Fields in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!