Fix logticks color (#767)

This fixes #767. I adapted some of the code from `annotate`. I'm not sure this is the cleanest way to do it, but it works.