Opened 12 years ago
Last modified 3 years ago
#10656 new defect
GraphicsArray() should be a Graphics() object, or have functionality to return one
Reported by: | niles | Owned by: | jason, was |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | graphics | Keywords: | GraphicsArray, Graphics, matplotlib |
Cc: | kcrisman | Merged in: | |
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description (last modified by )
Because it isn't, one cannot, for example, overlay text()
onto a GraphicsArray()
, or use any of the other Graphics()
functionality.
GraphicsArray._repr()
could (but doesn't) return a matplotlib Figure
, so perhaps this can be resolved with the help of #5128.
See the post at asksage about this issue for more details.
Related tickets:
Change History (4)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
- Cc kcrisman added
comment:3 Changed 10 years ago by
- Description modified (diff)
comment:4 Changed 3 years ago by
The code proposed in #27866 addresses some of the issues discussed here. In particular, it allows for the overlay of text()
onto a GraphicsArray
, via the new method GraphicsArray.inset()
. The output is no longer a GraphicsArray
but pertains to the more general class MultiGraphics
.
It would be cool if we could incorporate the graphics_array functionality into a Graphics object using matplotlib's gridspec to do the layout. Recently, some new capabilities for drawing arrays of graphics have been added (in matplotlib 1.0.0). Here are some links to documentation:
http://matplotlib.sourceforge.net/users/whats_new.html#sophisticated-subplot-grid-layout
http://matplotlib.sourceforge.net/users/gridspec.html#gridspec-guide
http://matplotlib.sourceforge.net/users/gridspec.html#gridspec-using-subplotspec