[Matplotlib-devel] Pull requests for table.py

Antony Lee antony.lee at institutoptique.fr
Thu Jun 13 11:42:00 EDT 2019


Hi John,

Thanks for your writeup.  It provides an interesting historical view on one
of the oldest parts of the Matplotlib codebase, which is always nice read
about.

It is great that you intend to work again on table.py (which was mostly
abandoned by the other core devs), but I am not sure to what extent the new
API you propose has been stabilized, or whether you are still experimenting
with it.  There are also other issues with the API design (e.g.
https://github.com/matplotlib/matplotlib/issues/12931) that you may,
perhaps, want to revisit?

As you may have noticed, making backwards incompatible changes to
Matplotlib is a bit of an onerous process (due to the deprecation process,
the baseline images problem, etc.).  Given that table.py is fairly
self-contained, perhaps you may want to consider moving it to its own
separate package?  i.e. something published separately on PyPI (let us know
if you need any help for that), so that one would do (for example)

from mpltable import table
table(...)


This way you can play with the API in whatever way you want, and we could
just point to your package as the "new, more modern" way to make tables
with Matplotlib, and possibly import it back to the main repo as a single
PR once everything is stabilized.

Antony

On Thu, Jun 13, 2019 at 5:01 PM swfiua at gmail.com <swfiua at gmail.com> wrote:

> Hi,
>
> I just wanted to provide some background on the recent flurry of fixes to
> table.py and the history behind the code.
>
> See attached pdf.
>
> There are 3 main themes to the changes:
>
> * better automatic setting of the font size
> * change how horizontal padding around cell text is calculated
> * add ability to specify cell edge colours
>
> John
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20190613/be92f2f5/attachment.html>


More information about the Matplotlib-devel mailing list