Repository navigation
Re-submission of gh-7087 with better file provenance - #7681
Conversation
|
As a reminder: the main motivation of this PR is to improve the animation performance, primarily to reduce doc CI burden. This PR does reduce the total time on the 3D animations by about 2x: Both examples run in about 12.5 seconds with these changes (excerpted from the circleci build log for this PR): vs. the current runtime for the example, which is about 25 seconds (excerpted from an arbitrary circleci build log): |
|
@rossbar maybe you could address my previous suggestions please: #7087 (comment)
|
The removal of the reference to sphinx-gallery was intentional - that's more of a tooling consideration that is more likely to be of interest to gallery authors rather than the typical reader of gallery examples. The reference to matplotlib animations is still there in the original example - the external link has just been replaced with an intersphinx link for better maintainability.
This was simply an aesthetic choice on my part. For whatever reason, the 3D spectral layout appears "compressed" in the depth dimension as opposed to the force-directed layout(s) which do a better job of recovering the "classic" dodecahedron. In practice, this doesn't matter. I will switch back to the spectral layout to avoid bikeshedding.
I'm no expert in the matplotlib animation API, but the resulting animation is consistent with the original example.
Agreed - let's leave it for a follow-up to hopefully get this one un-stuck! |
dschult
left a comment
There was a problem hiding this comment.
This looks good.
I have a suggestion for the docs intro on the second example, but change it as you see fit.
And it's too bad to have to use global node to pass the node value into the anmiation function. But I don't see an easy way around it.
Co-authored-by: Dan Schult <[email protected]>
The state of the files in this PR (as of fd27267) are identical to 8452290 in #7087 . The main difference is I've re-applied the changes in a different way to better preserve attribution and make the changes more easily reviewable in github. See this comment for details.
Now, the big payoff of all this reorg is that the content changes are now diff-able in the GitHub UI by reviewing the diff for commit fd27267 .