Skip to content

Latex script generator that generates an aesthetically appealing table using a numpy array.

Notifications You must be signed in to change notification settings

louisblankemeier/NumpyTex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Numpy To Latex Table Script Generator

Functionality

  • Can compute and add both row and column averages
  • Places a dash wherever a nan appears in the numpy table
  • Can add green color to indicate positive value, red color to indicate negative value
  • If values are percentages, can add percent signs

Installation

pip

To install using pip, use the command:

pip install git+https://github.com/louisblankemeier/NumpyTex

Then, you can import within python. For example:

from NumpyTex.two_axis_table import gen_two_axis_table

Generated latex scripts have only been tested in Overleaf.

Usage

This repo enables generating an aesthetically appealing table in the form of a latex script using a numpy array.

examples/two_axis_colored.py demostrates usage of the function src/two_axis_table.py.

Below is an image of the rendered table using the generated latex script, which is written to latex_scripts/two_axis_example.tex.

About

Latex script generator that generates an aesthetically appealing table using a numpy array.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published