Rank: 2980 based on 40 downloads (last 30 days) and 1 file submitted
photo

Melissa Day

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Melissa Day
Updated   File Tags Downloads
(last 30 days)
Comments Rating
24 May 2013 Screenshot quiverwcolorbar Generates a quiver plot colored according to vector magnitude and/or user specified axis boundaries. Author: Melissa Day quiver, vector, velocity, arrows, color, magnitude 40 6
  • 4.0
4.0 | 1 rating
Comments and Ratings by Melissa Day View all
Updated File Comments Rating
24 May 2013 quiverwcolorbar Generates a quiver plot colored according to vector magnitude and/or user specified axis boundaries. Author: Melissa Day

sundar, I'm not familiar with imshow, but the velocity coloring and the colorbar are not linked in this program quite like they are normally, which might be an issue. When I use imshow(quiverwcolormap(x',y',u',v',scale,'bounds',[0 10]),jet) with the data from the example I posted, it looks all right though, but that might not be your problem. Normally when I call this program to plot over another image I just use "hold on". Sorry I can't be of more help - I hope you figure it out!

24 Apr 2013 quiverwcolorbar Generates a quiver plot colored according to vector magnitude and/or user specified axis boundaries. Author: Melissa Day

FYI to everyone, I had a similar problem with http://www.mathworks.com/matlabcentral/fileexchange/7180-quiverc2wcmap and had to add "view([0,-90]);" after I called the plot for it to look right (after doing a clear all), so if anyone is having trouble with this maybe playing with the view will help.

28 Mar 2013 Generate maximally perceptually-distinct colors Choose a set of n colors that can be readily distinguished from each other Author: Tim Holy

Thanks for this! And thanks to the below commenter who suggested replacing the ~ on line 115.

06 Feb 2013 quiverc2wcmap quiver with color w/r to mag with colormap an NaN support. Author: Andrew Diamond

Thanks for this! Not being able to assign arrow color by vector magnitude was driving me crazy. I do have to add view([0,-90]); after calling this since it transposes my graphs in a strange way, however.

Comments and Ratings on Melissa Day's Files View all
Updated File Comment by Comments Rating
31 Oct 2014 quiverwcolorbar Generates a quiver plot colored according to vector magnitude and/or user specified axis boundaries. Author: Melissa Day Simon

In Matlab 2014a this gives me an error:

Error using set
Bad property value found.
Object Name: axes
Property Name: 'CLim'
Values must be increasing and non-NaN.

Error in caxis (line 79)
set(ax,'CLim',arg);

Error in quiverwcolorbar (line 185)
caxis([colormin colormax])

It seems to be fixed by adding transposes to line 114, so that line 114 should read:

xyuvvrNN = [x(nonNaNind)',y(nonNaNind)',u(nonNaNind)',v(nonNaNind)',vr(nonNaNind)'];

24 May 2013 quiverwcolorbar Generates a quiver plot colored according to vector magnitude and/or user specified axis boundaries. Author: Melissa Day sundar

Thanks for the quick reply.
I just figured out that when I use imagesc instead of imshow it works fine.

clf;imagesc(Image)
hold on
quiverwcolorbar(x,y,u,v)

This works good.

24 May 2013 quiverwcolorbar Generates a quiver plot colored according to vector magnitude and/or user specified axis boundaries. Author: Melissa Day Melissa Day

sundar, I'm not familiar with imshow, but the velocity coloring and the colorbar are not linked in this program quite like they are normally, which might be an issue. When I use imshow(quiverwcolormap(x',y',u',v',scale,'bounds',[0 10]),jet) with the data from the example I posted, it looks all right though, but that might not be your problem. Normally when I call this program to plot over another image I just use "hold on". Sorry I can't be of more help - I hope you figure it out!

24 May 2013 quiverwcolorbar Generates a quiver plot colored according to vector magnitude and/or user specified axis boundaries. Author: Melissa Day sundar

When I use quiverwcolorbar, I get a very nice colored velocity field from blue to red, using the jet colormap. My velocity range is between 0 and 13 um/min.
When I use imshow to display my image and then call this function, the colorbar is totally weird and it is only blue in color (ranging from 0 to 13 um/min) even though the velocities are colored blue to red.

I do not know what I should change?

Any help will be awesome.

24 Apr 2013 quiverwcolorbar Generates a quiver plot colored according to vector magnitude and/or user specified axis boundaries. Author: Melissa Day Melissa Day

FYI to everyone, I had a similar problem with http://www.mathworks.com/matlabcentral/fileexchange/7180-quiverc2wcmap and had to add "view([0,-90]);" after I called the plot for it to look right (after doing a clear all), so if anyone is having trouble with this maybe playing with the view will help.

Contact us