Use plotBar() for the lossstreak histogram. There are several examples, for instance the RandomWalk.c script.