I'm generating an orderbook chart using Matplotlib, the chart is generated but i'm having an hard time figuring how to set a background color to it. On the chart, i'm plotting 2 orderbooks for every side, to do this i'm using a simple loop on my data:
fig = plt.figure(facecolor='#131722',dpi=135, figsize=(5, 3))
ax1 = plt.subplot2grid((2,1), (0,0), rowspan=6, colspan=4, facecolor='#131722')
Colors = [['#2BBB2B', '#FF0000'], ['#09ff00', '#ff8c00']]
for x in List:
Index = List.index(x)
print(Index)
rate_buy = []
total_buy = []
rate_sell = []
total_sell = []
for y in x['data']['asks']:
rate_sell.append(y[0])
total_sell.append(y[1])
for y in x['data']['bids']:
rate_buy.append(y[0])
total_buy.append(y[1])
rBuys = pd.DataFrame({'buy': rate_buy})
rSells = pd.DataFrame({'sell': rate_sell})
tBuys = pd.DataFrame({'total': total_buy})
tSells = pd.DataFrame({'total': total_sell})
plt.plot(rBuys.buy, tBuys.total, color=Colors[Index][0], linewidth=0.9, alpha=0.9)
plt.plot(rSells.sell, tSells.total, color=Colors[Index][1],alpha=0.3, linewidth=0.9)
So basically, what i want to do, is set the area INSIDE the chart with the same color of the value Color. How can i do that?

