I would like to display a graph without first writing the file.
Suppose I have a foo command that produces this on standard output:
digraph foogrph { a -> b; a -> c; }
What I would like to do is pipe foo to dot , and then pass the results to a command that displays the image in a graphical environment.
foo | dot -Tpng | <display command>
I found a workaround that includes temporary files. On OSX, I can do the following:
foo | dot -Tpng > temp && open temp
But I still need to delete the file from the file system.
How can I display an image that is being written to standard?
source share