From 9d9931cd78abc1994b921267754d39ee2c34f1eb Mon Sep 17 00:00:00 2001 From: crucialfelix Date: Thu, 23 Feb 2012 22:18:37 +0100 Subject: [PATCH] fix: .plot should accept minval/maxval as an array for the channels: [0,0,0] --- SCClassLibrary/Common/GUI/PlusGUI/Math/PlotView.sc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SCClassLibrary/Common/GUI/PlusGUI/Math/PlotView.sc b/SCClassLibrary/Common/GUI/PlusGUI/Math/PlotView.sc index 4900e46d0..0b4f6e2ae 100644 --- a/SCClassLibrary/Common/GUI/PlusGUI/Math/PlotView.sc +++ b/SCClassLibrary/Common/GUI/PlusGUI/Math/PlotView.sc @@ -735,7 +735,7 @@ Plotter { } }; plotter.setValue(array, true, false); - if(minval.notNil and: {maxval.notNil},{ + if(minval.isNumber && maxval.isNumber,{ plotter.specs = [minval,maxval].asSpec },{ minval !? { plotter.minval = minval; }; @@ -837,7 +837,7 @@ Plotter { ); this.loadToFloatArray(action: { |array, buf| { - if(minval.notNil and: {maxval.notNil},{ + if(minval.isNumber && maxval.isNumber,{ plotter.specs = [minval,maxval].asSpec },{ minval !? { plotter.minval = minval; }; -- 2.11.4.GIT