fixed bug where plotting function was only chosen as errorbar when yerr was specified (not when only xerr was)