Esempio n. 1
0
def plot():

    # Initialize the style of histograms
    color = list()
    color.append('#3F51B5')
    color.append('#EF6C00')
    color.append('#009688')
    color.append('#4CAF50')
    color.append('#424242')

    # Initialize the patterns of histograms
    patterns = ["/", "o", "|", "*", "+", "x", "\\", "O", ".", "-"]

    # declare the processor
    dp = MultipleHisogram(datFile=root_dir + '/data/bandwidth_com_stddev.dat',
                          clusterSize=2,
                          yLimit=400,
                          legends=['1Gbps', '10Mbps'],
                          ylabel='bandwidth (MB)',
                          grid=True,
                          color=color,
                          fontFamily='normal',
                          fontWeight='normal',
                          fontSize=16,
                          stdDev=True,
                          patterns=patterns,
                          use_pattern=True)

    dp.process()
    dp.plot()
    dp.show()
Esempio n. 2
0
def plot():

    # Initialize the style of histograms
    color = list()
    color.append('#3F51B5')
    color.append('#EF6C00')
    # color.append('#009688')
    # color.append('#4CAF50')
    # color.append('#424242')

    # Initialize the patterns of histograms
    patterns = ["/", ".", "|", "*", "+", "x", "o", ".", "-"]

    # declare the processor
    dp = MultipleHisogram(
        datFile=root_dir + '/data/anticipation_bw.dat',
        clusterSize=2,
        yLimit=250,
        legends=['1Gbps', '10Mbps'],
        # ylabel = 'Bandwidth (MB)',
        # xlabel = 'Scheduling algorithms',
        grid=True,
        color=color,
        fontFamily='normal',
        fontWeight='normal',
        fontSize=22,
        stdDev=False,
        patterns=patterns,
        use_pattern=True,
        legend_loc="upper right")

    dp.process()
    dp.plot()
    # plt.tick_params(axis='x', which='major', labelsize=18)
    plt.get_current_fig_manager().resize(1200, 600)
    # plt.tight_layout()
    plt.gcf().subplots_adjust(bottom=0.2)
    plt.xlabel('Correct hints', weight='bold')
    plt.ylabel('Bandwidth consumption(MB)', weight='bold')
    dp.show()
Esempio n. 3
0
def plot():

    # Initialize the style of histograms
    color = list()    
    color.append('#3F51B5')
    color.append('#EF6C00')
    # color.append('#009688')
    # color.append('#4CAF50')
    # color.append('#424242')

    # Initialize the patterns of histograms
    patterns = ["/" , "." , "|" , "*" , "+" , "x", "o", ".", "-"]

    # declare the processor
    dp = MultipleHisogram(datFile = root_dir + '/data/cache_hit_cnt.dat', 
           clusterSize = 2,
           yLimit = 140,
           legends = ['1Gbps', '10Mbps'],
           # ylabel = 'Bandwidth (MB)',
           # xlabel = 'Scheduling algorithms',
           grid = True,
           color = color,
           fontFamily = 'normal',
           fontWeight = 'normal',
           fontSize = 22,
           stdDev = False,
           patterns = patterns,
           use_pattern = True,
           legend_loc = "upper left"
           )

    dp.process()
    dp.plot()    
    # plt.tick_params(axis='x', which='major', labelsize=18)
    plt.get_current_fig_manager().resize(1200 , 600)    
    plt.xlabel('The number of targets', weight='bold')
    plt.ylabel('Cache hit counts', weight='bold')
    dp.show()