Skip to content

Commit 2c5ae62

Browse files
committed
Fixed QwtPlot.setAxisAutoScale/setAutoReplot args
Added missing default state argument (boolean=True) to QwtPlot's setAxisAutoScale and setAutoReplot methods, in order to fit Qwt C++ library original method signatures (see http://qwt.sourceforge.net/class_qwt_plot.html#ab1cbce6d43ff9772735a9df9104f882f)
1 parent fefcbc6 commit 2c5ae62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qwt/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ def setAxisFont(self, axisId, font):
646646
if self.axisValid(axisId):
647647
return self.axisWidget(axisId).setFont(font)
648648

649-
def setAxisAutoScale(self, axisId, on):
649+
def setAxisAutoScale(self, axisId, on=True):
650650
"""
651651
Enable autoscaling for a specified axis
652652
@@ -947,7 +947,7 @@ def autoRefresh(self):
947947
if self.__data.autoReplot:
948948
self.replot()
949949

950-
def setAutoReplot(self, tf):
950+
def setAutoReplot(self, tf=True):
951951
"""
952952
Set or reset the autoReplot option
953953

0 commit comments

Comments
 (0)