
Hi,
I have an time series of 5 millions points. In order to display it quickly when I handle it (zoom, pan), this time series is resampled according to xmin, xmax and plot_width parameters with a code in Python.
If I fix the “plot_width” parameter in the figure, the resampling works fine but the figure is not responsive. And if I use “stretch_width” as value of “sizing_mode” parameter, the figure is responsive but the resampling algorithm is wrong because I am not able to get the real plot_width. If I cannot get the real plot_width, I would like to get the width of the browser’s window but I do not find the way to do it.
So my question is : is it possible to get the plot_width of a figure when sizing_mode=stretch_width or the width of the browser’s window ?
Thanks a lot,
Jean-Christophe

but not the first time when the plot is created. Better than nothing