I've been trying to find a way to make Seaborn and Vincent interactive so that I can, for example, zoom in/out in a specific area of the plot in real time. Is this possible to do? Alternatively, are there other recommended libraries (that are not cloud-based services) that work well for visualizing time series data?
Asked
Active
Viewed 1.2k times
12
-
`seaborn` already is interactive (it's matplotlib behind-the-scenes). How are you using it? – Joe Kington Jul 06 '15 at 13:53
-
1You might want to take a look at bokeh which has an interactive bent and plays well with pandas – JohnE Jul 06 '15 at 15:40
-
You can also use [mpld3](http://mpld3.github.io/) – mwaskom Jul 06 '15 at 15:53
1 Answers
11
If this is for your own benefit, rather than something you need to show to others, you can use IPython notebooks and the %matplotlib nbagg
backend, at least for Seaborn, e.g.:
%matplotlib nbagg
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 50, 100)
y = x**(0.5)
plt.plot(x, y)
If you don't already have IPython etc. set up, you can quickly test this out by creating a new notebook at try.jupyter.org, pasting the code into a cell, and hitting Shift + Enter
to run. Since this is running on a free VM it will be slow, running the notebook locally will mean panning/zooming is much smoother.

Marius
- 58,213
- 16
- 107
- 105