You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
make length_includes_head available for arrow #346
I really appreciate the work of this library and really like using it.
I started to draw arrows, but noticed that I cannot easily draw them from start to finish. Looking whether this is an issue with matplotlib or matplotlibcpp I came across matplotlib/matplotlib#12768. And it appears that there is a suitable option in matplotlib, which is not accessible in matplotlibcpp: length_includes_head
Could this option made available in matplotlibcpp? Maybe one could implement the kwargs as it is for the plot function itself.
Thanks for the request! This fits the project well. plt::arrow should accept a trailing const std::map<std::string, std::string>& keywords = {} like plot, scatter and friends, forwarded as kwargs, so length_includes_head and any other FancyArrow option can be passed through. A PR that adds that parameter without changing the existing positional arguments, plus a small example, would be welcome. Note that keyword values are passed to Python as strings, so "False" would be truthy; the PR should handle boolean values, e.g. by converting "True"/"False" or by adding a dedicated bool parameter.
🤖 This triage was made by the project's automated governance process. See the README for details.
Activity
lava commentedon Nov 4, 2026
Thanks for the request! This fits the project well.
plt::arrowshould accept a trailingconst std::map<std::string, std::string>& keywords = {}likeplot,scatterand friends, forwarded as kwargs, solength_includes_headand any otherFancyArrowoption can be passed through. A PR that adds that parameter without changing the existing positional arguments, plus a small example, would be welcome. Note that keyword values are passed to Python as strings, so"False"would be truthy; the PR should handle boolean values, e.g. by converting"True"/"False"or by adding a dedicatedboolparameter.🤖 This triage was made by the project's automated governance process. See the README for details.