From: Nicolas P. R. <Nic...@in...> - 2015-03-18 17:13:56
|
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 |