Mercurial > hg > octave-nkf
diff scripts/plot/hold.m @ 9272:3eda945bda43
__go_draw_axes__.m: Fix rendering of overlaping images and line objects. Add demos as well.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Tue, 26 May 2009 21:16:54 -0400 |
parents | eb63fbe60fab |
children | c539ec5726e7 |
line wrap: on
line diff
--- a/scripts/plot/hold.m +++ b/scripts/plot/hold.m @@ -86,3 +86,34 @@ set (h, "nextplot", hold_state); endfunction + +%!demo +%! clf +%! A = rand (100); +%! [X, Y] = find (A > 0.9); +%! imshow (A) +%! hold on +%! plot (X, Y, 'o') +%! hold off + +%!demo +%! clf +%! hold on +%! imagesc(1./hilb(4)); +%! plot (1:4, "-s") +%! hold off + +%!demo +%! clf +%! hold on +%! imagesc(1./hilb(2)); +%! imagesc(1./hilb(4)); +%! hold off + +%!demo +%! clf +%! hold on +%! plot (1:4, "-s") +%! imagesc(1./hilb(4)); +%! hold off +