Edit plot detail

This is a work in progress, tests still need to be added.

Feedback is appreciated.