Use a standalone version of plot_directive