useful helper function
plot cmd mainly just to remember cmdline invocation