【发布时间】:2019-07-29 00:48:59
【问题描述】:
我想以一种能够绘制条形图的方式来构建它,如下所示:
数据为here。
注意:Echo API 数据 = 中介数据
我现有的代码如下所示,我不知道如何继续。非常感谢任何帮助。
def save_bar_chart(title):
filename = "response_time_summary_" + str(message_size) + "_" + str(backend_delay) + "ms.png"
print("Creating chart: " + title + ", File name: " + filename)
fig, ax = plt.subplots()
fig.set_size_inches(11, 8)
df_results = df.loc[(df['Message Size (Bytes)'] == message_size) & (df['Back-end Service Delay (ms)'] == backend_delay)]
df_results = df_results[
[ 'Scenario Name','Concurrent Users', '90th Percentile of Response Time (ms)', '95th Percentile of Response Time (ms)',
'99th Percentile of Response Time (ms)']]
【问题讨论】:
标签: python-3.x pandas matplotlib plot seaborn