# HG changeset patch # User Ben Abbott # Date 1291418625 18000 # Node ID 988d2bd6bacde065349f3e3da14b509161000db5 # Parent c18526be2340de112847101ada46f57c72d86122 __stem__.m: Each stem hggroup should have its own baseline. diff -r c18526be2340 -r 988d2bd6bacd scripts/ChangeLog --- a/scripts/ChangeLog Fri Dec 03 18:21:25 2010 -0500 +++ b/scripts/ChangeLog Fri Dec 03 18:23:45 2010 -0500 @@ -1,5 +1,6 @@ 2010-12-03 Ben Abbott + * 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. diff -r c18526be2340 -r 988d2bd6bacd scripts/plot/private/__stem__.m --- a/scripts/plot/private/__stem__.m Fri Dec 03 18:21:25 2010 -0500 +++ b/scripts/plot/private/__stem__.m Fri Dec 03 18:23:45 2010 -0500 @@ -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.