Make tooltips work with plot()

There is probably a more elegant way to handle this, and documentation will sort it all out.  But right now, this makes the docstring example from plugins.py work for me, and adds a test so we'll notice if future changes break it.