Corentin Cadiou
Corentin Cadiou
Oh yep, that looks like a bug! I am quite oversubscribed but I'd be happy to review a pull request should you find time to fix this :)
So it turns out I don't have much time to track that issue down. This is a new-contributor friendly bug, so please (anyone) feel free to fix!
I'd be happy for someone to review the PR once the comments have been fixed (this one, or an offspring of it retaining authorship to @pevoz23) but I unfortunately do...
There isn't anything special about picking equally spaced values in the x direction vs the y direction, so it's just a matter of someone actually implementing it :) 23 Feb...
The current code is specialized to the case where alignment happens along the x axis. That could be parameterized to either operate on x/y. The entry point is around https://github.com/cphyc/matplotlib-label-lines/blob/5881e62f0010ec209d980dc0ff1563cd5c122f92/labellines/line_label.py#L27.
Alternatively, I can recommend installing yt astro analysis through conda (assuming you use conda!). This will take care of all the linking etc. properly.