Fw: Table defaults (font-issue?)

Sent this message (see below) almost a month ago, but message too large.? I have just used pngcrush on the image which reduced the image from 34k to 26k so hopefully this will send now.

···

----- Forwarded Message -----
From: OceanWolf <juichenieder-nabb at yahoo.co.uk>
To: Matplotlib Development List <matplotlib-devel at python.org>
Sent: Thursday, 2 June 2016, 18:03
Subject: Table defaults (font-issue?)
   
Sorry for the late comment, I have just reinstalled matploblib for python3, finally making that transition :D.
I have just taken a look at tables thinking I might quickly try to convert the legend to a table, but perhaps too late to make 2.0, but I thought I would give it a go anyway.

Anyway, tables, looking at http://matplotlib.org/devdocs/examples/pylab_examples/table_demo.html it just about okay here, but on my system I don't see a gap between the descender and the bottom of the table cell, I would expect the same padding around the bottom of the decender irrespective of the font used.? I would need to do a bit more investigation here to see if the table even shows the full descender, or whether it clips it.? I use the current master branch for my test.

Best,
OceanWolf

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20160629/01401745/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: table_new_2.png
Type: image/png
Size: 25944 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20160629/01401745/attachment-0001.png>

What would be the upside of converting the legend to be a table instead of
the current implementation?

Tom

···

On Wed, Jun 29, 2016 at 5:33 AM OceanWolf via Matplotlib-devel < matplotlib-devel at python.org> wrote:

Sent this message (see below) almost a month ago, but message too large.
I have just used pngcrush on the image which reduced the image from 34k to
26k so hopefully this will send now.

----- Forwarded Message -----
*From:* OceanWolf <juichenieder-nabb at yahoo.co.uk>
*To:* Matplotlib Development List <matplotlib-devel at python.org>
*Sent:* Thursday, 2 June 2016, 18:03
*Subject:* Table defaults (font-issue?)

Sorry for the late comment, I have just reinstalled matploblib for
python3, finally making that transition :D.

I have just taken a look at tables thinking I might quickly try to convert
the legend to a table, but perhaps too late to make 2.0, but I thought I
would give it a go anyway.

Anyway, tables, looking at
http://matplotlib.org/devdocs/examples/pylab_examples/table_demo.html it
just about okay here, but on my system I don't see a gap between the
descender and the bottom of the table cell, I would expect the same padding
around the bottom of the decender irrespective of the font used. I would
need to do a bit more investigation here to see if the table even shows the
full descender, or whether it clips it. I use the current master branch
for my test.

Best,
OceanWolf

_______________________________________________
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/20160630/f1a40e8f/attachment.html>

I see it as easier code to maintain and to visualise, I see the Legend class extending the Table class, i.e. an "is" relationship, rather than a "has" relationship which makes more sense to me.? Rather than have two pieces of code that lay things out in rows and columns we only have one, from an API perspective we ensure we use the same methods for both, methods like setting/getting column-width and row-width, etcetera.? By having it work like this, then any changes to the Table class automatically transfer to the Legend class, for example if were to implement a fancy-table style or something, then that would also apply to the legend, or any other table styling for that matter.
I imagine implementation-wise we should consider the key, value of the legend as a block occupying one table cell, rather then taking up two cells (two columns), and then have extra methods/properties to control within the key, value block, but not 100% as it makes it more complicated.
Anyway, the main issue for 2.0 lies with the inconsistency between machines (probably font based) for the table_demo image.

···

From: Thomas Caswell <tcaswell at gmail.com>
To: OceanWolf <juichenieder-nabb at yahoo.co.uk>; "matplotlib-devel at python.org" <matplotlib-devel at python.org>
Sent: Thursday, 30 June 2016, 3:31
Subject: Re: [Matplotlib-devel] Fw: Table defaults (font-issue?)
   
What would be the upside of converting the legend to be a table instead of the current implementation?
Tom
On Wed, Jun 29, 2016 at 5:33 AM OceanWolf via Matplotlib-devel <matplotlib-devel at python.org> wrote:

Sent this message (see below) almost a month ago, but message too large.? I have just used pngcrush on the image which reduced the image from 34k to 26k so hopefully this will send now.

----- Forwarded Message -----
From: OceanWolf <juichenieder-nabb at yahoo.co.uk>
To: Matplotlib Development List <matplotlib-devel at python.org>
Sent: Thursday, 2 June 2016, 18:03
Subject: Table defaults (font-issue?)
   
Sorry for the late comment, I have just reinstalled matploblib for python3, finally making that transition :D.
I have just taken a look at tables thinking I might quickly try to convert the legend to a table, but perhaps too late to make 2.0, but I thought I would give it a go anyway.

Anyway, tables, looking at http://matplotlib.org/devdocs/examples/pylab_examples/table_demo.html it just about okay here, but on my system I don't see a gap between the descender and the bottom of the table cell, I would expect the same padding around the bottom of the decender irrespective of the font used.? I would need to do a bit more investigation here to see if the table even shows the full descender, or whether it clips it.? I use the current master branch for my test.

Best,
OceanWolf

   _______________________________________________
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/20160630/1486551f/attachment.html>