{"id":21618693,"url":"https://github.com/trolobezka/data2latex","last_synced_at":"2026-01-21T18:37:26.737Z","repository":{"id":165208942,"uuid":"637127700","full_name":"Trolobezka/data2latex","owner":"Trolobezka","description":"Package prototype for simple generation of LaTeX tables and plots from scientific data for use in any document.","archived":false,"fork":false,"pushed_at":"2023-05-18T11:20:43.000Z","size":638,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-08T04:55:16.594Z","etag":null,"topics":["latex","latex-pdf","numpy-array","numpy-arrays","pandas-dataframe","plot","plotting","pylatex","python","python3","table"],"latest_commit_sha":null,"homepage":"https://trolobezka.github.io/data2latex-docs","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Trolobezka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-05-06T15:38:10.000Z","updated_at":"2025-10-03T18:50:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"763540fd-bc80-465e-b401-ee7fe099ee5b","html_url":"https://github.com/Trolobezka/data2latex","commit_stats":{"total_commits":47,"total_committers":2,"mean_commits":23.5,"dds":0.04255319148936165,"last_synced_commit":"c2893291d850e0f6d1a5063aabf6299af81dafef"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Trolobezka/data2latex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trolobezka%2Fdata2latex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trolobezka%2Fdata2latex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trolobezka%2Fdata2latex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trolobezka%2Fdata2latex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Trolobezka","download_url":"https://codeload.github.com/Trolobezka/data2latex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trolobezka%2Fdata2latex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28639413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T18:04:35.752Z","status":"ssl_error","status_checked_at":"2026-01-21T18:03:55.054Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["latex","latex-pdf","numpy-array","numpy-arrays","pandas-dataframe","plot","plotting","pylatex","python","python3","table"],"created_at":"2024-11-24T23:06:38.444Z","updated_at":"2026-01-21T18:37:26.720Z","avatar_url":"https://github.com/Trolobezka.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Data2LaTeX\n\n![Data2LaTeX logo](docs/_static/img/logo.png)\n\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nThis project is a part of my bachelor thesis which deals with data representation using **Python** and **LaTeX**. You can find the source code on my [GitHub](https://github.com/Trolobezka/data2latex).\n\nThe idea behind this package prototype is that generating LaTeX documents containing scientific data from Python should not be difficult and require many steps. Currently the package supports the creation of simple tables and two types of plots: scatter plots and line plots. The package uses the [PyLaTeX](https://github.com/JelteF/PyLaTeX) package to handle the document creation and compilation process. The main data sources are arrays and data tables from the popular packages `numpy` and `pandas`. A major inspiration for the module syntax is the `matplotlib.pyplot` module, which allows plots to be created in a few lines of code. The tables are created using the `tblr` environment from the `tabularray` package. The plots are created using the `tikzpicture` / `axis` environment from the `tikz` / `pgfplots` package.\n\n## Examples\n\nExamples with results can be found in the [documentation](https://trolobezka.github.io/data2latex-docs).\n\n### Simple features\n\n```python\nimport data2latex as dtol\ndtol.section(\"Data2LaTeX\")\ndtol.text(\"This project is part of my bachelor thesis which deals with data representation using Python and LaTeX.\")\ndtol.finish(\"simple_features\")\n```\n\n### Simple table\n\n```python\nimport data2latex as dtol\ndata = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]\ndtol.table(data)\ndtol.finish(\"simple_table\")\n```\n\n### Simple plot\n\n```python\nimport data2latex as dtol\nX = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\nY = [84, 13, 94, 37, 80, 89, 90, 45, 55, 26, 92]\ndtol.plot(X, Y, line=\"-\", mark=\"*\")\ndtol.finish(\"simple_plot\")\n```\n\n## Installation\n\n```bash\npython -m pip install --upgrade pip\npython -m pip install --upgrade data2latex\n```\n\n## Development\n\n```bash\npython -m venv .venv\n./.venv/Scripts/activate\npython -m pip install --upgrade pip\npython -m pip install .[dev]\n```\n\n## Generating documentation\n\n```bash\nsphinx-apidoc -o docs src/data2latex\n./docs/make html\n```\n\n## Packaging\n\n```bash\npython clear.py\npython -m pip install --upgrade build\npython -m build\n```\n\n## Publishing\n\n```bash\npython -m pip install --upgrade twine\npython -m twine upload dist/*\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrolobezka%2Fdata2latex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrolobezka%2Fdata2latex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrolobezka%2Fdata2latex/lists"}