add select tool to example
add test legend to plots