Refactored for compatibility with Bokeh 3.2.0 (#7)
Signed-off-by: Oren Bell <oren.bell@wustl.edu>
This commit is contained in:
parent
d4ff095a1b
commit
7100baf0f4
1 changed files with 7 additions and 7 deletions
|
@ -114,19 +114,19 @@
|
||||||
" title=owner_info,\n",
|
" title=owner_info,\n",
|
||||||
" x_axis_label=f'start ({starttime})',\n",
|
" x_axis_label=f'start ({starttime})',\n",
|
||||||
" y_axis_label='duration (ms)',\n",
|
" y_axis_label='duration (ms)',\n",
|
||||||
" plot_width=psize, plot_height=psize,\n",
|
" width=psize, height=psize,\n",
|
||||||
" )\n",
|
" )\n",
|
||||||
" duration.title.align = 'center'\n",
|
" duration.title.align = 'center'\n",
|
||||||
" duration.line(\n",
|
" duration.line(\n",
|
||||||
" x='timestamp',\n",
|
" x='timestamp',\n",
|
||||||
" y='duration',\n",
|
" y='duration',\n",
|
||||||
" legend=str(symbol),\n",
|
" legend_label=str(symbol),\n",
|
||||||
" line_width=2,\n",
|
" line_width=2,\n",
|
||||||
" source=source,\n",
|
" source=source,\n",
|
||||||
" line_color=colours[colour_i],\n",
|
" line_color=colours[colour_i],\n",
|
||||||
" )\n",
|
" )\n",
|
||||||
" duration.legend.label_text_font_size = '11px'\n",
|
" duration.legend.label_text_font_size = '11px'\n",
|
||||||
" duration.xaxis[0].formatter = DatetimeTickFormatter(seconds=['%Ss'])\n",
|
" duration.xaxis[0].formatter = DatetimeTickFormatter(seconds='%Ss')\n",
|
||||||
"\n",
|
"\n",
|
||||||
" # Histogram\n",
|
" # Histogram\n",
|
||||||
" # (convert to milliseconds)\n",
|
" # (convert to milliseconds)\n",
|
||||||
|
@ -140,7 +140,7 @@
|
||||||
" title='Duration histogram',\n",
|
" title='Duration histogram',\n",
|
||||||
" x_axis_label='duration (ms)',\n",
|
" x_axis_label='duration (ms)',\n",
|
||||||
" y_axis_label='frequency',\n",
|
" y_axis_label='frequency',\n",
|
||||||
" plot_width=psize, plot_height=psize,\n",
|
" width=psize, height=psize,\n",
|
||||||
" )\n",
|
" )\n",
|
||||||
" hist.title.align = 'center'\n",
|
" hist.title.align = 'center'\n",
|
||||||
" hist.quad(\n",
|
" hist.quad(\n",
|
||||||
|
@ -175,7 +175,7 @@
|
||||||
" title='Callback durations',\n",
|
" title='Callback durations',\n",
|
||||||
" x_axis_label=f'start ({starttime})',\n",
|
" x_axis_label=f'start ({starttime})',\n",
|
||||||
" y_axis_label='duration (ms)',\n",
|
" y_axis_label='duration (ms)',\n",
|
||||||
" plot_width=psize, plot_height=psize,\n",
|
" width=psize, height=psize,\n",
|
||||||
")\n",
|
")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"colour_i = 0\n",
|
"colour_i = 0\n",
|
||||||
|
@ -191,14 +191,14 @@
|
||||||
" duration.line(\n",
|
" duration.line(\n",
|
||||||
" x='timestamp',\n",
|
" x='timestamp',\n",
|
||||||
" y='duration',\n",
|
" y='duration',\n",
|
||||||
" legend=str(symbol),\n",
|
" legend_label=str(symbol),\n",
|
||||||
" line_width=2,\n",
|
" line_width=2,\n",
|
||||||
" source=source,\n",
|
" source=source,\n",
|
||||||
" line_color=colours[colour_i],\n",
|
" line_color=colours[colour_i],\n",
|
||||||
" )\n",
|
" )\n",
|
||||||
" colour_i += 1\n",
|
" colour_i += 1\n",
|
||||||
" duration.legend.label_text_font_size = '11px'\n",
|
" duration.legend.label_text_font_size = '11px'\n",
|
||||||
" duration.xaxis[0].formatter = DatetimeTickFormatter(seconds=['%Ss'])\n",
|
" duration.xaxis[0].formatter = DatetimeTickFormatter(seconds='%Ss')\n",
|
||||||
"\n",
|
"\n",
|
||||||
"show(duration)"
|
"show(duration)"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue