def main(): parsed = parser.parse_args(sys.argv[1:]) result = get_ifs(parsed) ####################################### ###################################### universe = UniversalSet(result.keys()) ifsG = IFS(universe, 1) for k, value in result.items(): ifsG.set_bykey(k, value) ifs01 = ifsG #################################### #################################### plotbar = True if 'stackbars' in parsed.plot: plot_bar_Intuitionistic(ifs01) # plot_together_Intuitionistic(ifs01) indices, mus, nus, pis = ifs01.elements_split() triangular = True if '2dHistogram' in parsed.plot: plot_triangular(mus, nus, ifs01.get_range(), bins=parsed.number_bins) # test_legend() # plot_triangular_with_arrows(ifs01) fig = plt.figure() ax = fig.add_subplot(111, projection='3d') # # plot_membership_3Dhistogram(ifs01,ax, bins=10, typs=['mu','nu']) # plot3D = True if '3dHistogram' in parsed.plot: plot_3D_histogramm(ifs01, bins=parsed.number_bins) #plt.axes().set_aspect('equal', 'datalim') plt.show() a = 10 print("Inside...")
# self.prop_triang.disconnect() self.prop_bar = prop_bar self.prop_bar.connect() if __name__ == "__main__": import matplotlib.pyplot as plt from intuitionistic_fuzzy_set import IFS from universal_set import UniversalSet # from ifs_2Dplot import * # from ifs_operators_topo import * # fig, ax = plt.subplots() universe = UniversalSet(set(range(20))) fig = plt.figure() plt.subplots_adjust(hspace=0.1, wspace=0.1) ifs01 = IFS.random(universe, 1, randseed=1) indices, mus, nus, pis = ifs01.elements_split() axes01 = plt.subplot2grid((4, 6), (0, 0), rowspan=3, colspan=3) ################## ax02 = plt.subplot2grid((4, 6), (0, 3), rowspan=3, colspan=3) from widgets_basic import WidgetsSimple
self.prop_bar = prop_bar self.prop_bar.connect() if __name__ == "__main__": import matplotlib.pyplot as plt from intuitionistic_fuzzy_set import IFS from universal_set import UniversalSet # from ifs_2Dplot import * # from ifs_operators_topo import * import numpy as np # fig, ax = plt.subplots() universe = UniversalSet(set(range(5))) fig = plt.figure() plt.subplots_adjust(hspace=0.1, wspace=0.1) ifs01 = IFS.random(universe, 1, randseed=1) indices, mus, nus, pis = ifs01.elements_split() ifs02 = IFS.random(universe, 1, randseed=2) indices02, mus02, nus02, pis02 = ifs02.elements_split() axes01 = plt.subplot2grid((5, 7), (0, 0), rowspan=4, colspan=4) # _, line2d2_01 = plot_triangular_(axes01, # mus, nus, ifs02.get_range(), bins=10, # rotation={'x':45, 'y':0},
def main(): args = sys.argv[1:] arguments = [ ] for arg in args: print(arg) arguments.append( args.strip() ) ###################################### universe = UniversalSet(result.keys()) ifsG = IFS(universe, 1) for k, value in result.items(): ifsG.set_bykey(k, value) ifs01 = ifsG #################################### #################################### if 'type_2' in arguments: # plot_ifs(ifs01, typ="interval_valued") # plot_stack(ifs01) plot_bar_type_2(ifs01) # # plot_together_intValued(ifs01) plotbar = True if 'type_1' in arguments: plot_bar_type_1(ifs01) # plot_together_Intuitionistic(ifs01) indices, mus, nus, pis = ifs01.elements_split() triangular = True if 'triangular' in arguments: plot_triangular(mus, nus, ifs01.get_range(), bins=20) # test_legend() # plot_triangular_with_arrows(ifs01) plot3D_membership = True if 'plot3D_2D' in arguments: fig = plt.figure() ax = fig.gca(projection='3d') # ax.set_aspect(aspect='equal') plot_membership_3Dhistogram(ifs01,ax, bins=10, typs=['mu','nu']) plot3D = True if 'plot3D' in arguments: plot_3D_histogramm(ifs01, bins=20) #plt.axes().set_aspect('equal', 'datalim') plt.show() print("Inside...")