AndrewRook / ptplot

Easily make interactive plots of player-tracking data
GNU General Public License v3.0
11 stars 3 forks source link

Figure out a good way to render text in data units #20

Open AndrewRook opened 3 years ago

AndrewRook commented 3 years ago

Right now bokeh's text glyphs only work in screen units, not data units. However, there are several things that ptplot does or will support that should have text in data units, like football yardline numbers or jersey numbers. Right now ptplot uses a combination of kludges — making a static image with matplotlib for yardlines and having an empirical heuristic for jersey numbers (although the latter doesn't handle the case when a user wants to zoom in...).

Couple of possible options for solving this:

AndrewRook commented 3 years ago

For the callback approach, see here for some implementation ideas.