Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b089cfa

Browse files
committed
Add release note
1 parent c79df0d commit b089cfa

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)

AltStyle によって変換されたページ (->オリジナル) /