I am using matplotlib in order to create a plot like this:
plot = plt.plot(data[[x]], data[[y]], 'o-')
Then, I create a interactive d3.js plot using mpld3
visualization_html = mpld3.fig_to_html(fig)
Result: Plot
Sometimes, plots are not very well readable, because the axes would need a individual and flexible streching or shrinking. There is the possibility of zooming or moving the canvas - but how could I realise streching and shrinking by user input (i.e. mouse gesture)?