Page 1 of 1
Coding a Shot Chart
Posted: Mon Mar 12, 2012 6:54 pm
by brekucki
Hi,
I'm currently trying to create a shot chart like the one found
here. Does anyone have some tips on how to layer the color-coded squares onto a shot chart? Right now, I'm using Python but advice for any programming language would be appreciated. Thanks.
Re: Coding a Shot Chart
Posted: Mon Mar 12, 2012 8:42 pm
by EvanZ
If you go to this thread:
viewtopic.php?f=2&t=7892
The author of that study might answer your question directly.
Re: Coding a Shot Chart
Posted: Sat Mar 17, 2012 7:38 pm
by kpascual
I guess it depends on what part of the coding problem you're trying to solve. The general idea of plotting a shot chart is pretty straightforward: 1) get the x-y coordinates 2) place a square at that x-y coordinate 3) color-code it based on some data.
Which part do you need help with? While I do know Python, I'm not too familiar with how to plot with it (like with Python Image Library?). I happen to use a combination of SVG and Javascript to do this. You can also do this within something like GIMP that has a Python interface that lets you organize layers of blocks on an image.