Skip to content

add fixed size for arrow heads in Quiver Plot #1511

Open
@gurpreet3737

Description

@gurpreet3737

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)
vector

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogfeaturesomething new

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions