Rank: 202429 based on 0 downloads (last 30 days) and 0 file submitted

David Wang

Massachusetts Institute of Technology

Personal Profile:
Professional Interests:
climate data analysis, catastrophe modeling


Watch this Author's files


Comments and Ratings by David View all
Updated File Comments Rating
02 Jun 2014 samexaxis (nice subplots with same x axis) Makes it alot easier to make nice figures with the same x axis. Author: Aslak Grinsted

Very useful function. One minor issue: When subplots' y axis limits are explicitly set, it tends to result in yticklabel clashes. For example,

set(gca,'YLim',[-3 3]);
set(gca,'YLim',[-4 4]);

10 Jun 2013 sanePColor Wrapper for pcolor that behaves similarly to imagesc. Squash OS X Preview's "blurry image" bug! Author: Jeremy Manning

x and y have to be row vectors. To be more flexible, replace in the linexpand function

x = 1:length(y);
p = polyfit(1:length(y),y,1);


x = reshape(1:length(y),[size(y)]);
p = polyfit(x,y,1);

08 Aug 2012 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford

I found the pdf figures (4-panel pcolor plots) that export_fig creates on a linux box are rendered very slowly in Preview on my macbook pro (mac os x snow leopard). Does anyone encounter a similar issue? I wonder what's the cause of the problem. The pdf figures are not particularly large (about 5 MB each). Thanks.

02 Sep 2011 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford

13 Jun 2009 imagescnan.m v2.1 (Aug 2009) Same as IMAGESC but ignores NaNs. Author: Carlos Adrian Vargas Aguilera

Anyway, that won't make life easier. Probably I should simply do this:

pcolor((x(1:end-1)+x(2:end))/2, (y(1:end-1)+y(2:end))/2, c(2:end,2:end));

It's not perfect. The first/last column/row get dropped. But it should be sufficient for my use...

Contact us