laserson / squarify

Pure Python implementation of the squarify treemap layout algorithm
Other
293 stars 36 forks source link

Automated text coloring in plot function #33

Closed dbabbitt closed 1 year ago

dbabbitt commented 2 years ago

This takes the background color of each rectangle and decides if the text would look better being black or white, and sets it accordingly.

laserson commented 2 years ago

Thanks for the contribution @dbabbitt! A lot of this diff seems to be unrelated to the new functionality you're proposing. Do you think you could remove those unrelated changes (e.g., formatting). Also, please run the code through the black formatter first.

laserson commented 1 year ago

Closing this as stale