Mercurial > hg > octave-lyh
changeset 17438:366a51191fd7
__stem__.m: Turn on grid for stem3 plotting for Matlab compatibility.
* scripts/plot/private/__stem__.m: Turn on grid if not axis state not preserved
by "hold on".
author | Rik <rik@octave.org> |
---|---|
date | Tue, 17 Sep 2013 08:41:39 -0700 |
parents | 84d195e050fd |
children | 1dfc3abb0f0d |
files | scripts/plot/private/__stem__.m |
diffstat | 1 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/private/__stem__.m +++ b/scripts/plot/private/__stem__.m @@ -152,7 +152,8 @@ endfor if (! strcmp (hold_state, "add") && have_z) - set (hax, "view", [-37.5 30]); # 3D view + set (hax, "view", [-37.5 30], + "xgrid", "on", "ygrid", "on", "zgrid", "on"); endif set (hax, "nextplot", hold_state); @@ -166,10 +167,12 @@ function [x, y, z, dofill, lc, ls, mc, ms, newargs] = check_stem_arg (have_z, varargin) - ## FIXME -- there seems to be a lot of duplicated code in this - ## function. It seems like it should be possible to simplify things - ## by combining some of the nearly identical code sections into - ## additional subfunctions. + ## FIXME: There seems to be a lot of duplicated code in this function. + ## It seems like it should be possible to simplify things by + ## combining some of the nearly identical code sections into + ## additional subfunctions. + ## FIXME: The code is so convoluted that certain options, such as "filled", + ## are not being processed correctly. if (have_z) caller = "stem3";