Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plt.figure(figsize=(10, 8))
- plt.style.use('bmh')
- SMALL_SIZE = 12
- MEDIUM_SIZE = 16
- BIGGER_SIZE = 18
- plt.rc('font', size=SMALL_SIZE) # controls default text sizes
- plt.rc('axes', titlesize=SMALL_SIZE) # fontsize of the axes title
- plt.rc('axes', labelsize=MEDIUM_SIZE) # fontsize of the x and y labels
- plt.rc('xtick', labelsize=SMALL_SIZE) # fontsize of the tick labels
- plt.rc('ytick', labelsize=SMALL_SIZE) # fontsize of the tick labels
- plt.rc('legend', fontsize=SMALL_SIZE) # legend fontsize
- plt.rc('figure', titlesize=BIGGER_SIZE) # fontsize of the figure title
- years1 = [str(2009+i) for i in range(1, 8)]
- years2 = [str(2016+i) for i in range(1, 8)]
- ind1 = [year for year in years1]
- ind2 = [year for year in years2]
- data11 = np.array([92767,95443,98028,101099,110768,114209,117456])
- data12 = np.array([122577,125106,132925,142123,144391,150075,161593])
- data21 = np.array([2676,2585,3070,9669,3441,3248,5119])
- data22 = np.array([2348,7819,9198,2268,5684,11518,12500])
- plt.bar(ind1, data21, width=0.6, label='Acréscimo verificado', bottom=data11, color='#9FC1D6')
- plt.bar(ind1, data11, width=0.6, color='#5F99BC')
- plt.bar(ind2, data22, width=0.6, label='Acréscimo previsto', bottom=data12, color='#5FBC81')
- plt.bar(ind2, data12, width=0.6, color='#5F99BC')
- #plt.xticks(ind, years)
- plt.ylabel("Linhas de transmissão (km)")
- plt.legend(loc="upper left")
- plt.title("Evolução do Sistema Interligado Nacional (SIN)", fontdict={'fontsize':BIGGER_SIZE})
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment