@@ -172,10 +172,18 @@ def inverted(self):
172172
173173 def __init__ (self , axis , ** kwargs ):
174174 """
175- basex/basey: The base of the logarithm
175+ *basex*/*basey*:
176+ The base of the logarithm
176177
177- subsx/subsy: The number of subticks to draw between each major
178- tick
178+ *subsx*/*subsy*:
179+ Where to place the subticks between each major tick.
180+ Should be a sequence of integers. For example, in a log10
181+ scale::
182+
183+ [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
184+
185+ will place 10 logarithmically spaced minor ticks between
186+ each major tick.
179187 """
180188 if axis .axis_name == 'x' :
181189 base = kwargs .pop ('basex' , 10.0 )
@@ -273,14 +281,22 @@ def inverted(self):
273281
274282 def __init__ (self , axis , ** kwargs ):
275283 """
276- basex/basey: The base of the logarithm
284+ *basex*/*basey*:
285+ The base of the logarithm
286+
287+ *linthreshx*/*linthreshy*:
288+ The range (-*x*, *x*) within which the plot is linear (to
289+ avoid having the plot go to infinity around zero).
290+
291+ *subsx*/*subsy*:
292+ Where to place the subticks between each major tick.
293+ Should be a sequence of integers. For example, in a log10
294+ scale::
277295
278- linthreshx/linthreshy: The range (-x, x) within which the plot
279- is linear (to avoid having the plot go to infinity around
280- zero).
296+ [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
281297
282- subsx/subsy: The number of subticks to render between each
283- major tick.
298+ will place 10 logarithmically spaced minor ticks between
299+ each major tick.
284300 """
285301 if axis .axis_name == 'x' :
286302 base = kwargs .pop ('basex' , 10.0 )
@@ -340,9 +356,8 @@ def get_scale_docs():
340356 scale_class = _scale_mapping [name ]
341357 docs .append (" '%s'" % name )
342358 docs .append ("" )
343- class_docs = textwrap .wrap (
344- dedent (scale_class .__init__ .__doc__ ), initial_indent = " " * 8 ,
345- subsequent_indent = " " * 8 )
346- docs .extend (class_docs )
359+ class_docs = dedent (scale_class .__init__ .__doc__ )
360+ class_docs = "" .join ([" %s\n " % x for x in class_docs .split ("\n " )])
361+ docs .append (class_docs )
347362 docs .append ("" )
348363 return "\n " .join (docs )
0 commit comments