Prototype for simple generation of LaTeX tables and plots from scientific data for use in papers.
Project description
data2latex
This project is part of my bachelor thesis which deals with data representation using Python and LaTeX.
The 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 plot and line plot. The package uses the PyLaTeX package to handle the document creation and compilation process. The main data sources are arrays and data tables from the popular Numpy, SciPy and Pandas packages. A major inspiration for the package syntax is the Matplotlib.Pyplot package, which allows plots to be created in a few lines of code. This package allows the user to choose a backend for plotting: Matplotlib in Python or pgfplots in LaTeX.
Examples
print("Hello World!")
Installation
python -m pip install --upgrade pip
python -m pip install --upgrade data2latex
Developing
python -m venv .venv
./.venv/Scripts/activate
python -m pip install --upgrade pip
python -m pip install .
python -m pip install .[dev]
Generating documentation
sphinx-apidoc -o docs src/data2latex
./docs/make html
Packaging
python clear.py
python -m pip install --upgrade build
python -m build
python -m pip install ./dist/data2latex-?.whl
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for data2latex-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32cbd7bdade911a272c038553c8d62697640efdbb703f799577cb846fb29c855 |
|
MD5 | 5e41d72c87fdb2a8de08e7da5fc13990 |
|
BLAKE2b-256 | e204d039079b47e14a89a7f25fce1a551af4d6286c96fe9f3ebce946375623cb |