-
-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] Ability to resize the arrow heads in e.g. quiver plots #4881
Comments
I really suggest this |
You are welcome to open a PR 🙂 |
It seems to me that |
True, but that is only used, if the backend supports the @recipe function f(::Type{Val{:quiver}}, x, y, z) # COV_EXCL_LINE
@nospecialize
if :arrow in supported_attrs()
quiver_using_arrows(plotattributes)
else
quiver_using_hack(plotattributes)
end
()
end which GR currently does not: Plots.jl/PlotsBase/ext/GRExt.jl Line 25 in da79316
That is why it uses the other implementation |
Okay, so the intended API from the Plots side is to be able to call e.g. quiver(xs, ys; quiver=(dxs,dys), arrow = arrow(0.5))
quiver(xs, ys; quiver=(dxs,dys), arrow = arrow(0.5, 0.3)) To set the style of the arrows. The arrow properties are specified by an Plots.jl/PlotsBase/src/Arrows.jl Line 8 in da79316
However, the GR backend currently only uses Plots.jl/PlotsBase/ext/GRExt.jl Line 2024 in da79316
So, IMO the backend would need to be changed to take |
I see. But it seems like the function utilizes From the GR backend https://gr-framework.org/_modules/gr.html#setarrowstyle, it seems like you can't set the arrow head to automatically scale. But there is also a setarrowsize(size). Maybe that's worth trying? I'm sorry but I'm busy these couple of weeks so I can't dive into GR backend at this point. |
I have been trying to figure out how to do this (trying tons of various options), but currently does not seem to be possible in Plots.
It would be useful to be able to resize the arrowheads in e.g. quiver plots. E.g. for
Especially when the arrow lines are small, the arrowheads looks really weird and ugly.
The text was updated successfully, but these errors were encountered: