Rank: 65 based on 860 downloads (last 30 days) and 7 files submitted
photo

Jonathan C. Lansey

E-mail
Company/University
Quanttus

Personal Profile:

I visualize data for fun. With the help of these functions I hope you will too!

See my website to learn more about me
http://www.Jonathan.Lansey.net

I love getting mail so feel free to send some or connect in other ways
http://www.linkedin.com/profile/view?id=23663161

Professional Interests:

 

Watch this Author's files

 

Files Posted by Jonathan C. View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
15 Jul 2014 Screenshot Efficient 2D histogram, no toolboxes needed Creates 2D histogram of scatterplot or lineseries data, really fast, fully featured. Author: Jonathan C. Lansey histogram, hist3, plotting, visualization 236 3
  • 5.0
5.0 | 3 ratings
09 Jan 2014 Screenshot Power Law, Exponential and Logarithmic Fit Finds and plots the linear fit to some data points when plotted on a log scale. Author: Jonathan C. Lansey curve fitting, fitting, power law, exponential, logarithmic, log scale 171 7
  • 4.625
4.6 | 8 ratings
27 Dec 2013 Screenshot Plot and compare histograms; pretty by default Compares multiple sets of data elegantly. Set bins and axis bounds to be appropriate for the data. Author: Jonathan C. Lansey histogram, bins, bin size, axis bounds, automatic, compare 89 31
  • 4.86364
4.9 | 25 ratings
05 Aug 2013 Screenshot Beautiful and distinguishable line colors + colormap Plot lots of lines with very distinguishable and aesthetically pleasing colors. Works for 'N' colors Author: Jonathan C. Lansey colormap, graphing, colorbrewer, color, color map, color code 147 8
  • 4.8
4.8 | 7 ratings
03 Jul 2013 Screenshot Box and whiskers plot (without statistics toolbox) Creates nice boxplots from data. You don't need a toolbox. Simple yet fully featured. Author: Jonathan C. Lansey box whiskers, boxplot, graph type, graphics, plot, plotting 118 1
  • 4.0
4.0 | 1 rating
Comments and Ratings by Jonathan C. View all
Updated File Comments Rating
15 Jul 2014 Efficient 2D histogram, no toolboxes needed Creates 2D histogram of scatterplot or lineseries data, really fast, fully featured. Author: Jonathan C. Lansey

Nice Josh thanks! I incorporated your code into the program now, pass the parameter '3d' to get a 3d bar graph.

03 Jun 2014 Plot and compare histograms; pretty by default Compares multiple sets of data elegantly. Set bins and axis bounds to be appropriate for the data. Author: Jonathan C. Lansey

@Dan, the histograms are normalized by default to have an area of 1. You can change it to have the values 'sum' to 1 instead by choosing the parameter 'proportion' (though you aren't the first to ask me this so I'm considering changing how that parameter works)

14 May 2014 semaphore This mex file provides an interface with the POSIX semaphore functionality. Author: Joshua Dillon

14 May 2014 semaphore_POSIX_and_Windows Patches Dillon's work to allow native semaphore usage within Matlab on Windows and POSIX systems Author: Andrew Smart

This function is awesome, it feels magical :)
Thanks so much!

30 Apr 2014 Plot and compare histograms; pretty by default Compares multiple sets of data elegantly. Set bins and axis bounds to be appropriate for the data. Author: Jonathan C. Lansey

Thanks for the nice comments!
@Kelly, I'll see about making the changes, thanks for the suggestion!

Comments and Ratings on Jonathan C.'s Files View all
Updated File Comment by Comments Rating
16 Jul 2014 Efficient 2D histogram, no toolboxes needed Creates 2D histogram of scatterplot or lineseries data, really fast, fully featured. Author: Jonathan C. Lansey Warwick

15 Jul 2014 Efficient 2D histogram, no toolboxes needed Creates 2D histogram of scatterplot or lineseries data, really fast, fully featured. Author: Jonathan C. Lansey Lansey, Jonathan C.

Nice Josh thanks! I incorporated your code into the program now, pass the parameter '3d' to get a 3d bar graph.

12 Jul 2014 Efficient 2D histogram, no toolboxes needed Creates 2D histogram of scatterplot or lineseries data, really fast, fully featured. Author: Jonathan C. Lansey G, Josh

Does exactly what I need! Very robust code too.

The only thing I wished it would do is make a nice 3d bar graph from the data.

I wanted to visualize the histogram as a 3d bar graph so I though I would share how I used this function to do that too.

[edgesX2, edgesY2, N] = ndhist(randn(1,1000),randn(1,1000));
axis('square');

figure()
% plot histogram in 3d
h=bar3(edgesY2,N,1.0);
% bar3 reversed y-axis, set it back to normal
set(gca, 'YDir', 'normal');
% Used to shift x data x = m*x+b
m = (edgesX2(end)-edgesX2(1))/(numel(edgesX2)-1);
b = edgesX2(1)-m;
for i = 1:length(h)
% Rebuild zdata and remove NaN, determined by looking at zdata, this
% removes the uncolored faces that appear if you just set Cdata to
% Zdata.
zdata = get(h(i),'Zdata');
cdata = repmat(reshape(repmat(zdata(2:6:end,2)',6,1),[],1),1,4);
% Shift data in X to get correct axis, set color data
set(h(i), 'XData', get(h(i),'XData')*m+b, 'Cdata',cdata);
end
axis('tight');

% top down view to match ndhist
view([0 0 1]);

09 Jul 2014 Box and whiskers plot (without statistics toolbox) Creates nice boxplots from data. You don't need a toolbox. Simple yet fully featured. Author: Jonathan C. Lansey Gupta, Udit

It's quite useful. Wish there was a way to perform the analysis when the number of observations for each experiment are not the same.

27 Jun 2014 Efficient 2D histogram, no toolboxes needed Creates 2D histogram of scatterplot or lineseries data, really fast, fully featured. Author: Jonathan C. Lansey Sakhavi, Siavash

Excellent Program.

Being independent from toolboxes is the main reason I came for it.

Contact us