Closed ismaelresp closed 7 months ago
For example: worksheet1.conditional_format('$B$3:$B$14,$C$4:$C$14',{'type': '2_color_scale','min_color': '#FFFFFF', 'max_color': '#999999'})
worksheet1.conditional_format('$B$3:$B$14,$C$4:$C$14',{'type': '2_color_scale','min_color': '#FFFFFF', 'max_color': '#999999'})
Useful for color scaling a symmetric matrix cut in half because showing the whole matrix is redundant. For example, a matrix of distances.
You are in luck. That feature is already there via the multi_range option: https://xlsxwriter.readthedocs.io/working_with_conditional_formats.html#multi-range
multi_range
It works! Many thanks.
Feature Request
For example:
worksheet1.conditional_format('$B$3:$B$14,$C$4:$C$14',{'type': '2_color_scale','min_color': '#FFFFFF', 'max_color': '#999999'})
Useful for color scaling a symmetric matrix cut in half because showing the whole matrix is redundant. For example, a matrix of distances.