New function to draw log graph with custom characters