HarisIqbal88 / PlotNeuralNet

Latex code for making neural networks diagrams
MIT License
21.74k stars 2.84k forks source link

Font size in the graph #43

Closed wufeim closed 5 years ago

wufeim commented 5 years ago

Does anyone know how to change the font size in the graph? I tried to simply add to the documentclass

\documentclass[border=15pt, multi, tikz]{standalone}

but it doesn't work and returns some errors with positioning.

guillermo-jimenez commented 5 years ago

A temporal solution would be to change the files Box.sty and RightBandedBox.sty in the layers folder.

In both files there's a line that states:

\path (b) edge ["\xlabel"',midway] (c);

I changed these lines to:

\path (b) edge ["\Huge\xlabel"',midway] (c);

Also, there's a line that states:

\path (c) edge ["\small\zlabel"',depthlabel](f); %depth label

I changed these lines to:

\path (c) edge ["\Large\zlabel"',depthlabel](f); %depth label

Hope it helps.

Regards, Guille

HarisIqbal88 commented 5 years ago

As far as I remember, increasing the scale parameter and then decreasing value for depth,height and width by same scale does the trick

wufeim commented 5 years ago

As far as I remember, increasing the scale parameter and then decreasing value for depth,height and width by same scale does the trick

This works for me. Thank you!