<jupyter_start><jupyter_text>New to Plotly?Plotly's Python library is free and open source! [Get started](https://plot.ly/python/getting-started/) by downloading the client and [reading the primer](https://plot.ly/python/getting-started/).You can set up Plotly to work in [online](https://plot.ly/python/getting-started/initialization-for-online-plotting) or [offline](https://plot.ly/python/getting-started/initialization-for-offline-plotting) mode, or in [jupyter notebooks](https://plot.ly/python/getting-started/start-plotting-online).We also have a quick-reference [cheatsheet](https://images.plot.ly/plotly-documentation/images/python_cheat_sheet.pdf) (new!) to help you get started!  Version CheckPlotly's python package is updated frequently. Run `pip install plotly --upgrade` to use the latest version.<jupyter_code>import plotly
plotly.__version__<jupyter_output><empty_output><jupyter_text>Simple Quiver Plot With Points<jupyter_code>import plotly.plotly as py
import plotly.tools as tls
from plotly import figure_factory as ff

import numpy as np
import matplotlib.pyplot as plt

x=[-.7, .75]
y=[0, 0]
plt.scatter(x,y, marker='o', color="r")
plt.title('Quiver Plot with Points')
fig = plt.gcf()

plotly_fig = tls.mpl_to_plotly(fig)


x,y = np.meshgrid(np.arange(-2, 2, .2),
                  np.arange(-2, 2, .25))
z = x*np.exp(-x**2 - y**2)
v, u = np.gradient(z, .2, .2)

quiver_fig = ff.create_quiver(x, y, u, v,
                       scale=.25,
                       arrow_scale=.4,
                       name='quiver',
                       line=dict(width=1))

quiver_fig.add_trace(plotly_fig['data'][0])
py.iplot(quiver_fig, filename='mpl-quiver-with-points')<jupyter_output><empty_output><jupyter_text>Quiver Plot With Custom Arrow Size And Color<jupyter_code>import plotly.plotly as py
import plotly.tools as tls
from plotly import figure_factory as ff

import numpy as np
import matplotlib.pyplot as plt

x=[-.7, .75]
y=[0, 0]
plt.scatter(x,y, marker='o', color="r")
plt.title('Quiver Plot with Custom Arrow Size')
fig = plt.gcf()

plotly_fig = tls.mpl_to_plotly(fig)


x,y = np.meshgrid(np.arange(-2, 2, .2),
                  np.arange(-2, 2, .25))
z = x*np.exp(-x**2 - y**2)
v, u = np.gradient(z, .2, .2)

quiver_fig = ff.create_quiver(x, y, u, v,
                       scale=.25,
                       arrow_scale=.8, # Sets arrow scale
                       name='quiver',
                       angle=np.pi/4,
                       line=dict(width=1))

quiver_fig.add_trace(plotly_fig['data'][0])
quiver_fig['data'][0]['line']['color'] = 'rgb(0,255,0)'

py.iplot(quiver_fig, filename='mpl-quiver-with-custom-arrow-size')<jupyter_output><empty_output><jupyter_text>ReferenceSee https://plot.ly/python/reference/ for more information and chart attribute options!<jupyter_code>from IPython.display import display, HTML

display(HTML('<link href="//fonts.googleapis.com/css?family=Open+Sans:600,400,300,200|Inconsolata|Ubuntu+Mono:400,700" rel="stylesheet" type="text/css" />'))
display(HTML('<link rel="stylesheet" type="text/css" href="http://help.plot.ly/documentation/all_static/css/ipython-notebook-custom.css">'))

! pip install git+https://github.com/plotly/publisher.git --upgrade
import publisher
publisher.publish(
    'quiver_plots.ipynb', 'matplotlib/quiver-plots/', 'Quiver Plots',
    'How to make a quiver plot in Matplotlib Python. A quiver plot displays velocity vectors as arrows.',
    title = 'Quiver Plots | Plotly',
    has_thumbnail='true', thumbnail='thumbnail/quiver-plot.jpg',
    language='matplotlib',
    page_type='example_index',
    display_as='scientific', order=22, ipynb='~notebook_demo/249')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14800759013282733, 'fraction_numerical': 0.01951748441312009, 'mean_word_length': 3.9265687583444593, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '46731', 'license': 'CC-BY-3.0', 'n_tokens_mistral': 1368, 'n_tokens_neox': 1274, 'n_words': 269, 'path': '_posts/matplotlib/quiver-plots/quiver_plots.ipynb', 'repo_name': 'bmb804/documentation', 'size': '3689'}