Hey,
I am making a plot using nested GridSpec objects. I would like to adjust the space between the the different GridSpecs.
This works fine if I do something like:
gs0 = gridspec.GridSpec(a, b)
gs1 = gridspec.GridSpec(c, d)
gs0.update(…)
gs1.update(…)
However, If I use GridSpecFromSubplotSpec to make the gridspec-like objects, this update() method is not provided:
root_gs = gridspec.GridSpec(2, 1)
gs0 = gridspec.GridSpecFromSubplotSpec(a, b, root_gs[0])
gs1 = gridspec.GridSpecFromSubplotSpec(c, d, root_gs[1])
gs0.update() #not a method!!
I probed around in gs0.dict and dir(gs0) but I couldn’t find the right attributes…Can anyone suggest a solutions or a workaround?
Thanks!
Julian
Hey,
Just checking if I sent this out properly. Can someone reply to let me know that this was seen, even if you don’t have an answer?
Thanks,
Julian
···
On Mon, Mar 30, 2015 at 10:10 PM, Julian Irwin <julian.irwin@…287…> wrote:
Hey,
I am making a plot using nested GridSpec objects. I would like to adjust the space between the the different GridSpecs.
This works fine if I do something like:
gs0 = gridspec.GridSpec(a, b)
gs1 = gridspec.GridSpec(c, d)
gs0.update(…)
gs1.update(…)
However, If I use GridSpecFromSubplotSpec to make the gridspec-like objects, this update() method is not provided:
root_gs = gridspec.GridSpec(2, 1)
gs0 = gridspec.GridSpecFromSubplotSpec(a, b, root_gs[0])
gs1 = gridspec.GridSpecFromSubplotSpec(c, d, root_gs[1])
gs0.update() #not a method!!
I probed around in gs0.dict and dir(gs0) but I couldn’t find the right attributes…Can anyone suggest a solutions or a workaround?
Thanks!
Julian
Hey Julian,
I’m not familiar enough from gridspec to help, but your emails were received by the list.
If no one on the list has (time to write) a response, I would recommend making your example a little more reproducible (e.g., what are a and b?) and posting it on stackoverflow.
···
On Fri, Apr 3, 2015 at 1:11 PM, Julian Irwin <julian.irwin@…287…> wrote:
Hey,
Just checking if I sent this out properly. Can someone reply to let me know that this was seen, even if you don’t have an answer?
Thanks,
Julian
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-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
On Mon, Mar 30, 2015 at 10:10 PM, Julian Irwin <julian.irwin@…287…> wrote:
Hey,
I am making a plot using nested GridSpec objects. I would like to adjust the space between the the different GridSpecs.
This works fine if I do something like:
gs0 = gridspec.GridSpec(a, b)
gs1 = gridspec.GridSpec(c, d)
gs0.update(…)
gs1.update(…)
However, If I use GridSpecFromSubplotSpec to make the gridspec-like objects, this update() method is not provided:
root_gs = gridspec.GridSpec(2, 1)
gs0 = gridspec.GridSpecFromSubplotSpec(a, b, root_gs[0])
gs1 = gridspec.GridSpecFromSubplotSpec(c, d, root_gs[1])
gs0.update() #not a method!!
I probed around in gs0.dict and dir(gs0) but I couldn’t find the right attributes…Can anyone suggest a solutions or a workaround?
Thanks!
Julian