Matplotlib

By default the values for width and height are 6.4 and 4.8 respectively

to set the size, use

plt.figure(figsize=(14, 10))

tikz

Beamer

figures for ML models

NN SVG

PlotNeuralNet: latex code

PytorchViz: pytorch library

Tensorspace.js: javascript