# matplotlib/matplotlib SLOC report

> As of 2026-10-14 (commit a009fbaf219d), matplotlib/matplotlib contains 333,037 total lines: 257,335 code, 33,429 comments, 42,273 blank, across 1,232 files in 21 languages (top: Python 69.6%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

matplotlib/matplotlib has 257,335 source lines of code out of 333,037 total lines across 1,232 files, counted from the main ref at commit a009fbaf219d by the OctoCounts tokei engine on 2026-10-14. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving matplotlib/matplotlib to commit a009fbaf219d, 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.

## Repository size insights

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.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 870 | 227,764 | 179,216 | 22,583 | 25,965 |
| C Header | 156 | 55,947 | 40,226 | 7,731 | 7,990 |
| C++ | 55 | 33,234 | 24,715 | 2,120 | 6,399 |
| JSON | 9 | 4,428 | 4,428 | 0 | 0 |
| ReStructuredText | 54 | 4,656 | 3,474 | 0 | 1,182 |
| Objective-C | 1 | 2,026 | 1,675 | 124 | 227 |
| SVG | 16 | 1,085 | 1,045 | 3 | 37 |
| JavaScript | 3 | 1,001 | 767 | 104 | 130 |
| Meson | 23 | 811 | 715 | 36 | 60 |
| TOML | 1 | 505 | 395 | 80 | 30 |
| CSS | 5 | 356 | 244 | 49 | 63 |
| YAML | 2 | 233 | 200 | 16 | 17 |

Top language (Python 69.6%). Generated at 2026-10-14T12:57:31.611481270+00:00. Canonical report: https://octocounts.com/github/matplotlib/matplotlib

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/matplotlib/matplotlib/commit/a009fbaf219d507a24a1c1d4050db7eac876761b?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D&reportId=4c0210c40dc4023270d590beec472e78f6dcba63c2d6186b28d5fb4767f9e9a1).

## Report FAQ

### How many lines of code does matplotlib/matplotlib have?

matplotlib/matplotlib has 333,037 total lines, including 257,335 code lines, 33,429 comment lines, and 42,273 blank lines.

### How was the matplotlib/matplotlib line count measured?

OctoCounts resolved the public GitHub repository to commit a009fbaf219d, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for matplotlib/matplotlib?

This OctoCounts report was generated from main at commit a009fbaf219d on 2026-10-14T12:57:31.611481270+00:00.

## Similar repository reports

- [pipecat-ai/pipecat](https://octocounts.com/github/pipecat-ai/pipecat) — Python, 257,117 code lines
- [langchain-ai/deepagents](https://octocounts.com/github/langchain-ai/deepagents) — Python, 262,724 code lines
- [DennisMitchell/jellylanguage](https://octocounts.com/github/DennisMitchell/jellylanguage) — Python, 251,516 code lines
- [HKUDS/nanobot](https://octocounts.com/github/HKUDS/nanobot) — Python, 250,850 code lines
- [ZhuLinsen/daily_stock_analysis](https://octocounts.com/github/ZhuLinsen/daily_stock_analysis) — Python, 264,961 code lines
- [derv82/wifit3](https://octocounts.com/github/derv82/wifit3) — Python, 265,578 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
