Description:
This PR introduces enhancements and bug fixes to Shapash’s explainability quality graphs, improving flexibility in visual settings and resolving color display issues.
Changes Made
Customizable Graph Dimensions
Context: Previously, the explainability quality graphs had fixed dimensions, limiting layout customization.
Changes: Added height and width parameters to pairwise_consistency_plot and associated methods, enabling users to specify graph size. Default values are set to height="auto" and width=1000, maintaining backward compatibility.
Improved Title Alignment
Context: The title was not properly aligned, impacting readability.
Changes: Adjusted title placement using a line break <br> and improved styling for better positioning and readability.
Color Palette Selection Fix
Context: An error in color palette selection caused inconsistent colors in the graphs, affecting interpretability.
Changes: Corrected the palette selection logic to ensure the chosen colors match the selected palette, ensuring consistent color display.
Additional Changes
Updated docstrings in affected methods to document the new parameters.
Modified internal functions to pass height and width arguments where needed.
Adjusted layout settings in _update_pairwise_consistency_fig to integrate the new dimensions.
Testing and Validation
Added unit tests for customizable height and width values to ensure graph resizing works as expected.
Verified correct title alignment in various layouts.
Checked color palette selection to confirm accurate color rendering for different palettes.
Context and Impact
These updates make Shapash’s explainability quality graphs more adaptable to different visual needs and ensure clarity through consistent color display and improved title readability.
Fixes #610
Description:
This PR introduces enhancements and bug fixes to Shapash’s explainability quality graphs, improving flexibility in visual settings and resolving color display issues.
Changes Made
Customizable Graph Dimensions
height
andwidth
parameters topairwise_consistency_plot
and associated methods, enabling users to specify graph size. Default values are set toheight="auto"
andwidth=1000
, maintaining backward compatibility.Improved Title Alignment
<br>
and improved styling for better positioning and readability.Color Palette Selection Fix
Additional Changes
height
andwidth
arguments where needed._update_pairwise_consistency_fig
to integrate the new dimensions.Testing and Validation
height
andwidth
values to ensure graph resizing works as expected.Context and Impact
These updates make Shapash’s explainability quality graphs more adaptable to different visual needs and ensure clarity through consistent color display and improved title readability.