-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
add fixed size for arrow heads in Quiver Plot #1511
Comments
Would unit-vectoring and then multiplying the barbs plotly.py/packages/python/plotly/plotly/figure_factory/_quiver.py Lines 177 to 197 in ce0ed07
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While plotting two or more vectors using quiver plots arrows heads are scaled with respect to barb length. No option for having arrow heads of fixed size as depicted in attached file. Please add option for the same.Here is the code:
from plotly import tools
from plotly.offline import download_plotlyjs, plot, iplot, init_notebook_mode
import plotly.graph_objs as go
import plotly.figure_factory as ff
import numpy as np
init_notebook_mode(connected=True)
layout=go.Layout(xaxis=dict(range=[-10,10],dtick=1),
yaxis=dict(range=[-10,10],dtick=1, ticks='outside'),
width=900, height=900)
v=np.array([[1,1],[-2,2], [4,7]])

x, y = [0,0,0], [0,0,0]
fig= ff.create_quiver(x, y, v[:,0], v[:,1], scale=1)
fig.layout.update(layout)
iplot(fig)
The text was updated successfully, but these errors were encountered: