Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eabbedf commit d69a520Copy full SHA for d69a520
doc/users/next_whats_new/add_Quiver_setters.rst
@@ -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