*Sharing code for research publications*
Here's the process that I've ended up with, through various collaborators like Robert Forkel, @simongreenhill.bsky.social , Stephen Francis Mann and others.
Not perfect perhaps, but works pretty ok.
A student asked, so I made this illustration.