@@ -193,6 +193,7 @@ def uninstall_repl_displayhook():
193
193
draw_all = _pylab_helpers .Gcf .draw_all
194
194
195
195
_ENSURE_AX_DOC = """
196
+
196
197
This function has been decorated by pyplot to have
197
198
an implicit reference to the `plt.gca()` passed as the first argument.
198
199
@@ -206,6 +207,7 @@ def uninstall_repl_displayhook():
206
207
207
208
208
209
_ENSURE_AX_NEW_DOC = """
210
+
209
211
This function has been decorated by pyplot to create a new
210
212
axes if one is not explicitly passed.
211
213
@@ -265,7 +267,7 @@ def inner(*args, **kwargs):
265
267
pre_doc = ''
266
268
else :
267
269
pre_doc = dedent (pre_doc )
268
- inner .__doc__ = _ENSURE_AX_DOC .format (func = func .__name__ , obj = '' ) + pre_doc
270
+ inner .__doc__ = pre_doc + _ENSURE_AX_DOC .format (func = func .__name__ , obj = '' )
269
271
270
272
return inner
271
273
@@ -292,8 +294,8 @@ def inner(*args, **kwargs):
292
294
pre_doc = ''
293
295
else :
294
296
pre_doc = dedent (pre_doc )
295
- inner .__doc__ = (_ENSURE_AX_NEW_DOC . format ( func = func . __name__ , obj = '' ) +
296
- pre_doc )
297
+ inner .__doc__ = (pre_doc +
298
+ _ENSURE_AX_NEW_DOC . format ( func = func . __name__ , obj = '' ) )
297
299
298
300
return inner
299
301
@@ -326,8 +328,8 @@ def inner(*args, **kwargs):
326
328
pre_doc = ''
327
329
else :
328
330
pre_doc = dedent (pre_doc )
329
- inner .__doc__ = _ENSURE_AX_DOC .format (func = func .__name__ ,
330
- obj = 'obj.' ) + pre_doc
331
+ inner .__doc__ = pre_doc + _ENSURE_AX_DOC .format (func = func .__name__ ,
332
+ obj = 'obj.' )
331
333
return inner
332
334
333
335
0 commit comments