Re: [Matplotlib-users] Unit testing code that generate matplotlib plots

2011-11-02 Thread Wes McKinney
On Wed, Nov 2, 2011 at 5:43 PM, Wes McKinney wrote: > On Wed, Nov 2, 2011 at 5:20 PM, John Hunter wrote: >> On Wed, Nov 2, 2011 at 4:16 PM, Wes McKinney wrote: >>> Hi guys, >>> >>> Is there a common practice for unit testing code that creates >>> matplotlib plots? I'm mainly just interested in c

Re: [Matplotlib-users] Unit testing code that generate matplotlib plots

2011-11-02 Thread Wes McKinney
On Wed, Nov 2, 2011 at 5:20 PM, John Hunter wrote: > On Wed, Nov 2, 2011 at 4:16 PM, Wes McKinney wrote: >> Hi guys, >> >> Is there a common practice for unit testing code that creates >> matplotlib plots? I'm mainly just interested in code coverage versus >> correctness (making sure the code *wo

Re: [Matplotlib-users] Unit testing code that generate matplotlib plots

2011-11-02 Thread John Hunter
On Wed, Nov 2, 2011 at 4:16 PM, Wes McKinney wrote: > Hi guys, > > Is there a common practice for unit testing code that creates > matplotlib plots? I'm mainly just interested in code coverage versus > correctness (making sure the code *works*) for now. I guess one way > would be to disable the GU

[Matplotlib-users] Unit testing code that generate matplotlib plots

2011-11-02 Thread Wes McKinney
Hi guys, Is there a common practice for unit testing code that creates matplotlib plots? I'm mainly just interested in code coverage versus correctness (making sure the code *works*) for now. I guess one way would be to disable the GUI backend so GUI elements don't get created (if the user is runn