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

David Wang

E-mail
Company/University
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
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);

with

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...

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

Thanks for your response, Saludos.

First, PCOLOR(X,Y,C) regards X,Y as the edges of pixels, while IMAGESC(X,Y,C) regards X,Y as the centers of pixels. The latter is what I need.

Second, what I want is not 'interp' but 'faceted', namely facet lines at the edges of pixels, which is what PCOLOR does by default:
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/pcolor1.gif

D.

Contact us