changeset 18890:f1e21a495e20

pareto.m: Use same color for left/right axes and for bar/line. pareto.m: Copy left-axis color of plotyy to right-axis. Use colororder from first axis to set color of line object.
author Rik <rik@octave.org>
date Thu, 03 Jul 2014 09:09:48 -0700
parents b6fdfe22634b
children 284f7fa221e9
files scripts/plot/draw/pareto.m
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/pareto.m	Thu Jul 03 08:46:19 2014 -0700
+++ b/scripts/plot/draw/pareto.m	Thu Jul 03 09:09:48 2014 -0700
@@ -104,7 +104,9 @@
   axis (ax(1), [1 - 0.6, idx95 + 0.6, 0, maxcdf]);
   axis (ax(2), [1 - 0.6, idx95 + 0.6, 0, 100]);
   set (ax(2), "ytick", [0, 20, 40, 60, 80, 100],
-              "yticklabel", {"0%", "20%", "40%", "60%", "80%", "100%"});
+              "yticklabel", {"0%", "20%", "40%", "60%", "80%", "100%"},
+              "ycolor", get (ax(1), "ycolor"));
+  set (hline, "color", get (ax(1), "colororder")(1,:));
   set (ax(1:2), "xtick", 1:idx95, "xticklabel", x(1:idx95));
 
   if (nargout > 0)