work on logplot