User Tools

Site Tools


analysis:matlabtricks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
analysis:matlabtricks [2014/08/22 16:26]
mvdm
analysis:matlabtricks [2018/07/07 10:19] (current)
Line 1: Line 1:
 ==== Plotting ==== ==== Plotting ====
  
-  ​* To plot an ''​imagesc''​ with NaNs transparent,​ do this: +* To plot an ''​imagesc''​ with NaNs transparent,​ do this: 
-    <code matlab>​ + 
-    h = imagesc(X,​Y,​C) +<code matlab>​ 
-    set(h,'​alphadata',​~isnan(C)) +h = imagesc(X,​Y,​C); 
-    </​code>​+set(h,'​alphadata',​~isnan(C)); 
 +</​code>​ 
 +     
 +(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.
analysis/matlabtricks.1408739181.txt.gz · Last modified: 2018/07/07 10:19 (external edit)