-1

Is it possible to implement the following style of graph in Python?

http://fivethirtyeight.com/features/every-nba-teams-chance-of-winning-in-every-minute-across-every-game/

I specifically require being able to hover (or click) on a data point and the whole line is then highlighted while the others are made dull.

4
  • yes it is possible...... Check eg. matplotlib.org Commented Feb 23, 2015 at 9:26
  • I'm not sure but I don't think matplotlib has mouse hover kind of feature Commented Feb 23, 2015 at 9:27
  • 1
    Yes, with Bokeh. This question should never have been closed (@vaultah, Jack Maney, l4mpi, Burhan Khalid, Odedra). The question was clearly asking how to get the interactivity. The question is well-defined, on-topic and not "too broad". +1 Commented Mar 23, 2015 at 6:26
  • Dan: do you want this in the browser, or in a standalone Python session? Commented Mar 23, 2015 at 6:31

1 Answer 1

2

Yes! Matplotlib is probably your best bet, although there are also a lot of newer libraries such as Bokeh with similar functionalities.

See this question for more detail on how to use Matplotlib and this one, for a better hover implementation.

Here's a great walk-through of a variety of options for making this sort of graph: http://nbviewer.ipython.org/gist/msund/11349097

Sign up to request clarification or add additional context in comments.

2 Comments

Disagree. For interactive and on the web Bokeh is almost certainly a better choice.
Yes, now that Bokeh has had two years to mature, that is probably true.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.