<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1467279659099_4837">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.</div><div id="yui_3_16_0_ym19_1_1467279659099_4834"><br></div><div id="yui_3_16_0_ym19_1_1467279659099_4835" dir="ltr">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.<br></div><div id="yui_3_16_0_ym19_1_1467279659099_4446"><span></span></div><div id="yui_3_16_0_ym19_1_1467279659099_4490" class="qtdSeparateBR">Anyway, the main issue for 2.0 lies with the inconsistency between machines (probably font based) for the table_demo image.<br><br></div><div style="display: block;" id="yui_3_16_0_ym19_1_1467279659099_4507" class="yahoo_quoted"> <div id="yui_3_16_0_ym19_1_1467279659099_4506" style="font-family: Helvetica Neue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div id="yui_3_16_0_ym19_1_1467279659099_4505" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div id="yui_3_16_0_ym19_1_1467279659099_4563" dir="ltr"> <font id="yui_3_16_0_ym19_1_1467279659099_4562" face="Arial" size="2"> <hr id="yui_3_16_0_ym19_1_1467279659099_5280" size="1"> <b id="yui_3_16_0_ym19_1_1467279659099_5282"><span id="yui_3_16_0_ym19_1_1467279659099_5281" style="font-weight:bold;">From:</span></b> Thomas Caswell <tcaswell@gmail.com><br> <b id="yui_3_16_0_ym19_1_1467279659099_5284"><span id="yui_3_16_0_ym19_1_1467279659099_5283" style="font-weight: bold;">To:</span></b> OceanWolf <juichenieder-nabb@yahoo.co.uk>; "matplotlib-devel@python.org" <matplotlib-devel@python.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, 30 June 2016, 3:31<br> <b id="yui_3_16_0_ym19_1_1467279659099_5301"><span id="yui_3_16_0_ym19_1_1467279659099_5300" style="font-weight: bold;">Subject:</span></b> Re: [Matplotlib-devel] Fw: Table defaults (font-issue?)<br> </font> </div> <div id="yui_3_16_0_ym19_1_1467279659099_4504" class="y_msg_container"><br><div id="yiv1649106619"><div id="yui_3_16_0_ym19_1_1467279659099_4503"><div id="yui_3_16_0_ym19_1_1467279659099_4502" dir="ltr">What would be the upside of converting the legend to be a table instead of the current implementation?<div id="yui_3_16_0_ym19_1_1467279659099_4561"><br clear="none"></div><div id="yui_3_16_0_ym19_1_1467279659099_4501">Tom</div></div><br clear="none"><div id="yui_3_16_0_ym19_1_1467279659099_4940" class="yiv1649106619gmail_quote"><div class="yiv1649106619yqt3259354204" id="yiv1649106619yqt54185"><div id="yui_3_16_0_ym19_1_1467279659099_4944" dir="ltr">On Wed, Jun 29, 2016 at 5:33 AM OceanWolf via Matplotlib-devel <<a rel="nofollow" shape="rect" ymailto="mailto:matplotlib-devel@python.org" target="_blank" href="mailto:matplotlib-devel@python.org">matplotlib-devel@python.org</a>> wrote:<br clear="none"></div><blockquote id="yui_3_16_0_ym19_1_1467279659099_4939" class="yiv1649106619gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id="yui_3_16_0_ym19_1_1467279659099_4938"><div id="yui_3_16_0_ym19_1_1467279659099_4937" style="color:#000;background-color:#fff;font-family:Helvetica Neue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"><div id="yui_3_16_0_ym19_1_1467279659099_4943"><span>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.</span></div><div id="yui_3_16_0_ym19_1_1467279659099_4936"><br clear="none"><br clear="none"></div><div id="yui_3_16_0_ym19_1_1467279659099_4962" style="display:block;"> <div id="yui_3_16_0_ym19_1_1467279659099_4961" style="font-family:Helvetica Neue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"> <div id="yui_3_16_0_ym19_1_1467279659099_4960" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"> <div dir="ltr"> <font face="Arial" size="2"> <br clear="none">----- Forwarded Message -----<br clear="none"> <b><span style="font-weight:bold;">From:</span></b> OceanWolf <<a rel="nofollow" shape="rect" ymailto="mailto:juichenieder-nabb@yahoo.co.uk" target="_blank" href="mailto:juichenieder-nabb@yahoo.co.uk">juichenieder-nabb@yahoo.co.uk</a>><br clear="none"> <b><span style="font-weight:bold;">To:</span></b> Matplotlib Development List <<a rel="nofollow" shape="rect" ymailto="mailto:matplotlib-devel@python.org" target="_blank" href="mailto:matplotlib-devel@python.org">matplotlib-devel@python.org</a>> <br clear="none"> <b><span style="font-weight:bold;">Sent:</span></b> Thursday, 2 June 2016, 18:03<br clear="none"> <b><span style="font-weight:bold;">Subject:</span></b> Table defaults (font-issue?)<br clear="none"> </font> </div> <div id="yui_3_16_0_ym19_1_1467279659099_4959"><br clear="none"><div id="yui_3_16_0_ym19_1_1467279659099_4958"><div id="yui_3_16_0_ym19_1_1467279659099_4957"><div id="yui_3_16_0_ym19_1_1467279659099_4956" style="color:#000;background-color:#fff;font-family:Helvetica Neue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"><div id="yui_3_16_0_ym19_1_1467279659099_4975">Sorry for the late comment, I have just reinstalled matploblib for python3, finally making that transition :D.</div><div id="yui_3_16_0_ym19_1_1467279659099_4966"><br clear="none"></div><div id="yui_3_16_0_ym19_1_1467279659099_4964" dir="ltr">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.<br clear="none"></div><div id="yui_3_16_0_ym19_1_1467279659099_4963"><br clear="none"></div><div id="yui_3_16_0_ym19_1_1467279659099_4955" dir="ltr">Anyway, tables, looking at <a id="yui_3_16_0_ym19_1_1467279659099_4972" rel="nofollow" shape="rect" target="_blank" href="http://matplotlib.org/devdocs/examples/pylab_examples/table_demo.html">http://matplotlib.org/devdocs/examples/pylab_examples/table_demo.html</a> 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.<br clear="none"></div><div id="yui_3_16_0_ym19_1_1467279659099_4973"><br clear="none"></div><div id="yui_3_16_0_ym19_1_1467279659099_4969">Best,<br clear="none">OceanWolf<br clear="none"></div></div></div></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></div>_______________________________________________<br clear="none">
Matplotlib-devel mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:Matplotlib-devel@python.org" target="_blank" href="mailto:Matplotlib-devel@python.org">Matplotlib-devel@python.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="https://mail.python.org/mailman/listinfo/matplotlib-devel">https://mail.python.org/mailman/listinfo/matplotlib-devel</a><br clear="none">
</blockquote></div></div></div></div><br><br></div> </div> </div> </div></div></body></html>