==== Plotting ==== * To plot an ''imagesc'' with NaNs transparent, do this: h = imagesc(X,Y,C); set(h,'alphadata',~isnan(C)); (this is helpful when plotting 2D tuning curves, for instance; pcolor() is not recommended) * To eliminate the large borders when using subplots, use ''subtightplot()'' instead.