[Matplotlib-devel] matplotlib limitations and design flaws

Thomas Caswell tcaswell at gmail.com
Mon Feb 15 11:47:03 EST 2016


See https://github.com/matplotlib/matplotlib/issues/1109

The consensus seems to be that we should use
https://github.com/nucleic/kiwi for
solving the linear constraint problem, someone just needs to sort out how
to automatically generate the constraint equations from a `Figure` object.
The sticking points are going to be dealing with text (which will require a
(partial?) 2-pass approach) and how what the user-facing API for tuning the
constraints will be.

This might be a good GSoC project?

Tom

On Mon, Feb 15, 2016 at 2:20 AM Phillip Feldman <phillip.m.feldman at gmail.com>
wrote:

> I will correct my discussion of the polar plot example.
>
> I'll add something to the discussion of block comments.  Re. Ryan's point
> that it is hard to exclude block commented code from greps/regex: This is
> equally true of doc strings, and no one is suggesting that we stop using
> these.
>
> Is there any plan to incorporate a layout engine into matplotlib?
>
> Phillip
>
> P.S. I want to thank everyone for the thoughtful responses.
>
> On Wed, Feb 10, 2016 at 9:12 AM, Ryan May <rmay31 at gmail.com> wrote:
>
>> A point in favor of not using block comments is that it is *much* harder
>> to exclude block commented code from greps/regex. If you comment every
>> line, that makes excluding those lines trivial.
>>
>> Ryan
>>
>> On Wed, Feb 10, 2016 at 9:41 AM, Joe Kington <joferkington at gmail.com>
>> wrote:
>>
>>>
>>>  Ctrl + / should comment out a chunk of text on most editors that I've
>>>> used (Save for e.g., vim).
>>>>
>>>
>>> And it's pretty trivial to set up in vim (note that you'd tupically
>>> customize comment marker on a per-language basis through an autocmd
>>> function).  This maps commenting out a block to "-" and uncommenting to "_":
>>>
>>> " Clear all comment markers (one rule for all languages)
>>> map _ :s/^\/\/\\|^--\\|^> \\|^[#"%!;]//<CR>:nohlsearch<CR>
>>> "Insert comment markers (assumes # unless overridden)
>>> map - :s/^/#/<CR>:nohlsearch<CR>
>>>
>>> There are also smarter options through various plugins, as well.
>>>
>>> At any rate, block commenting isn't something I've ever missed or felt
>>> was a limitation in any way, though that's just my $0.02.
>>>
>>> Cheers,
>>> -Joe
>>>
>>> _______________________________________________
>>> Matplotlib-devel mailing list
>>> Matplotlib-devel at python.org
>>> https://mail.python.org/mailman/listinfo/matplotlib-devel
>>>
>>>
>>
>>
>> --
>> Ryan May
>>
>>
>> _______________________________________________
>> Matplotlib-devel mailing list
>> Matplotlib-devel at python.org
>> https://mail.python.org/mailman/listinfo/matplotlib-devel
>>
>>
> _______________________________________________
> 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/20160215/254dd933/attachment-0001.html>


More information about the Matplotlib-devel mailing list