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
Adding it back for two x-axis columns and y-axis rows
- Changed the code to allow for the axis sharing for the x-axis in columns mode and y-axis in rows mode
- Disabled the sharing for all mode (known bug)
- Disabled for secondary_y (due to wanting to match the testing
Updates the specific subplot trace at the given row and column with the given label, and removes the label visibility if necessary; ONLY WORKS WITH 2D CARTESIAN SUBPLOTS AKA 'xy' TYPE SUBPLOTS
can_hide_ticks : bool=can_match_axisandx_or_y=='x'# Sharing column wise can only hide x-axis; still need all of the different y-axis across plots in the same columns
# NOTE: Axes sharing is turned off for having secondary_y, so instead of shared axes getting the same axis, they get unique ones; this is to prevent a bug since the left and right side axes are different axes (and shouldn't be the same)
1031
+
can_reassign_axis : bool= (x_or_y=='x'andnotsubplot_spec['secondary_y']) # Every subplot in the same column should share the same axis if in columns mode
1032
+
can_match_axis : bool= (row!=label_row)
1033
+
can_hide_ticks : bool=can_match_axisandx_or_y=='x'# Sharing column wise can only hide x-axis; still need all of the different y-axis across plots in the same columns
can_hide_ticks : bool=can_match_axisandx_or_y=='y'# Sharing row wise can only hide y-axis; still need all of the different x-axis across plots in the same row
# NOTE: Axes sharing is turned off for having secondary_y, so instead of shared axes getting the same axis, they get unique ones; this is to prevent a bug since the left and right side axes are different axes (and shouldn't be the same)
can_hide_ticks : bool=can_match_axisandx_or_y=='y'# Sharing row wise can only hide y-axis; still need all of the different x-axis across plots in the same row
can_hide_ticks : bool=not ((row==label_rowandx_or_y=='x') or (column==label_columnandx_or_y=='y')) # The x-axis is across the first row, and the y-axis is along the first column
can_reassign_axis : bool=False# TODO:: Fix the all mode to allow for the hover to go across all of them as found in Issue #5427 [https://github.com/plotly/plotly.py/issues/5427]
can_hide_ticks : bool=not ((row==label_rowandx_or_y=='x') or (column==label_columnandx_or_y=='y')) # The x-axis is across the first row, and the y-axis is along the first column
0 commit comments