Add support for coin (and needle) with grids

@wei2912 please review, thanks!
I'm not sure how to plot graphs with 2 different gaps, so @wei2912 must do it.