PyDrawNet
A python utility for plotting neural network (and other) diagrams
Install / Use
/learn @nhansendev/PyDrawNetREADME
PyDrawNet
A python utility for plotting neural network (and other) diagrams

Example files and this notebook have been created to demonstrate the capabilities of the project.
Requirements
- python 3+ (tested on 3.12 only)
- matplotlib (tested on 3.8.1 only)
How It Works
Layers
Layers are classes that represent "objects", like nodes or images. They create one or more matplotlib collections for rendering, as well as holding useful graphic properties like corner coordinates and total height/width.

Operations
Operations are classes that create connections between layers, such as convolutions, dense lines, or arrows. They create one or more matplotlib collections for rendering and can be combined (overlaid) arbitrarily.

Renderers
Currently two renderers are implemented:
- The sequential renderer class (SeqRenderer) renders layers one after another from left to right, with operations connecting adjacent layers (no skip-connections).
- The free-form renderer class (FreeformRenderer) requires layers to be specified with unique IDs, which operations are then attached to. All placement is manual except where automatic vertical centering is used (default).
Normally, the renderers call plt.show, but this can be disabled to allow further customization outside of their capabilites.
Installation
From within pydrawnet folder:
pip install .
To uninstall:
pip uninstall pydrawnet
Basic Usage
Related Skills
node-connect
345.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
104.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
