Rank: 190 based on 338 downloads (last 30 days) and 14 files submitted
photo

Kelly Kearney

E-mail
Company/University
Princeton University

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Kelly View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
19 Oct 2011 Screenshot plotboxpos Returns the position of a plotted axis region Author: Kelly Kearney annotation, axis, plotted, area, customization, position 13 4
  • 4.5
4.5 | 6 ratings
19 Oct 2011 Screenshot contourfcmap: filled contour plot with precise colormap Creates a filled contour plot, with more precise control over colors than contourf. Author: Kelly Kearney contour, filled, contourf, contor 29 4
  • 5.0
5.0 | 2 ratings
24 Jun 2011 Screenshot legendflex: a more flexible legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney legend, label, potw, pick of the week 51 14
  • 4.8
4.8 | 10 ratings
17 May 2011 Screenshot line2arrow: Add an arrowhead to a plotted line Combines line plotting with annotation arrows. Author: Kelly Kearney line, arrow 18 0
12 Apr 2011 Screenshot Color Palette Tables (.cpt) for Matlab Create and apply GMT-style colormaps in Matlab Author: Kelly Kearney gradient, color palette table, colormap, color 30 8
  • 5.0
5.0 | 2 ratings
Comments and Ratings by Kelly View all
Updated File Comments Rating
23 Apr 2012 anymate Animate Handle Graphics objects Author: Jerker Wagberg

I've been having some difficulty with this function when trying to animate figures that include a large mix of object types, particularly ones with the same "type" value but different properties. For example, lines produced by line vs plot, hggroup objects of different types, etc. Anymate fails when trying to gather properties of these due to its reliance on a single sample handle from each type. An easy fix (or at least, easier than trying to handle every property gracefully) would be to have a switch to exclude certain properties from being collected (right now, excluding from anymation doesn't exclude from collection).

28 Mar 2012 Color Palette Tables (.cpt) for Matlab Create and apply GMT-style colormaps in Matlab Author: Kelly Kearney

@camilo melo,

I don't have R20011b, so I can't test it, but I can't think of any reason it wouldn't work in that version. Based on the error message you mention, my guess is you tried to call the function without any input arguments; it needs at least one (the name of the colormap).

19 Mar 2012 Violin Plots for plotting multiple distributions (distributionPlot.m) Function for plotting multiple histograms side-by-side in 2D - better than boxplot. Author: Jonas

Overall, this is a great function, and I use it quite often to analyze model ensemble output. A few enhancements that could be nice:

- Add the option to display in a horizontal orientation.

- Add the option to filter outliers when calculating bin widths and kernal densities. Could also be nice to display these as points, as in boxplot, rather than connecting them via long lines to the main histogram.

- This is an edge case, but the function will error under the addSpread option if a column/group contains only NaNs and/or Infs.

19 Jan 2012 legendflex: a more flexible legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney

@Mukhtar Ullah

Regarding making legendflex play nicely with panel, I admit I never considered the possibility that a figure's resize function might be linked to an object method. I don't do object-oriented coding myself, so I have very little knowledge of the internal workings, scope, etc. of objects. So no promises to fix this, though I will look into it if I find some spare time.

10 Jan 2012 legendflex: a more flexible legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney

@Mukhtar Ullah,

I don't actually manually set the interpreter in this function, so it relies on the default. You can actually change this after the fact using set, as long as you return the object_h handles (see last syntax option); the first n indices of this array will correspond to the n text objects in the legend. This slightly obscure way of returning handles was chosen to be consistent with the original legend command.

Comments and Ratings on Kelly's Files View all
Updated File Comment by Comments Rating
20 May 2012 boundedline: line plots with shaded error/confidence intervals Plot one or more lines with a shaded boundary (can represent error, confidence intervals, etc). Author: Kelly Kearney simpson, Gideon

Works well, but is it possible to put one of the axes on a log scale?

10 May 2012 contourfcmap: filled contour plot with precise colormap Creates a filled contour plot, with more precise control over colors than contourf. Author: Kelly Kearney Wilson, Earle

great function! This saved me many hours of working around all the bugs in contourf.

The only (minor) short coming is that this function doesn't deal with saturated low values. Eg. if you enter:
contourfcmap(x,y,z,clev,cmap,lo,hi)
and there are values in z < min(clev), they will be plotted as white spaces. This is an issue with contourf really, which I won't get into here. An easy fix is set all values in z outside the clev limits to min(clev) or max(clev). Eg.
toohigh = z>max(clev); z(toohigh) = max(clev);
loolow = z<min(clev); z(toolow) = min(clev);

27 Apr 2012 legendflex: a more flexible legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney Chris

Very nice - thanks!
I wonder if anyone knows how to go a step beyond. That is, my legends are often like tables which I currently hand make as figures within figures. The table-like legend has row and column headings with only the symbols/line types in the cells instead of a label for every symbol/line. This is because the symbol itself might change to represent one variable and whether it's filled or open might represent another so it's identity is a combination of the row and column headings in the table.

09 Apr 2012 legendflex: a more flexible legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney Dominic
28 Mar 2012 Color Palette Tables (.cpt) for Matlab Create and apply GMT-style colormaps in Matlab Author: Kelly Kearney Kearney, Kelly

@camilo melo,

I don't have R20011b, so I can't test it, but I can't think of any reason it wouldn't work in that version. Based on the error message you mention, my guess is you tried to call the function without any input arguments; it needs at least one (the name of the colormap).

Top Tags Applied by Kelly
annotation, customization, directories, files, label
Files Tagged by Kelly View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
19 Oct 2011 Screenshot plotboxpos Returns the position of a plotted axis region Author: Kelly Kearney annotation, axis, plotted, area, customization, position 13 4
  • 4.5
4.5 | 6 ratings
19 Oct 2011 Screenshot contourfcmap: filled contour plot with precise colormap Creates a filled contour plot, with more precise control over colors than contourf. Author: Kelly Kearney contour, filled, contourf, contor 29 4
  • 5.0
5.0 | 2 ratings
24 Jun 2011 Screenshot legendflex: a more flexible legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney legend, label, potw, pick of the week 51 14
  • 4.8
4.8 | 10 ratings
17 May 2011 Screenshot line2arrow: Add an arrowhead to a plotted line Combines line plotting with annotation arrows. Author: Kelly Kearney line, arrow 18 0
12 Apr 2011 Screenshot Color Palette Tables (.cpt) for Matlab Create and apply GMT-style colormaps in Matlab Author: Kelly Kearney gradient, color palette table, colormap, color 30 8
  • 5.0
5.0 | 2 ratings

Contact us at files@mathworks.com