Add labels to plots (#3811)
* 5 runs * 50 runs * (1) add labels (2) instead of plotting kde, plotting histogram and rug
This commit is contained in:
parent
ef73aab59f
commit
76f7476c0f
|
|
@ -98,17 +98,17 @@
|
|||
" # Plots\n",
|
||||
" fig, axs = plt.subplots(nrows=4, figsize=(10,20))\n",
|
||||
" \n",
|
||||
" label_create_latencies = pd.Series(create_latencies, name='Create Pipeline Latency (Second)')\n",
|
||||
" sns.distplot(a=label_create_latencies, ax=axs[0])\n",
|
||||
" axs[0].set(title='Create Pipeline Latency', xlabel='Time (Second)', ylabel='Create Pipeline')\n",
|
||||
" sns.distplot(a=create_latencies, ax=axs[0], hist=True, kde=False, rug=True)\n",
|
||||
" \n",
|
||||
" label_create_version_latencies = pd.Series(create_version_latencies, name='Create Pipeline Version Latency (Second)')\n",
|
||||
" sns.distplot(a=label_create_version_latencies, ax=axs[1])\n",
|
||||
" axs[1].set(title='Create Pipeline Version Latency', xlabel='Time (Second)', ylabel='Create Pipeline Version')\n",
|
||||
" sns.distplot(a=create_version_latencies, ax=axs[1], hist=True, kde=False, rug=True) \n",
|
||||
" \n",
|
||||
" label_get_latencies = pd.Series(get_latencies, name='Get Pipeline Latency (Second)')\n",
|
||||
" sns.distplot(a=label_get_latencies, ax=axs[2])\n",
|
||||
" axs[2].set(title='Get Pipeline Latency', xlabel='Time (Second)', ylabel='Get Pipeline')\n",
|
||||
" sns.distplot(a=get_latencies, ax=axs[2], hist=True, kde=False, rug=True) \n",
|
||||
" \n",
|
||||
" label_delete_latencies = pd.Series(delete_latencies, name='Delete Pipeline Latency (Second)')\n",
|
||||
" sns.distplot(a=label_delete_latencies, ax=axs[3])\n",
|
||||
" axs[3].set(title='Delete Pipeline Latency', xlabel='Time (Second)', ylabel='Delete Pipeline')\n",
|
||||
" sns.distplot(a=delete_latencies, ax=axs[3], hist=True, kde=False, rug=True)\n",
|
||||
" \n",
|
||||
" # TODO(jingzhang36): maybe dump the durations data to db or gcs, and let searborn read from there"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -135,18 +135,18 @@
|
|||
" # Plots\n",
|
||||
" fig, axs = plt.subplots(nrows=4, figsize=(10,20))\n",
|
||||
" \n",
|
||||
" label_create_run_latencies = pd.Series(create_run_latencies, name='Create Run Latency (Second)')\n",
|
||||
" sns.distplot(a=label_create_run_latencies, ax=axs[0])\n",
|
||||
" axs[0].set(title='Create Run Latency', xlabel='Time (Second)', ylabel='Create')\n",
|
||||
" sns.distplot(a=create_run_latencies, ax=axs[0], hist=True, kde=False, rug=True)\n",
|
||||
" \n",
|
||||
" label_run_durations = pd.Series(succeeded_run_durations, name='Run Durations (Second)')\n",
|
||||
" sns.distplot(a=label_run_durations, ax=axs[1]) \n",
|
||||
" axs[1].set(title='Run Durations', xlabel='Time (Second)', ylabel='Run')\n",
|
||||
" sns.distplot(a=succeeded_run_durations, ax=axs[1], hist=True, kde=False, rug=True) \n",
|
||||
" \n",
|
||||
" axs[2].set(title='Get Run Latency', xlabel='Time (Second)', ylabel='Get')\n",
|
||||
" sns.distplot(a=get_run_latencies, ax=axs[2], hist=True, kde=False, rug=True) \n",
|
||||
" \n",
|
||||
" axs[3].set(title='Delete Run Latency', xlabel='Time (Second)', ylabel='Delete')\n",
|
||||
" sns.distplot(a=delete_run_latencies, ax=axs[3], hist=True, kde=False, rug=True)\n",
|
||||
"\n",
|
||||
" label_get_run_latencies = pd.Series(get_run_latencies, name='Get Run Latency (Second)')\n",
|
||||
" sns.distplot(a=label_get_run_latencies, ax=axs[2]) \n",
|
||||
" \n",
|
||||
" label_delete_run_latencies = pd.Series(delete_run_latencies, name='Delete Run Latency (Second)')\n",
|
||||
" sns.distplot(a=label_delete_run_latencies, ax=axs[3])\n",
|
||||
" \n",
|
||||
" loaded_run_results = pd.DataFrame(np.array(run_results), columns=['result'])\n",
|
||||
" sns.catplot(x='result', kind=\"count\", data=loaded_run_results)\n",
|
||||
" "
|
||||
|
|
|
|||
Loading…
Reference in New Issue