As of 2026-09-02 (commit 374b2da71ccb), matplotlib/matplotlib contains 332,137 total lines: 256,578 code, 33,362 comments, 42,197 blank, across 1,230 files in 21 languages (top: Python 69.7%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving matplotlib/matplotlib to commit 374b2da71ccb, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.
This is a large codebase by counted code lines. Code represents 77.3% of all lines, comments represent 10.0%, and the repository averages 209 code lines per file. Python accounts for 69.7% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 869 | 227261 | 178787 | 22551 | 25923 |
| C Header | 156 | 55811 | 40117 | 7718 | 7976 |
| C++ | 55 | 32990 | 24506 | 2103 | 6381 |
| JSON | 9 | 4428 | 4428 | 0 | 0 |
| ReStructuredText | 54 | 4653 | 3471 | 0 | 1182 |
| Objective-C | 1 | 2026 | 1675 | 124 | 227 |
| SVG | 16 | 1085 | 1045 | 3 | 37 |
| JavaScript | 3 | 1001 | 767 | 104 | 130 |
| Meson | 23 | 811 | 715 | 36 | 60 |
| TOML | 1 | 497 | 388 | 80 | 29 |
| CSS | 5 | 356 | 244 | 49 | 63 |
| YAML | 2 | 233 | 200 | 16 | 17 |
Top language (Python 69.7%). Generated at 2026-09-02T22:31:14.216521294+00:00.
matplotlib/matplotlib has 332,137 total lines, including 256,578 code lines, 33,362 comment lines, and 42,197 blank lines.
OctoCounts resolved the public GitHub repository to commit 374b2da71ccb, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit 374b2da71ccb on 2026-09-02T22:31:14.216521294+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: