changed xlog,ylog to use True/False instead of 0 or 1