From: Benjamin R. <ben...@ou...> - 2015-03-18 17:43:22
|
That is neat. I would be sure to put in some "..seealso::" lines in places like plt.subplots and GridSpec and such. A thought... could this perhaps be extended somehow to specify colorbars in the layout? I am not sure how I would do that, but if we could come up with a way to do it, *that* would make this a killer feature. But even without that, this is still pretty useful. On Wed, Mar 18, 2015 at 1:20 PM, Thomas Caswell <tca...@gm...> wrote: > 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 < > Nic...@in...> 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 >> Mat...@li... >> 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > > |