@@ -539,39 +539,35 @@ class SymmetricalLogScale(ScaleBase):
539
539
need to have a range around zero that is linear. The parameter
540
540
*linthresh* allows the user to specify the size of this range
541
541
(-*linthresh*, *linthresh*).
542
+
543
+ Parameters
544
+ ----------
545
+ basex, basey : float
546
+ The base of the logarithm. Defaults to 10.
547
+
548
+ linthreshx, linthreshy : float
549
+ Defines the range ``(-x, x)``, within which the plot is linear.
550
+ This avoids having the plot go to infinity around zero. Defaults to 2.
551
+
552
+ subsx, subsy : sequence of int
553
+ Where to place the subticks between each major tick.
554
+ For example, in a log10 scale: ``[2, 3, 4, 5, 6, 7, 8, 9]`` will place
555
+ 8 logarithmically spaced minor ticks between each major tick.
556
+
557
+ linscalex, linscaley : float, optional
558
+ This allows the linear range ``(-linthresh, linthresh)`` to be
559
+ stretched relative to the logarithmic range. Its value is the number of
560
+ decades to use for each half of the linear range. For example, when
561
+ *linscale* == 1.0 (the default), the space used for the positive and
562
+ negative halves of the linear range will be equal to one decade in
563
+ the logarithmic range.
542
564
"""
543
565
name = 'symlog'
544
566
# compatibility shim
545
567
SymmetricalLogTransform = SymmetricalLogTransform
546
568
InvertedSymmetricalLogTransform = InvertedSymmetricalLogTransform
547
569
548
570
def __init__ (self , axis , ** kwargs ):
549
- """
550
- *basex*/*basey*:
551
- The base of the logarithm
552
-
553
- *linthreshx*/*linthreshy*:
554
- A single float which defines the range (-*x*, *x*), within
555
- which the plot is linear. This avoids having the plot go to
556
- infinity around zero.
557
-
558
- *subsx*/*subsy*:
559
- Where to place the subticks between each major tick.
560
- Should be a sequence of integers. For example, in a log10
561
- scale: ``[2, 3, 4, 5, 6, 7, 8, 9]``
562
-
563
- will place 8 logarithmically spaced minor ticks between
564
- each major tick.
565
-
566
- *linscalex*/*linscaley*:
567
- This allows the linear range (-*linthresh* to *linthresh*)
568
- to be stretched relative to the logarithmic range. Its
569
- value is the number of decades to use for each half of the
570
- linear range. For example, when *linscale* == 1.0 (the
571
- default), the space used for the positive and negative
572
- halves of the linear range will be equal to one decade in
573
- the logarithmic range.
574
- """
575
571
if axis .axis_name == 'x' :
576
572
base = kwargs .pop ('basex' , 10.0 )
577
573
linthresh = kwargs .pop ('linthreshx' , 2.0 )
0 commit comments