jsexauer / networkx_viewer

Interactive GUI for NetworkX graphs
GNU General Public License v3.0
137 stars 27 forks source link

nodes ignore stacking order and overlap anything #23

Open adonisra opened 6 months ago

adonisra commented 6 months ago

Here is the source code to try: https://sourceb.in/zjLpqqytP4 and the output: Screenshot_200.png

As you can see, the nodes cover up the sidebar (edges however do not) even though in the source code the sidebar is placed after the GraphCanvas.

adonisra commented 6 months ago

I assume the problem is that currently nodes are being drawn within a window: https://github.com/jsexauer/networkx_viewer/blob/master/networkx_viewer%2Fgraph_canvas.py#L205-L206 which is also why oval objects have a white background instead of a transparent one