Re: [Matplotlib-users] Bbox::update_numerix_xy expected numerix array

2007-08-28 Thread Alen Ribic
There were decimal.Decimal object type values in my array. I converted those to float and all is well now. Don't understand though why the command line version worked as it was. Hmm... :-) -Alen On 8/28/07, Alen Ribic <[EMAIL PROTECTED]> wrote: > I get the following error when i

[Matplotlib-users] Bbox::update_numerix_xy expected numerix array

2007-08-28 Thread Alen Ribic
I get the following error when its gets to the line where the bar(...) function is called: "Bbox::update_numerix_xy expected numerix array" What does this mean? is it referring to the the left, height or width...? If I execute the same code form the command line it works! But, If I call the code

Re: [Matplotlib-users] Vertical bar - making the bar fixed width

2007-08-25 Thread Alen Ribic
x27;ll also need to change: > > for i in xrange(N): > text(i, 0, " %s" etc...) > > to: > > for i in ind: > text(i, 0, etc...) > > in order to keep the text lined up right. > > Hope that helps, > > Fred > > > A

Re: [Matplotlib-users] Vertical bar - making the bar fixed width

2007-08-24 Thread Alen Ribic
to "center", on the bar function and it didn't do much. -Alen > > On 8/24/07, Fred Ludlow <[EMAIL PROTECTED]> wrote: > > Alen Ribic wrote: > > > How do I set my vertical bar to be fixed width? > > > > By default, bars are created with a fixed w

[Matplotlib-users] Vertical bar - making the bar fixed width

2007-08-23 Thread Alen Ribic
How do I set my vertical bar to be fixed width? Depending on amount of data on my x axis, the bars get created accordingly and the width gets adjusted to fit into the graph. If I have only 2 plots on the x axis then the 2 bars get stretched across the entire graph. Looks very ugly. -Alen