Skip to content

added 3d and animation to plot_greedy_coloring.py - #7090

Merged
dschult merged 5 commits into
networkx:mainfrom
lobpcg:patch-2
Dec 6, 2023
Merged

dschult merged 5 commits into
networkx:mainfrom
lobpcg:patch-2

Conversation

@lobpcg

@lobpcg lobpcg commented Nov 6, 2023

Copy link
Copy Markdown
Contributor

added 3d and animation to plot_greedy_coloring.py gallery example following and enhancing examples in #7087

@lobpcg

lobpcg commented Nov 7, 2023

Copy link
Copy Markdown
Contributor Author

ready for review and merge, please

@lobpcg

lobpcg commented Dec 5, 2023

Copy link
Copy Markdown
Contributor Author

@MridulS maybe you could please review this PR as well? It's similar in plotting to the one you have just merged but much simpler - nothing but new plots

@MridulS MridulS left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@dschult dschult left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree... This looks good.
Thanks @lobpcg

@dschult
dschult merged commit 07fc924 into networkx:main Dec 6, 2023
@jarrodmillman jarrodmillman added this to the 3.3 milestone Dec 6, 2023
@lobpcg
lobpcg deleted the patch-2 branch December 6, 2023 15:49
@rossbar

rossbar commented Dec 7, 2023

Copy link
Copy Markdown
Contributor

I know this has been merged already, but I think we should resist the temptation to "3d-itize" more examples. For example, the above added code does not actually affect the gallery (sphinx gallery automatically uses the first plot in an example as the thumbnail). It also makes the example itself much longer, adding a lot of code related to plotting/rendering that doesn't have anything to do with greedy coloring.

That's not to say these 3D animations aren't valuable contributions @lobpcg (thanks again)! My vote would just be to try to focus efforts on 3D visualization in the "3D drawing" category of the gallery.

cvanelteren pushed a commit to cvanelteren/networkx that referenced this pull request Apr 22, 2024
* added 3d and animation plot_greedy_coloring.py

* lint plot_greedy_coloring.py

* lint plot_greedy_coloring.py

* lint plot_greedy_coloring.py

* extra axis off before everything plot_greedy_coloring.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

5 participants