add register_plot method for register plot object
add test case for plugin.register_plot method
add example for plot object