@@ -198,15 +198,15 @@ def __init__(self, base=10):
198198 self .__data = QwtScaleEngine_PrivateData ()
199199 self .setBase (base )
200200
201- def autoScale (self , maxNumSteps , x1 , x2 , stepSize , relative_margin = 0.0 ):
201+ def autoScale (self , maxNumSteps , x1 , x2 , stepSize , relativeMargin = 0.0 ):
202202 """
203203 Align and divide an interval
204204
205205 :param int maxNumSteps: Max. number of steps
206206 :param float x1: First limit of the interval (In/Out)
207207 :param float x2: Second limit of the interval (In/Out)
208208 :param float stepSize: Step size
209- :param float relative_margin : Margin as a fraction of the interval width
209+ :param float relativeMargin : Margin as a fraction of the interval width
210210 :return: tuple (x1, x2, stepSize)
211211 """
212212 pass
@@ -474,24 +474,24 @@ class QwtLinearScaleEngine(QwtScaleEngine):
474474 def __init__ (self , base = 10 ):
475475 super (QwtLinearScaleEngine , self ).__init__ (base )
476476
477- def autoScale (self , maxNumSteps , x1 , x2 , stepSize , relative_margin = 0.0 ):
477+ def autoScale (self , maxNumSteps , x1 , x2 , stepSize , relativeMargin = 0.0 ):
478478 """
479479 Align and divide an interval
480480
481481 :param int maxNumSteps: Max. number of steps
482482 :param float x1: First limit of the interval (In/Out)
483483 :param float x2: Second limit of the interval (In/Out)
484484 :param float stepSize: Step size
485- :param float relative_margin : Margin as a fraction of the interval width
485+ :param float relativeMargin : Margin as a fraction of the interval width
486486 :return: tuple (x1, x2, stepSize)
487487
488488 .. seealso::
489489
490490 :py:meth:`setAttribute()`
491491 """
492492 # Apply the relative margin (fraction of the interval width) in linear space:
493- if relative_margin > 0.0 :
494- margin = (x2 - x1 ) * relative_margin
493+ if relativeMargin > 0.0 :
494+ margin = (x2 - x1 ) * relativeMargin
495495 x1 -= margin
496496 x2 += margin
497497
@@ -648,15 +648,15 @@ def __init__(self, base=10):
648648 super (QwtLogScaleEngine , self ).__init__ (base )
649649 self .setTransformation (QwtLogTransform ())
650650
651- def autoScale (self , maxNumSteps , x1 , x2 , stepSize , relative_margin = 0.0 ):
651+ def autoScale (self , maxNumSteps , x1 , x2 , stepSize , relativeMargin = 0.0 ):
652652 """
653653 Align and divide an interval
654654
655655 :param int maxNumSteps: Max. number of steps
656656 :param float x1: First limit of the interval (In/Out)
657657 :param float x2: Second limit of the interval (In/Out)
658658 :param float stepSize: Step size
659- :param float relative_margin : Margin as a fraction of the interval width
659+ :param float relativeMargin : Margin as a fraction of the interval width
660660 :return: tuple (x1, x2, stepSize)
661661
662662 .. seealso::
@@ -669,10 +669,10 @@ def autoScale(self, maxNumSteps, x1, x2, stepSize, relative_margin=0.0):
669669
670670 # Apply the relative margin (fraction of the interval width) in logarithmic
671671 # space, and convert back to linear space.
672- if relative_margin is not None :
672+ if relativeMargin is not None :
673673 x1 = min (max ([x1 , LOG_MIN ]), LOG_MAX )
674674 x2 = min (max ([x2 , LOG_MIN ]), LOG_MAX )
675- log_margin = math .log (x2 / x1 , logBase ) * relative_margin
675+ log_margin = math .log (x2 / x1 , logBase ) * relativeMargin
676676 x1 /= math .pow (logBase , log_margin )
677677 x2 *= math .pow (logBase , log_margin )
678678
0 commit comments