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

Skip to content

Commit 69ca922

Browse files
DOC: Fix rendering of quiver documentation (#31252)
1 parent ffb2e6e commit 69ca922

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

lib/matplotlib/quiver.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import matplotlib.transforms as transforms
2828

2929

30-
_quiver_doc = """
30+
_quiver_doc = r"""
3131
Plot a 2D field of arrows.
3232
3333
Call signature::
@@ -138,15 +138,12 @@
138138
The arrow length unit is given by the *scale_units* parameter.
139139
140140
scale_units : {'width', 'height', 'dots', 'inches', 'x', 'y', 'xy'}, default: 'width'
141+
The physical image unit, which is used for rendering the scaled arrow data U, V.
141142
142-
The physical image unit, which is used for rendering the scaled arrow data *U*, *V*.
143-
144-
The rendered arrow length is given by
145-
146-
length in x direction = $\\frac{u}{\\mathrm{scale}} \\mathrm{scale_unit}$
147-
148-
length in y direction = $\\frac{v}{\\mathrm{scale}} \\mathrm{scale_unit}$
143+
The rendered arrow length is given by:
149144
145+
- length in x direction = :math:`\frac{u}{\mathrm{scale}}\,\mathrm{scale\_unit}`
146+
- length in y direction = :math:`\frac{v}{\mathrm{scale}}\,\mathrm{scale\_unit}`
150147
For example, ``(u, v) = (0.5, 0)`` with ``scale=10, scale_units="width"`` results
151148
in a horizontal arrow with a length of *0.5 / 10 * "width"*, i.e. 0.05 times the
152149
Axes width.

0 commit comments

Comments
 (0)