Mercurial > repos > public > sbplib
view spyh.m @ 511:57f3493f851b feature/quantumTriangles
Added sqrt of Ji in the right places, not sure about the interfaces, will not test it properly now
author | Ylva Rydin <ylva.rydin@telia.com> |
---|---|
date | Thu, 08 Jun 2017 10:33:36 +0200 |
parents | 5cb99f56f55e |
children | 12db86a8ec7b |
line wrap: on
line source
% spyh mimics the built in spy but returns a handle which allows modifying the plot. function h = spyh(A) [n,m] = size(A); [I,J] = find(A); h = plot(J,I); h.LineStyle = 'none'; h.Marker = '.'; h.MarkerSize = 14; a = gca; xlim([0 m+1]); ylim([0 n+1]); axis square a.YDir = 'reverse'; end