HarisIqbal88 / PlotNeuralNet

Latex code for making neural networks diagrams
MIT License
21.93k stars 2.86k forks source link

how to draw two network on one pdf? #101

Open zhou-rui1 opened 3 years ago

zhou-rui1 commented 3 years ago

hi, thanks for the awesome code !

Can I draw a two stream network show on one pdf?

Any guidance would be helpful!

With regards

rgm-22 commented 3 years ago

Hi zhou-rui1!

Same problem here...also I would like to add a caption to the tikzpicture.

Did you find a solution?

Sirius291 commented 2 years ago

Hi zhou-rui1 and rgm-22,

I was having the same problems, but I don't think either is possible at the moment. I just commented on a similar problem further up the issue list...

I would suggest a workaround... Generate a separate file for each architecture, compile with pdflatex and treat the resulting pdfs as images in the actual latex document. When you use the package "graphicx", you can simply add pdfs as images via the "\includegraphics" command and put a figure environment around it as usual, add a caption, change the measurements etc.

Hope that helps. Maybe not the most elegant, but quick and easy to realize and it solves the general problem. :)

rgm-22 commented 2 years ago

Hi @Sirius291!

Thank you very much for your suggestion!

Yes, I think that I did something similar. As you say, it is not the most elegant solution...but it works!

Thank you again! :)