效果展示:
代码:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from pylab import *
plt.figure(figsize=(7.8,6.8))
plt.rcParams['font.sans-serif'] = ['Arial Unicode MS']
data = {
'W': [1,2,3,4,5,6,7,8,10],
'H': [1,2,3,10,5,6,7,8,15],
'B': [1,8,3,4,5,6,7,8,12]
}
box_1, box_2, box_3 = data['W'], data['H'], data['B']
ax1 = plt.subplot(131