Cool.  I think it make sense to put this in to `pyplot.py` next to
`subplots`

Tom

On Wed, Mar 18, 2015 at 1:14 PM Nicolas P. Rougier <nicolas.roug...@inria.fr>
wrote:

>
> Hi,
>
> I've been experimenting with a simple idea for specifying plot layout in a
> rather intuitive way.
> The idea is simply to "draw" your layout using strings.
>
> Examples:
>
> layout = ["AB"]
> -> means two plots side by side with equal width
>
> layout = ["AAAB"]
> -> means two plots side by side A being 3 times wider than B
>
> layout = ["AB",
>           "CC"]
> -> means two plots (A & B) side by side and C below with full width
>
> layout = ["AB",
>           "C "]
> -> means two plots (A & B) side by side and C below A (same width)
>
> etc... (have a look at sources)
>
> I guess you cannot express every layout but it might work for most common
> ones.
>
> If you think this might a good addition I can try to make a PR but I'm not
> sure where to insert it.
> My idea would be to have a layout function such that you can write:
>
> A,B,C = plt.layout(["AB", "CC"], border=0.01)
> A.plot(...)
> B.plot(...)
> C.plot(...)
>
>
> Nicolas
>
>
> ------------------------------------------------------------
> ------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to