I often find myself wanting to make a quick graph to illustrate dependencies or a process.
dot is nice for doing this, however it would be much more convenient if I could generate the rendered graph straight to my clipboard instead of generating a temporary file.
Ideally, I'd like something like
echo "graph {a--b; b--c;}" | dot -Tpng | xclip
This command as-written doesn't quite work - the copied data won't paste into applications that normally accept pasted images.
Is there any trick to get dot to produce output that would be pastable into applications?
As a tangent, and perhaps to address the knowledge gap at the root of my problem, what makes images "pastable" to begin with? What is the difference between my command above and, say, right-clicking on an image in a web browser and choosing Copy Image?