# How to legend fill_between in two lines plots? - Variance in Weather Projet

When I was doing the Variance in Weather Projet, I went beyond to plot the graph of average temperature with fill_between() showing max&min temperature and average perciptition, by month. I then modified it with using subplot() so that I could have different Y-axis at same time. The legend of fill_between() did showed when I legended two lines seperately (also when I only ploted the temperature line), however, it wonâ€™t show on the legend when I tried to combine legends of two lines. Is there any way to do so?

When combining legends

When legends seperately

``````x_label = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
fig, ax1 = plt.subplots()

line1, = ax1.plot(range(1, 13), month_temp_avg, color='gray', marker='o', label='Average Temperature')
ax1.fill_between(range(1, 13), month_temp_max, month_temp_min, alpha=0.2, color='gray', label='High and Low')
ax1.set_ylabel('Temperature C')
plt.grid(axis='y')

ax2 = ax1.twinx()
line2, = ax2.plot(range(1, 13), month_rain_avg, color='cyan', marker='o', label='Average Preciptition')
ax2.set_ylabel('Preciptition MM')

plt.xticks(range(1, 13), x_label)
plt.xlabel('Month')
plt.title('London Weather in 2015')
plt.legend(handles=[line1, line2], loc='upper left')
plt.show()
``````