Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d69a520

Browse files
committed
Add release note
1 parent eabbedf commit d69a520

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Add ``U``, ``V`` and ``C`` setter to ``Quiver``
2+
-----------------------------------------------
3+
4+
The ``U``, ``V`` and ``C`` values of the `~matplotlib.quiver.Quiver`
5+
can now be changed after the collection have been created.
6+
7+
.. plot::
8+
:include-source: true
9+
10+
fig, ax = plt.subplots()
11+
X = np.arange(-10, 10, 1)
12+
Y = np.arange(-10, 10, 1)
13+
U, V = np.meshgrid(X, Y)
14+
M = np.hypot(U, V)
15+
qc = mquiver.Quiver(
16+
ax, X, Y, U, V, M
17+
)
18+
19+
qc.set_U(U/5)
20+
21+
ax.add_collection(qc)
22+
ax.autoscale_view()

0 commit comments

Comments
 (0)