Updated plotting functionality to output svg and make text editable