datastructures-visualization icon indicating copy to clipboard operation
datastructures-visualization copied to clipboard

Improve colors of graph adjacency matrix

Open JMCanning78 opened this issue 4 years ago • 2 comments

Simply setting the bg or background attribute of buttons and text entry widgets does not seem to affect the displayed background color in the graph adjaceny matrix. I think it would look better if the vertex's color extended across a complete row. The initial implementation only shows the colors along the (static) diagonal: Screen Shot 2021-06-16 at 11 30 52 AM One way to do this would be to make a custom widget from a Label or Frame class that has bindings to handle clicks and maybe keyboard input.

JMCanning78 avatar Jun 16 '21 18:06 JMCanning78

For the weighted graph, the adjacency matrix cells are editable text entry areas. Those are showing the background color, although they are surrounded by frame of the default background. Screen Shot 2021-09-05 at 12 54 53 PM

JMCanning78 avatar Sep 05 '21 19:09 JMCanning78

This appears to be a problem specific to macOS. Here's how the adjacency matrix appears for Graph.py on Windows: Screen Shot 2021-09-30 at 12 22 05 PM There appears to be Python library that fixes this issue: https://pypi.org/project/tkmacosx/

JMCanning78 avatar Sep 30 '21 19:09 JMCanning78