Mercurial > octave
comparison scripts/plot/util/ishold.m @ 32048:61db3c9377fb
ishold.m: Suppress BIST hold echo after 72d005398818 (bug @63923).
* scripts/plot/util/ishold.m: Change BIST to call 'hold on' instead of 'hold'
to avoid hold status echo appearing during self tests.
author | Nicholas R. Jankowski <jankowski.nicholas@gmail.com> |
---|---|
date | Fri, 21 Apr 2023 14:49:23 -0400 |
parents | 597f3ee61a48 |
children | 2e484f9f1f18 |
comparison
equal
deleted
inserted
replaced
32047:e3de59065cf1 | 32048:61db3c9377fb |
---|---|
75 %! l = plot ([0 1]); | 75 %! l = plot ([0 1]); |
76 %! assert (! ishold); | 76 %! assert (! ishold); |
77 %! assert (! ishold (gca)); | 77 %! assert (! ishold (gca)); |
78 %! assert (get (gca, "NextPlot"), "replace"); | 78 %! assert (get (gca, "NextPlot"), "replace"); |
79 %! assert (get (hf, "NextPlot"), "add"); | 79 %! assert (get (hf, "NextPlot"), "add"); |
80 %! hold; | 80 %! hold on; |
81 %! assert (ishold); | 81 %! assert (ishold); |
82 %! assert (ishold (gca)); | 82 %! assert (ishold (gca)); |
83 %! assert (get (gca, "NextPlot"), "add"); | 83 %! assert (get (gca, "NextPlot"), "add"); |
84 %! assert (get (hf, "NextPlot"), "add"); | 84 %! assert (get (hf, "NextPlot"), "add"); |
85 %! p = fill ([0 1 1], [0 0 1],"black"); | 85 %! p = fill ([0 1 1], [0 0 1],"black"); |