You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
First of all, thanks for this great package! I recently started using plotly but was running into serious slowdowns trying to load simulated waveforms with large numbers of points. This is perfect for quickly showing the plots, but still being able to dive down and check low level details.
I noticed something while using it, however, which is that when zooming in on line plots the lines will cutoff after the last visible data point:
This behavior makes sense when you consider that the resampled data effectively ends there, but in my opinion it would look nicer and feel more natural if the line ends didn't disappear and reappear depending on the exact zoom coordinates. In my case the waveform data are generated by a simulator with a dynamic time step, making the points somewhat sparse when nothing is happening, which can lead to large "missing ends" when zooming.
I think this can be improved by adding the 2 points just before and after the zoom window before resampling, which shouldn't add much overhead. I tested the idea with a simple dynamic patch that tweaks the start and end indexes before they get sent to the sampler and it seems to work well in my limited testing, but I haven't gotten to know your package well enough to know if there is a more appropriate way to do this or other unintended consequences.
Here's the code for my little hack (which probably won't handle any special cases):
Thank you for submitting this feature request.
I can certainly see the added value of your proposed method, and will therefore look into incorporating this.
Class inheritance, as proposed b you, certainly seem like a good start! :)
Out of interest, how do you style your plotly figures like that, they look very neat! :)
I setup a plotly template that is mostly mimicking the defaults for matplotlib which I've gotten pretty used to, with the added gridlines. To apply it to all plots automatically I just updated the default template to add my changes on top of the standard plotly template.
Hi,
First of all, thanks for this great package! I recently started using plotly but was running into serious slowdowns trying to load simulated waveforms with large numbers of points. This is perfect for quickly showing the plots, but still being able to dive down and check low level details.
I noticed something while using it, however, which is that when zooming in on line plots the lines will cutoff after the last visible data point:
This behavior makes sense when you consider that the resampled data effectively ends there, but in my opinion it would look nicer and feel more natural if the line ends didn't disappear and reappear depending on the exact zoom coordinates. In my case the waveform data are generated by a simulator with a dynamic time step, making the points somewhat sparse when nothing is happening, which can lead to large "missing ends" when zooming.
I think this can be improved by adding the 2 points just before and after the zoom window before resampling, which shouldn't add much overhead. I tested the idea with a simple dynamic patch that tweaks the start and end indexes before they get sent to the sampler and it seems to work well in my limited testing, but I haven't gotten to know your package well enough to know if there is a more appropriate way to do this or other unintended consequences.
Here's the code for my little hack (which probably won't handle any special cases):
and the same waveform as before:
The text was updated successfully, but these errors were encountered: