On 7/21/07, Darren Dale <[EMAIL PROTECTED]> wrote: > On Saturday 21 July 2007 3:12:44 pm Fernando Perez wrote: > > On 7/21/07, Darren Dale <[EMAIL PROTECTED]> wrote: > > > I'm working on converting our existing rc code to tconfig this weekend. > > > So far so good. I just wanted to let people know to avoid duplicating > > > effort. > > > > Excellent! Ping me if you have any problems. > > Im attaching a patch, it includes lots of changes to mplconfig.py, a realistic > mplrc.conf file (feel free to rename it to mpl.conf or matplotlib.conf or > whatever seems standard), and a backup of that .conf file. The mpltest lets > me try your trick of modifying a well formatted file in place. Very nice!
You may want to update before touching the code further. I moved some (not all, I didn't finish it and only meant to do enough to illustrate) of the comments you had in mpl.conf into the class docstrings. The TConfig __repr__ method now automatically adds these (as comments), so that auto-generated config files, if done purely from the TConfig class description, are still readable and possibly even useful. You can run mpltest.py to see what I mean, I made it just print out a purely default config at the end. Cheers, f ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel