From: Gary R. <ga...@em...> - 2004-05-27 02:49:10
|
Hi John, I can confirm that 0.54.1a fixes the crashing problem - thanks! However, I tested it with a few errorbar plots and I noticed a few things. You've changed the errorbar bar-ends to use markers, but the scaling is now different and seems no longer to be settable via the capsize parameter. The autoscaling no longer works either. If I use the example: -- from matplotlib.matlab import * t = arange(0.1, 4, 0.1) s = exp(-t) e = 0.1*randn(len(s)) f = 0.1*randn(len(s)) l1 = errorbar(t, s, e, f) set(l1, 'color', 'g') show() -- a traceback is generated: Traceback (most recent call last): File "errorbar_demo.pyw", line 10, in ? set(l1, 'color', 'g') File "C:\APPS\PYTHON23\Lib\site-packages\matplotlib\matlab.py", line 1275, in set func = getattr(o,funcName) AttributeError: 'NoneType' object has no attribute 'set_color' I'm pretty sure this worked in 0.53 If you change l1 = errorbar(t, s, e, f) to l1,l2 = errorbar(t, s, e, f) you get another traceback: Traceback (most recent call last): File "errorbar_demo.pyw", line 8, in ? l1,l2 = errorbar(t, s, e, f) TypeError: unpack non-sequence This worked in 0.53 If you remove the set() call, the plot appears, but you'll see the autoscaling is wonky. I discovered these because I was trying to reproduce the plots on my python page <http://users.bigpond.net.au/gazzar/python.html> When I try to reproduce the first one, I get a traceback. If I remove the l1,e1 assignment part and the legend call, no traceback occurs. I don't understand why: The traceback produced is: Traceback (most recent call last): File "_mass_matplotlib.py", line 17, in ? l1,e1=errorbar(m, PrimeVals(t), [NegErrs(t), PosErrs(t)], fmt='r') TypeError: unpack non-sequence When I try to reproduce the second plot, the plot window appears. The scaling shown on my webpage is the autoscaling produced with 0.53 (xaxis=2->4.5, yaxis=5.?->5.32), but the autoscaling in 0.54.1a has the axis ranges of (xaxis=1->5.5, yaxis=4->6.5). Also I have to squint to see the bar-ends ;-) <- (smiley of my left eye squinting) regards and thanks for sorting out the GTKAgg stuff, Gary -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm |