Mercurial > hg > octave-jordi
changeset 11313:988d2bd6bacd
__stem__.m: Each stem hggroup should have its own baseline.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Fri, 03 Dec 2010 18:23:45 -0500 |
parents | c18526be2340 |
children | 87f258202b0f |
files | scripts/ChangeLog scripts/plot/private/__stem__.m |
diffstat | 2 files changed, 8 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,6 @@ 2010-12-03 Ben Abbott <bpabbott@mac.com> + * plot/private/__stem__.m: Create a baseline for each stem hggroup. * plot/__go_draw_axes__.m: If not set, then unset the gnuplot {tblr}margins. Needed when using subplots with differing activepositionproperty.
--- a/scripts/plot/private/__stem__.m +++ b/scripts/plot/private/__stem__.m @@ -99,15 +99,13 @@ ms, "linestyle", "none", "markerfacecolor", fc, "parent", hg); - if (i == 1) - x_axis_range = get (ax, "xlim"); - h_baseline = line (x_axis_range, [0, 0], "color", [0, 0, 0]); - set (h_baseline, "handlevisibility", "off"); - set (h_baseline, "xliminclude", "off"); - addlistener (ax, "xlim", @update_xlim); - addlistener (h_baseline, "ydata", @update_baseline); - addlistener (h_baseline, "visible", @update_baseline); - endif + x_axis_range = get (ax, "xlim"); + h_baseline = line (x_axis_range, [0, 0], "color", [0, 0, 0]); + set (h_baseline, "handlevisibility", "off"); + set (h_baseline, "xliminclude", "off"); + addlistener (ax, "xlim", @update_xlim); + addlistener (h_baseline, "ydata", @update_baseline); + addlistener (h_baseline, "visible", @update_baseline); endif ## Setup the hggroup and listeners.