hiddenlayer icon indicating copy to clipboard operation
hiddenlayer copied to clipboard

rotate

Open ECarboni opened this issue 6 years ago • 4 comments

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?

ECarboni avatar Jan 09 '20 13:01 ECarboni

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

sizhky avatar Mar 29 '20 05:03 sizhky

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.

martinlightmatter avatar Apr 07 '20 18:04 martinlightmatter

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

sudonto avatar May 11 '20 05:05 sudonto

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?

lidonghui-ai avatar Jun 11 '20 11:06 lidonghui-ai