def write_plot_div(plot_result, plot_conf):
    """writes plot div to file"""
    if plot_result is not None:
        plot_filename = plot_conf['filename']
        with open(plot_filename, 'w') as f:
            f.write(plot_result)
            f.write('')
