Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-19 Thread Rob Schneider
On Wed, Aug 18, 2010 at 3:32 PM, Friedrich Romstedt friedrichromst...@gmail.com wrote: 2010/8/14 Rob Schneider rmsc...@rmschneider.com: Agreed. The only thing I can think of is that the second figure is reusing the first. You can try calling plt.figure() at the beginning of the functions to

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-19 Thread Rob Schneider
You know, we are all volunteering our time here on the list to help, and I think blaming us to not be able to read hundred lines of code is not productive at all. It's not our side of the task to track whole parts of programs down. And, usually one has to play with the code and to run it

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-19 Thread Ryan May
On Thu, Aug 19, 2010 at 6:49 AM, Rob Schneider rmsc...@rmschneider.com wrote: On Wed, Aug 18, 2010 at 3:32 PM, Friedrich Romstedt friedrichromst...@gmail.com wrote: 2010/8/14 Rob Schneider rmsc...@rmschneider.com: Agreed. The only thing I can think of is that the second figure is reusing the

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-19 Thread Benjamin Root
On Thu, Aug 19, 2010 at 6:49 AM, Rob Schneider rmsc...@rmschneider.comwrote: On Wed, Aug 18, 2010 at 3:32 PM, Friedrich Romstedt friedrichromst...@gmail.com wrote: 2010/8/14 Rob Schneider rmsc...@rmschneider.com: Agreed. The only thing I can think of is that the second figure is reusing

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-19 Thread Friedrich Romstedt
2010/8/19 Rob Schneider rmsc...@rmschneider.com: I'm sorry you took anything I said as blame. Not intended that way. Just stating that using figure() and close() resolved the issue.  As I look back on the material I've used to learn how to use Matplotlib, they sometimes call these functions

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-18 Thread Friedrich Romstedt
2010/8/14 Rob Schneider rmsc...@rmschneider.com: Agreed. The only thing I can think of is that the second figure is reusing the first. You can try calling plt.figure() at the beginning of the functions to create a new figure, or call plt.figure() in between the calls to

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-18 Thread Ryan May
On Wed, Aug 18, 2010 at 3:32 PM, Friedrich Romstedt friedrichromst...@gmail.com wrote: 2010/8/14 Rob Schneider rmsc...@rmschneider.com: Agreed. The only thing I can think of is that the second figure is reusing the first. You can try calling plt.figure() at the beginning of the functions to

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-13 Thread Rob Schneider
Agreed. The only thing I can think of is that the second figure is reusing the first. You can try calling plt.figure() at the beginning of the functions to create a new figure, or call plt.figure() in between the calls to CreateMemberStatCategoryFigure() and CreateMemberStatFigure(). I

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-11 Thread Tony S Yu
On Aug 11, 2010, at 6:56 AM, Rob Schneider wrote: I extract data out of a database (via Django and Python). I'm drawing two bar charts. One is a stacked bar, and one is a simple bar. The code for each graph is in their own function. I call the function to draw the graph sequencially

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-11 Thread Ryan May
On Wed, Aug 11, 2010 at 8:43 AM, Tony S Yu tsy...@gmail.com wrote: On Aug 11, 2010, at 6:56 AM, Rob Schneider wrote: I extract data out of a database (via Django and Python). I'm drawing two bar charts. One is a stacked bar, and one is a simple bar. The code for each graph is in their