Rank: 59 based on 530 downloads (last 30 days) and 6 files submitted
photo

Jonathan C. Lansey

E-mail
Company/University
Aptima

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
01 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 110 3
08 Jul 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 166 17
  • 4.85714
4.9 | 16 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 72 0
20 Oct 2011 Screenshot Create Healthy Looking Error Bars Plots nice error bars as the default. Can also top group plots with error bars. Author: Jonathan C. Lansey bar graph, error bars, errorbars, bars, standard error, error 62 8
  • 5.0
5.0 | 4 ratings
08 Apr 2011 Screenshot Mercator Map Projection (and inverse) Computes the Mercator map projection, and the inverse projection Author: Jonathan C. Lansey mercator, mercator projection, map, projection, cartography, inverse mercator proj... 12 0
Comments and Ratings by Jonathan C. View all
Updated File Comments Rating
30 Jul 2013 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 for the most excellent feedback Stephen. I have updated the function to include almost all of your suggestions over the weekend. I hope it will be approved by Mathworks shortly.

18 Jul 2013 sciencestagram Make your plots look somewhat like they came from the dustiest section of the engineering library. Author: Chad Greene

This is so hilarious! I love it!

01 Jul 2013 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

I just updated the function to have much nicer colors (thanks to colorbrewer). You can choose your own colors by changing the colormap and choosing the setting: 'color','colormap'

20 Mar 2013 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

@Duane, yes it does its best with all kinds of data. I just changed the title of the file to hopefully be more clear.

09 Jul 2012 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

@Shinobue111, a PDF may be >1 as long as the area = 1, as we discussed.

Comments and Ratings on Jonathan C.'s Files View all
Updated File Comment by Comments Rating
30 Jul 2013 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 for the most excellent feedback Stephen. I have updated the function to include almost all of your suggestions over the weekend. I hope it will be approved by Mathworks shortly.

28 Jul 2013 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

Fix the above example: use of a colormap with multiline plots can be achieved by setting the 'ColorOrder' axes property:

N = 5;
axes('NextPlot','replacechildren', 'ColorOrder',cell2mat(linspecer(N)))
X = linspace(0,pi*3,1000);
Y = bsxfun(@(x,n)sin(x+2*n*pi/N), X.', 1:N);
plot(gca, X,Y, 'linewidth',5)

11. The M-file help section should include a 'See also ...' line, to link to similar and associated functions.
12. Distributing the colorbrewer scheme requires including a copy of the original Apache copyright license.

26 Jul 2013 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

I have been looking for better looking, distinguishable colormaps to replace the standard ones, which at first this file seemed to offer. However this is not a drop in replacement colormap, and the M-file has multiple drawbacks, which detract from the idea:
1. Non-standard cell array output: all standard MATLAB colormaps return an Nx3 numeric matrix.
2. Non-standard default size of 255: the standard MATLAB colormaps use the current colormap size (very useful!).
3. No H1 line in the help.
4. Running mlint gives eight messages for code improvement.
5. The example does not work without the addition of extra code.
6. Calls slow functions like "exist" when "nargin" would suffice.
7. Unnecessary "for" loops could be vectorized (especially if returning the standard numeric colormap).
8. No array preallocation within the "for" loops.
9. Unnecessary use of "varargin" when a simple second input would be adequate.
10. Example shows poor use of MATLAB plot command. Compare to the code below, in half the number of lines:
N = 5;
colormap(cell2mat(linspecer(N)));
X = linspace(0,pi*3,1000);
Y = bsxfun(@(x,n)sin(x+2*n*pi/N), X.', 1:N);
plot(X,Y,'linewidth',5)

15 Jul 2013 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 Raman

very helpfull function..

11 Jul 2013 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 Franziska

Thanks a lot! Very helpful

Top Tags Applied by Jonathan C.
boxplot, graphing, statistics, automatic, axis bounds
Files Tagged by Jonathan C. View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 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 110 3
08 Jul 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 166 17
  • 4.85714
4.9 | 16 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 72 0
20 Oct 2011 Screenshot Create Healthy Looking Error Bars Plots nice error bars as the default. Can also top group plots with error bars. Author: Jonathan C. Lansey bar graph, error bars, errorbars, bars, standard error, error 62 8
  • 5.0
5.0 | 4 ratings
08 Apr 2011 Screenshot Mercator Map Projection (and inverse) Computes the Mercator map projection, and the inverse projection Author: Jonathan C. Lansey mercator, mercator projection, map, projection, cartography, inverse mercator proj... 12 0

Contact us