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

Skip to content

Commit 76da091

Browse files
committed
Move unrendered docstrings to private attributes.
Note that using `@property` to deprecate the attributes doesn't really help as we'd want something that also returns the string value when accessed from a class rather than from an instance; while it is technically possible to write such a descriptor that seems a bit overkill...
1 parent c96014f commit 76da091

File tree

5 files changed

+350
-350
lines changed

5 files changed

+350
-350
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6032,7 +6032,7 @@ def contour(self, *args, **kwargs):
60326032
contours = mcontour.QuadContourSet(self, *args, **kwargs)
60336033
self.autoscale_view()
60346034
return contours
6035-
contour.__doc__ = mcontour.QuadContourSet.contour_doc
6035+
contour.__doc__ = mcontour.QuadContourSet.__init__.__doc__
60366036

60376037
@_preprocess_data()
60386038
def contourf(self, *args, **kwargs):
@@ -6042,7 +6042,7 @@ def contourf(self, *args, **kwargs):
60426042
contours = mcontour.QuadContourSet(self, *args, **kwargs)
60436043
self.autoscale_view()
60446044
return contours
6045-
contourf.__doc__ = mcontour.QuadContourSet.contour_doc
6045+
contourf.__doc__ = mcontour.QuadContourSet.__init__.__doc__
60466046

60476047
def clabel(self, CS, *args, **kwargs):
60486048
return CS.clabel(*args, **kwargs)
@@ -7856,11 +7856,11 @@ def violin(self, vpstats, positions=None, vert=True, widths=0.5,
78567856

78577857
def tricontour(self, *args, **kwargs):
78587858
return mtri.tricontour(self, *args, **kwargs)
7859-
tricontour.__doc__ = mtri.TriContourSet.tricontour_doc
7859+
tricontour.__doc__ = mtri.TriContourSet.tricontour.__doc__
78607860

78617861
def tricontourf(self, *args, **kwargs):
78627862
return mtri.tricontourf(self, *args, **kwargs)
7863-
tricontourf.__doc__ = mtri.TriContourSet.tricontour_doc
7863+
tricontourf.__doc__ = mtri.TriContourSet.tricontour.__doc__
78647864

78657865
def tripcolor(self, *args, **kwargs):
78667866
return mtri.tripcolor(self, *args, **kwargs)

0 commit comments

Comments
 (0)