From: Warren W. <war...@en...> - 2012-05-11 21:33:03
|
On Fri, May 11, 2012 at 3:17 PM, Paul Ivanov <piv...@gm...> wrote: > Hey everyone, > > I wanted to highlight Matthew Emmett's (memmett) PR in progress [1] that > brings the ability to switch between rcParams. > > Matthew's implementation started with just being able to read in and use > an rcParam file, and I suggested the idea of having a context manager, > that would allow you to do something like: > > with rc_context(fname): > plt.plot() > ... > > and have the rcParams restored outside of the context. > > I know there have been a few threads (can't find links now for some > reason) and in-person discussions in the past about having this kind of > ability in matplotlib, and having an idea of "styles", and Tony Yu > implemented a variant of this on top of matplotlib in mpltools [2], but > I wanted to ping the list here for other ideas and feelings about such > functionality (if anyone can find pointers to previous discussions, that > would be very welcome). > > 1. https://github.com/matplotlib/matplotlib/pull/861 > 2. https://github.com/tonysyu/mpltools > > You will need Python 2.5 or later to use the 'with' statement. I think that is already a requirement of matplotlib, and this page--which says 2.4--is not up to date: http://matplotlib.sourceforge.net/users/installing.html I'm sure the minimum version of numpy given there (1.1) is also wrong. Warren best, > -- > Paul Ivanov > 314 address only used for lists, off-list direct email at: > http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > |