Rank: 60 based on 805 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
22 Aug 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 169 7
  • 4.625
4.6 | 8 ratings
22 Aug 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 247 4
  • 5.0
5.0 | 5 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 97 31
  • 4.86957
4.9 | 26 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 136 12
  • 4.42857
4.4 | 9 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 80 1
  • 4.0
4.0 | 1 rating
Comments and Ratings by Jonathan C. View all
Updated File Comments Rating
11 Sep 2014 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

Thanks everyone for the nice comments, I appreciate them all.
Also thanks Stephen for the suggestions.

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!

Comments and Ratings on Jonathan C.'s Files View all
Updated File Comment by Comments Rating
11 Sep 2014 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 Lansey, Jonathan C.

Thanks everyone for the nice comments, I appreciate them all.
Also thanks Stephen for the suggestions.

25 Aug 2014 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 denny

Impressive. set it as my default

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

Superb

08 Aug 2014 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 Cobeldick, Stephen

This might be of interest to the author, if they wish to improve the code of this submission:
http://www.mathworks.com/help/matlab/matlab_prog/vectorization.html

06 Aug 2014 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 Cobeldick, Stephen

After the changes made by the author in response to my last comments, I though I would review this submission again. For the same points I made earlier:
1. The function now returns a MATLAB standard N*3 numeric colormap.
2. The default size is now 64, which still does not match the defaults of MATLAB's colormap functions.
3. There is now an H1 line (although perhaps the word 'colormap' should be included in this line?).
4. The mlint messages have been attended to (on MATLAB R2012b).
5. The examples are now complete!
6. Now calls "nargin", rather than the slow "exist".
7. "for" loops are still used to accomplish basic arithmetic. This is due to the data being stored in cell arrays. All of these "for" loops could be removed if the data was simply stored in numeric arrays.
8. Now preallocates the cell arrays before the "for" loops.
9. Unnecessary use of "varargin", when a simple second argument would suffice.
10. Improved examples.
11. Still no 'See also' line to link to related functions: "colormap", "plot", "jet", "hsv", "rgbplot",...
12. ColorBrewer data is distributed without the required Apache license:
http://www.personal.psu.edu/cab38/ColorBrewer/ColorBrewer_updates.html

Most points have been addressed, and the submission basically does what it says. However the quality of the code is poor. In particular using cell arrays to store numeric data then requires multiple local functions to perform basic numeric arithmetic. MATLAB's name derives from 'MATrix LABoratory': it is designed to perform numeric operations on numeric matrices, fast! Storing the data in cell arrays and using multiple "for" loops to achieve basic numeric functionality is poor use of MATLAB, and as a result, this submission is larger and more complicated than it needs to be to provide this functionality.

Two stars for introducing MATLAB users to better colormaps than "jet" and "hsv".

Contact us