Mercurial > repos > public > sbplib
view spyh.m @ 1020:5359a61cb4d9 feature/advectionRV
Add utility for constructing the operators used by a discretization emplying RV-stabilization
- Add constructDiffOps which creates the operatores used for a scheme with RV-stabilization
- Minor clean up in RungekuttaExteriorRV
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 14 Dec 2018 18:33:10 +0100 |
parents | 12db86a8ec7b |
children |
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); if ~isempty(J) h = plot(J,I); h.LineStyle = 'none'; h.Marker = '.'; h.MarkerSize = 14; else h = []; end a = gca; xlim([0 m+1]); ylim([0 n+1]); axis square a.YDir = 'reverse'; end