From: Sterling S. <sm...@fu...> - 2013-10-30 16:29:50
|
On Oct 30, 2013, at 7:47AM, Scott Lasley wrote: > > On Oct 30, 2013, at 10:14, Neal Becker <ndb...@gm...> wrote: > >> I have a blue line plot and a green line plot. I'd like to add some figtext at >> the bottom, and I'd like the text colors to match the plot colors. So I'd have >> some text in blue and some in green. >> >> figtext only allows one color >> >> I could use 2 figtext, but then I have to manually find coordinate positions for >> the text. That's ugly. >> >> It would be nice if we had a TeX-like approach, where I could create a green >> text object and a blue text object, then assemble them by stacking boxes. >> >> Any ideas? > > I'm not sure it's the best approach, but I've used HPacker (or VPacker if you want more than one line) to do this I have taken this approach as well. See part of my answer at http://stackoverflow.com/questions/17086847/box-around-text-in-matplotlib/17092777#17092777 |