Visualizing time-series interactively in Ipython notebook

I have a 3D matrix and a 2D matrix which is a nanmean of 3D matrix.

2Dmatrix = np.nanmean(3Dmatrix, axis=2)

I am visualizing my 2D matrix using matplotlib

plt.imshow(2Dmatrix)
plt.show()

Now I want the functionality such that whenever I click on the 2D matrix, the corresponding time series along axis 2 should get loaded and I should be able to plot it on the fly. Eg: If I click on the coordinate (200,300) in my 2Dmatrix then 3Dmatrix[200][300] should get plotted. I want to see and plot interactively a lot of time series and hence would like to know is there any interactive way in PLOTLY to do this ? Thanks in advance.

Best for #api:python

1 Like

cross reference: Visualizing time series interactively