Rank: 54 based on 979 downloads (last 30 days) and 15 files submitted
photo

Kelly Kearney

E-mail
Company/University
University of Miami/NOAA AOML

Personal Profile:

 

Watch this Author's files

 

Files Posted by Kelly Kearney View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Dec 2014 Screenshot legendflex.m: a more flexible, customizable legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney potw, pick of the week, r2014b graphics ready, legend, label 183 47
  • 4.65217
4.7 | 24 ratings
19 Dec 2014 Screenshot contourfcmap: filled contour plot with precise colormap Creates a filled contour plot, with more precise control over colors than contourf. Author: Kelly Kearney contor, r2014b graphics ready, contour, filled, contourf 85 10
  • 4.6
4.6 | 5 ratings
15 Dec 2014 aggregate Group (and apply functions to) values in one matrix based on grouping variables in another Author: Kelly Kearney accumarray, aggregate, group 19 0
15 Dec 2014 Screenshot interpshapefile Determine value at a given location or locations based on data in an ESRI shapefile Author: Kelly Kearney shapefile, esri, map, coordinates 12 2
  • 5.0
5.0 | 3 ratings
15 Dec 2014 Screenshot inpolygons Finds points inside multiple polygons, holes possible. Author: Kelly Kearney approximation, interpolation, polygon, polygons, mathematics, approximations 27 4
  • 4.2
4.2 | 5 ratings
Comments and Ratings by Kelly Kearney View all
Updated File Comments Rating
15 Dec 2014 legendflex.m: a more flexible, customizable legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney

@Leo,

The disappearing legends you're seeing are due to the subplot command (which deletes any existing axes overlapping its intended space). See https://github.com/kakearney/legendflex-pkg/issues/1 for a full explanation.

10 Dec 2014 legendflex.m: a more flexible, customizable legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney

@Warwick:
The code to reproduce the sample image is now available in the example on the GitHub page (follow the kakearney/legendflex-pkg link, and scroll to the bottom of the page).

@Martin: The getpos.m function is included in the download; make sure you add the setgetpos folder to your path.

06 Dec 2014 legendflex.m: a more flexible, customizable legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney

@Chris,

Yes, I think that was due to a residual R2014b bug. I've done a bit of cleanup over the last few weeks, and your example works fine using my most recent version, which I just uploaded. Email me if you still have problems with this latest version.

13 Nov 2014 Notifier Notify you via email or text message when your functions finish or crash. Author: Benjamin Kraus

Very nice function. I found that my text messages were often truncated when using this with anonymous functions with a large number of input parameters, so I added the following few lines to allow a function nickname to be used in the subject line of emails/texts:

if iscell(fh)
fhname = fh{2}; % nickname
fh = fh{1}; % function handle
else
fhname = func2str(fh);
end

25 Aug 2014 legendflex.m: a more flexible, customizable legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney

@Jose,

Legendflex does not always play nicely with the Latex interpreter, because the Latex interpreter interacts unpredictably with the Extent property of text objects (which I rely on to reposition everything). I'm uploading a small text document to this function to explain this. The document offers a few workarounds if text is running into each other or overflowing the legend box, but I'm not sure I have a good suggestion for misaligned baselines, as in your case. My crystal ball suggests things will be a bit better in the 2014b release, but still not perfect.

Comments and Ratings on Kelly Kearney's Files View all
Updated File Comment by Comments Rating
15 Dec 2014 legendflex.m: a more flexible, customizable legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney Kelly Kearney

@Leo,

The disappearing legends you're seeing are due to the subplot command (which deletes any existing axes overlapping its intended space). See https://github.com/kakearney/legendflex-pkg/issues/1 for a full explanation.

12 Dec 2014 legendflex.m: a more flexible, customizable legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney Leo Simon

It's a great program, and does exactly what I need it to do. There appears to be a small problem, which can easily be avoided but it would be great if you could fix it. When using subplots, if you use the "anchor" flag *and* have a legend label that is long enough to extend outside of the plot area, then when you open a new subplot, the old legend disappears. The following example illustrates the problem. As noted, it only arises when the anchor and the longLegend flags are turned on. Obviously, one can get around this problem by increasing the 'Position' dimensions of the subplot

close all;
legFontSize = 5;
legXScale = 0.5;
longLegend = 1;
anchorOn = 1;
for ii=1:15;
subplot(3,5,ii);
hold on;
h{ii}(1) = plot(1:10);
h{ii}(2) = plot(2:11);
if longLegend;
currentLegend = {'This is a very very very long legend','nothing'};
else;
currentLegend = {'This','nothing'};
end;
if anchorOn;
legendflex(h{ii},currentLegend,'anchor',{'nw','nw'},'fontSize',legFontSize,'xScale',legXScale);
else;
legendflex(h{ii},currentLegend,'fontSize',legFontSize,'xScale',legXScale);
end;
if ii==2; keyboard;end;
end;

12 Dec 2014 legendflex.m: a more flexible, customizable legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney Leo Simon

11 Dec 2014 legendflex.m: a more flexible, customizable legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney Warwick

Very useful and much appreciated.

10 Dec 2014 legendflex.m: a more flexible, customizable legend Create a legend with more flexible positioning and labeling capabilities Author: Kelly Kearney Kelly Kearney

@Warwick:
The code to reproduce the sample image is now available in the example on the GitHub page (follow the kakearney/legendflex-pkg link, and scroll to the bottom of the page).

@Martin: The getpos.m function is included in the download; make sure you add the setgetpos folder to your path.

Contact us