# Diagram not showing in output.svg

**URL:** <https://forum.graphviz.org/t/diagram-not-showing-in-output-svg/1073>\
**Category:** Help\
**Created:** [March 13, 2022, 3:39pm UTC](https://forum.graphviz.org/t/diagram-not-showing-in-output-svg/1073 "2022-03-13T15:39:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pluro](https://avatars.discourse-cdn.com/v4/letter/p/df705f/32.png) [@pluro](https://forum.graphviz.org/u/pluro)\
**Post date:** [March 13, 2022, 3:39pm UTC](https://forum.graphviz.org/t/diagram-not-showing-in-output-svg/1073/1 "2022-03-13T15:39:16Z")

</div>

What is the best way to debug a dot script for an output image not being generated from the following command?

```auto
dot -Tps digraph.dot -o output.svg

```

The command completes without any warning and an `output.svg` file is generated in the same directory as the digraph.dot file. However, when I try and open the file in my Pycharm editor, I receive a message saying that I should try and open the svg externally to fix the format problem. Then opening the file externally, a browser opens the svg and I then get an error message  
`error on line 1 at column 1: Document is empty`  
The output.svg file appears red in pycharm as well. Unfortunately, there are no error messages to figure our what is going wrong. Is there another CLI command that I could look into for running this dot file?

---

<div class="post-metadata">

**Author:** ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)\
**Post date:** [March 13, 2022, 5:03pm UTC](https://forum.graphviz.org/t/diagram-not-showing-in-output-svg/1073/2 "2022-03-13T17:03:41Z")

</div>

**-Tps** tells dot to create a **postscript** file ([PS | Graphviz](https://graphviz.org/docs/outputs/ps/)),  
try **-Tsvg**
