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

Skip to content

Commit a1bf65c

Browse files
committed
Tweak barbs docstring to point to the appropriate example script.
svn path=/trunk/matplotlib/; revision=6307
1 parent f024adf commit a1bf65c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

lib/matplotlib/axes.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5356,13 +5356,19 @@ def quiver(self, *args, **kw):
53565356
quiver.__doc__ = mquiver.Quiver.quiver_doc
53575357

53585358
def barbs(self, *args, **kw):
5359+
"""
5360+
%s
5361+
**Example:**
5362+
5363+
.. plot:: mpl_examples/pylab_examples/barb_demo.py
5364+
"""
53595365
if not self._hold: self.cla()
53605366
b = mquiver.Barbs(self, *args, **kw)
53615367
self.add_collection(b)
53625368
self.update_datalim(b.get_offsets())
53635369
self.autoscale_view()
53645370
return b
5365-
barbs.__doc__ = mquiver.Barbs.barbs_doc
5371+
barbs.__doc__ = cbook.dedent(barbs.__doc__) % mquiver.Barbs.barbs_doc
53665372

53675373
def fill(self, *args, **kwargs):
53685374
"""

0 commit comments

Comments
 (0)