Refactored for compatibility with Bokeh 3.2.0 (#7)

Signed-off-by: Oren Bell <oren.bell@wustl.edu>
This commit is contained in:
Oren Bell 2023-06-27 13:06:29 -05:00 committed by GitHub
parent d4ff095a1b
commit 7100baf0f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,19 +114,19 @@
" title=owner_info,\n",
" x_axis_label=f'start ({starttime})',\n",
" y_axis_label='duration (ms)',\n",
" plot_width=psize, plot_height=psize,\n",
" width=psize, height=psize,\n",
" )\n",
" duration.title.align = 'center'\n",
" duration.line(\n",
" x='timestamp',\n",
" y='duration',\n",
" legend=str(symbol),\n",
" legend_label=str(symbol),\n",
" line_width=2,\n",
" source=source,\n",
" line_color=colours[colour_i],\n",
" )\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",
" # Histogram\n",
" # (convert to milliseconds)\n",
@ -140,7 +140,7 @@
" title='Duration histogram',\n",
" x_axis_label='duration (ms)',\n",
" y_axis_label='frequency',\n",
" plot_width=psize, plot_height=psize,\n",
" width=psize, height=psize,\n",
" )\n",
" hist.title.align = 'center'\n",
" hist.quad(\n",
@ -175,7 +175,7 @@
" title='Callback durations',\n",
" x_axis_label=f'start ({starttime})',\n",
" y_axis_label='duration (ms)',\n",
" plot_width=psize, plot_height=psize,\n",
" width=psize, height=psize,\n",
")\n",
"\n",
"colour_i = 0\n",
@ -191,14 +191,14 @@
" duration.line(\n",
" x='timestamp',\n",
" y='duration',\n",
" legend=str(symbol),\n",
" legend_label=str(symbol),\n",
" line_width=2,\n",
" source=source,\n",
" line_color=colours[colour_i],\n",
" )\n",
" colour_i += 1\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",
"show(duration)"
]