From: danny s. <dan...@ya...> - 2004-04-29 17:22:19
|
I'm a new user to matplotlib and I don't believe that legends play nicely with errorbars. My guess is that each errorbar counts as a seperate graph, which screws up the counting. Here's some code. thanks, Danny ##################################################### from matplotlib.matlab import * t = arange(0.1, 4, 0.1) s = exp(-t) e = 0.1*abs(randn(len(s))) figure(1) errorbar(t, s, e, fmt='bo-') errorbar(t, s+1, e, fmt='ro-') xlabel('Distance (m)') ylabel('Height (m)') title('Mean and standard error as a function of distance') legend(('legend 1', 'legend 2')) show() ##################################################### __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover |