graph - Using BOTH error bars and upper/lower limits in python -


warning: new @ python , know little.

i trying graph (x,y) error bars in both directions. able achieve this, using:

from matplotlib import pyplot  pyplot.errorbar(x,y,yerr=y_error,xerr=xerror) 

however, error in either x or y zero. in case, want program create upper (x) , lower (y) limit data points. actual value of limit doesn't matter; needs show such.

i've found things suggesting add 'lolim' , 'uplim' pyplot.errorbar, it's not working. need loop or add in lower/upper limits?

thanks.

suggest simple solution so:

all non-limits:

ind1 = y_error*x_error!=0 pyplot.errorbar(x[ind1],y[ind1],yerr=y_error[ind1],xerr=xerror[ind1],fmt='k+') 

x-limits:

ind2 = x_error==0   pyplot.errorbar(x[ind2],y[ind2],yerr=y_error[ind2],fmt='k<') 

y-limits:

ind3 = y_error==0   pyplot.errorbar(x[ind3],y[ind3],xerr=x_error[ind3],fmt='kv') 

i'll leave decide cases both x , y limits.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -