changeset 15483:b95690c001f8

if bar is given basevalue property, use it * __bar__.m: Pass base_value to line when creating baseline.
author Pantxo <pantxo.diribarne@gmail.com>
date Wed, 03 Oct 2012 10:52:48 -0400
parents cb49817af457
children 0133339a51c3
files scripts/plot/private/__bar__.m
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/private/__bar__.m	Wed Oct 03 10:43:41 2012 -0400
+++ b/scripts/plot/private/__bar__.m	Wed Oct 03 10:52:48 2012 -0400
@@ -217,7 +217,8 @@
 
     if (i == 1)
       x_axis_range = get (ax, "xlim");
-      h_baseline = line (x_axis_range, [0, 0], "color", [0, 0, 0]);
+      h_baseline = line (x_axis_range, [base_value, base_value],
+                         "color", [0, 0, 0]);
       set (h_baseline, "handlevisibility", "off");
       set (h_baseline, "xliminclude", "off");
       addlistener (ax, "xlim", @update_xlim);