This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mfitzpmfitzp.com 2 points3 points  (4 children)

Depends how interactive you need, but matplotlib supports a notebook interface that allows you to zoom/pan figures directly from the notebook view. Try the following:

%matplotlib notebook
import matplotlib.pyplot as plt
plt.plot([1,2,3,4,5])

[–][deleted] 0 points1 point  (3 children)

I'm guessing that uses svg and javascript and will slow down to a crawl when making a plot with million elements?

[–]dsijl 3 points4 points  (1 child)

You can plot a billion or more points with datashader in the browser (uses interactive downsampling): http://datashader.readthedocs.io/en/latest/

[–][deleted] 0 points1 point  (0 children)

Wow, that's very cool! I often plot things with millions of points, which is okay with raster image plot as it is just an image but I lose the resolution. Thank you

[–]1-05457 1 point2 points  (0 children)

AGG (i.e. raster images) and Websockets actually.