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

Skip to content

Commit 1057eed

Browse files
committed
Merge pull request #1067 from mdboom/doc_multi_version
Support multi-version documentation on the website
2 parents c9c108e + fe2e95d commit 1057eed

18 files changed

+557
-1548
lines changed

boilerplate.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
_fmtplot = """\
2121
# This function was autogenerated by boilerplate.py. Do not edit as
2222
# changes will be lost
23-
@autogen_docstring(Axes.%(func)s)
23+
@_autogen_docstring(Axes.%(func)s)
2424
def %(func)s(%(argspec)s):
2525
%(ax)s = gca()
2626
# allow callers to override the hold state by passing hold=True|False
@@ -246,3 +246,12 @@ def %(name)s():
246246
for name in cmaps:
247247
print _fmtcmap%locals()
248248

249+
print "# This function was autogenerated by boilerplate.py"
250+
print "def _colormaps():"
251+
print " return ["
252+
for name in cmaps:
253+
print " %r," % name
254+
print " ]"
255+
256+
print
257+
print "_setup_pyplot_info_docstrings()"

0 commit comments

Comments
 (0)