-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layout axes remain the same after update_plot methods is called #904
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #904 +/- ##
==========================================
- Coverage 67.15% 67.09% -0.06%
==========================================
Files 51 51
Lines 4707 4711 +4
==========================================
Hits 3161 3161
- Misses 1546 1550 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hi @AndresOrtegaGuerrero , should we reset the axis range every time the plot updates? Maybe in some cases, when we change the plot setting, the axis range should be updated. Another issue (not related to this PR), when I change the flat parameters, the screen flash a lot: qeapp-flat-bands-falsh.mp4In the flat band case, is it possible to update the data instead of re-drawing the plot? |
To answer the first question , we have the reset axis button from plotly that does this function. The second question , we do a replot since we have to widget a BandsPdosWidget (meant for qe app) and the BandsPdosPlotly , that kinda resemble the bandsplot-widget from the past that just receives a dictionary with the info. For a new thinckness i need to re-loop and re compute contribution per band. For the flashing , i think is that each time we mode the widget it is triggering the replot .... maybe i could add like a time to react ? |
If the number of data is the same, then it is possible to only update the data instead of re-plot the image. I did this in the XPS plot, as shown here:
You can look at it in the future when you have time. |
@superstar54 Thank you! , regarding the flashing , what about adding like a debounce of 0.5 sec (or less) ? Regarding the updating the plot , so i will try to find a way to avoid repeating a re-loops. Maybe in a different PR ? |
Hi @AndresOrtegaGuerrero , yes, Okay to merge the PR. You can implement the update in a future PR when you have time. |
…alab#904) * increasing fat_bands_slide/ removing spline
This address this issue #903