Discussion:
[Matplotlib-users] GridSpec.GridSpecFromSubplotSpec.update()
Julian Irwin
2015-03-31 03:10:46 UTC
Permalink
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
Julian Irwin
2015-04-03 20:11:09 UTC
Permalink
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
Post by Julian Irwin
Hey,
I am making a plot using nested GridSpec objects. I would like to adjust
the space between the the different GridSpecs.
gs0 = gridspec.GridSpec(a, b)
gs1 = gridspec.GridSpec(c, d)
gs0.update(...)
gs1.update(...)
However, If I use GridSpecFromSubplotSpec to make the gridspec-like
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
Paul Hobson
2015-04-03 20:22:00 UTC
Permalink
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.
Post by Julian Irwin
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
Post by Julian Irwin
Hey,
I am making a plot using nested GridSpec objects. I would like to adjust
the space between the the different GridSpecs.
gs0 = gridspec.GridSpec(a, b)
gs1 = gridspec.GridSpec(c, d)
gs0.update(...)
gs1.update(...)
However, If I use GridSpecFromSubplotSpec to make the gridspec-like
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
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Loading...