Export ps_plot ('vs-do')

maybe you can adapt on the export code of the StaMPS-Visualizer, SNAP-StaMPS Workflow