.. plottable documentation master file, created by sphinx-quickstart on Sat Oct 29 12:13:32 2022. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to plottable's documentation! ===================================== Beautiful Tables in Matplotlib ------------------------------ plottable is a Python library for plotting beautiful, presentation ready tables in Matplotlib. Quick start ----------- ------------ Installation ------------ .. code-block:: pip install plottable --------------- A Basic Example --------------- .. code-block:: import matplotlib.pyplot as plt import numpy as np import pandas as pd from plottable import Table d = pd.DataFrame(np.random.random((10, 5)), columns=["A", "B", "C", "D", "E"]).round(2) fig, ax = plt.subplots(figsize=(5, 8)) tab = Table(d) plt.show() .. image:: https://raw.githubusercontent.com/znstrider/plottable/master/docs/example_notebooks/images/basic_table.png ------------------------- Women's World Cup Example ------------------------- `You can access the WWC Example Notebook here `_ .. image:: https://raw.githubusercontent.com/znstrider/plottable/master/docs/example_notebooks/images/wwc_table.png .. |br| raw:: html
|br| Customizing a Table =================== 1) `By supplying keywords to the Table `_ 2) `Providing a ColumnDefinition for each column you want to style `_ 3) `Accessing a tables rows or columns `_ Contributing ============ *Contributors are very welcome to this project.* Please take a look at the `Contributor Guide `_ Credits ======= plottable is built for the lack of good table packages in the python ecosystem. It draws inspiration from R packages `gt `_ and `reactable `_, from blog posts about creating tables in matplotlib `Tim Bayer: How to create custom tables `_ and `Son of a corner: Beautiful Tables in Matplotlib, a Tutorial `_ and from matplotlibs own table module. .. toctree:: :maxdepth: 2 :caption: Documentation: notebooks/table.ipynb notebooks/column_definition.ipynb notebooks/plots.ipynb notebooks/cmap.ipynb notebooks/formatters.ipynb notebooks/font.ipynb notebooks/rows_and_columns.ipynb .. toctree:: :maxdepth: 2 :caption: Example Notebooks: example_notebooks/basic_example.ipynb example_notebooks/wwc_example.ipynb example_notebooks/bohndesliga_table.ipynb example_notebooks/plot_example.ipynb example_notebooks/heatmap.ipynb .. toctree:: :maxdepth: 2 :caption: Development: dev/contributing dev/changelog .. toctree:: :maxdepth: 3 :caption: Contents: modules Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search`