waleedka / hiddenlayer

Neural network graphs and training metrics for PyTorch, Tensorflow, and Keras.
MIT License
1.79k stars 266 forks source link

rotate #63

Open ECarboni opened 4 years ago

ECarboni commented 4 years ago

Hello, I get my graphs from left to right, would it be possible to rotate them so to have the graphs from top to bottom of my jupyter notebook?

sizhky commented 4 years ago

I'm also searching for a solution. Please let us know if there's an easy way

martinlightmatter commented 4 years ago

If you edit https://github.com/waleedka/hiddenlayer/blob/294f8732b271cbdd6310c55bdf5ce855cbf61c75/hiddenlayer/graph.py#L327 to be rankdir="TB" it will switch to the vertical format that is shown in the demo notebooks.

sudonto commented 4 years ago

Look at here. It should be "TD" (topdown)

lidonghui-ai commented 4 years ago

I have the same problem. When I run the demo 'pytorch_graph.ipynb', I get one warning -'(dot.exe:15436): Pango-WARNING **: couldn't load font "Times Not-Rotated 10", falling back to "Sans Not-Rotated 10", expect ugly output.' and I get my graphs from left to right. Could someone know how to solve it?