Mercurial > octave-libgccjit
comparison 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 |
comparison
equal
deleted
inserted
replaced
9271:1e96773920e9 | 9272:3eda945bda43 |
---|---|
84 endif | 84 endif |
85 | 85 |
86 set (h, "nextplot", hold_state); | 86 set (h, "nextplot", hold_state); |
87 | 87 |
88 endfunction | 88 endfunction |
89 | |
90 %!demo | |
91 %! clf | |
92 %! A = rand (100); | |
93 %! [X, Y] = find (A > 0.9); | |
94 %! imshow (A) | |
95 %! hold on | |
96 %! plot (X, Y, 'o') | |
97 %! hold off | |
98 | |
99 %!demo | |
100 %! clf | |
101 %! hold on | |
102 %! imagesc(1./hilb(4)); | |
103 %! plot (1:4, "-s") | |
104 %! hold off | |
105 | |
106 %!demo | |
107 %! clf | |
108 %! hold on | |
109 %! imagesc(1./hilb(2)); | |
110 %! imagesc(1./hilb(4)); | |
111 %! hold off | |
112 | |
113 %!demo | |
114 %! clf | |
115 %! hold on | |
116 %! plot (1:4, "-s") | |
117 %! imagesc(1./hilb(4)); | |
118 %! hold off | |
119 |