-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
facet_row_spacing modified in a callback for px.imshow changes the figure dict but not the plot #4794
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
Comments
@michaelbabyn noticed this:
|
I will also note that this still showing up when my cache is disabled. |
Yeah, those images also show up in a plotly.js only example (https://codepen.io/michaelbabyn/pen/OJKbBXo) which works properly so I think I was too quick to blame the issue on caching |
Note: this is also happening with |
I wonder if this is related to plotly/dash#2405 |
Another data point for debugging: when |
Looks like this line in plotly.js is where the domain is set incorrectly after the first render. @alexcjohnson wrote up some of the reasoning behind these lines in this PR comment but I'm still trying to wrap my head around the solution here |
Note: this change fixes the issue in this particular case. Not sure if it causes issues elsewhere:
|
@alexcjohnson I'm wondering perhaps in |
I’m not sure what the right solution will be, @archmoj may be on the right track or maybe something simpler like plotly/plotly.js#7274 will work. As I said in a DM to @marthacryan, in addition to fixing the bug here:
And to be clear, that height or width change should be via |
Interesting update on the debugging here: we've discovered that this bug does not occur when |
Description of the issue
facet_row_spacing
argument.facet_col
,facet_col_wrap
andfacet_row_spacing
.facet_row_spacing
gets adjusted for the scatterplot but always remains the same (the initial value) for the imshow.JS code to copy in the console to get the plotly crowbar:
Screen.Recording.2024-10-11.at.13.56.32.mov
Things I have not tested
facet_row
+facet_col_spacing
too.MRE
Python 3.10
plotly==5.24.1
dash==2.18.1
plotlyjs==2.35.2 (according to the modebar)
The text was updated successfully, but these errors were encountered: