diff --git a/partitioners/Util.py b/partitioners/Util.py index bd929b6..29189cc 100644 --- a/partitioners/Util.py +++ b/partitioners/Util.py @@ -7,7 +7,8 @@ from mpl_toolkits.mplot3d import Axes3D from pyFTS.common import Membership -def plotSets(data, sets,num): +def plotSets(data, sets): + num = len(sets) fig = plt.figure(figsize=[20, 10]) maxx = max(data) minx = min(data) @@ -20,8 +21,6 @@ def plotSets(data, sets,num): if s.mf == Membership.trimf: ax0.plot([s.parameters[0],s.parameters[1],s.parameters[2]],[0,1,0]) elif s.mf == Membership.gaussmf: - print( s.parameters ) - print([s.lower, s.upper]) tmpx = [ kk for kk in np.arange(s.lower, s.upper)] tmpy = [s.membership(kk) for kk in np.arange(s.lower, s.upper)] ax0.plot(tmpx, tmpy)