Skip to content

Commit

Permalink
Added missing self argument to methods:
Browse files Browse the repository at this point in the history
    - `xaxisRange`,
    - `xaxisRangeSliderYaxisRange`,
    - `yaxisRange`,
    - `yaxisRangeSliderYaxisRange`,
  • Loading branch information
allanleal committed Dec 16, 2022
1 parent f652798 commit 4f37ccf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/src/reaktplot/Figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -2740,7 +2740,7 @@ def xaxisPosition(self, value: int) -> Figure:
return self


def xaxisRange(l: float, r: float) -> Figure:
def xaxisRange(self, l: float, r: float) -> Figure:
"""
Sets the range of this axis. If the axis `type` is "log", then you must take the log of your desired range (e.g. to set the range from 1 to 100, set the range from 0 to 2). If the axis `type` is "date", it should be date strings, like date data, though Date objects and unix milliseconds will be accepted and converted to strings. If the axis `type` is "category", it should be numbers, using the scale where each category is assigned a serial number from zero in the order it appears.
Expand Down Expand Up @@ -3180,7 +3180,7 @@ def xaxisRangeSliderYaxisSpecs(self, value: dict) -> Figure:
return self


def xaxisRangeSliderYaxisRange(l: float, r: float) -> Figure:
def xaxisRangeSliderYaxisRange(self, l: float, r: float) -> Figure:
"""
Sets the range of this axis for the rangeslider.
Expand Down Expand Up @@ -4308,7 +4308,7 @@ def yaxisPosition(self, value: int) -> Figure:
return self


def yaxisRange(l: float, r: float) -> Figure:
def yaxisRange(self, l: float, r: float) -> Figure:
"""
Sets the range of this axis. If the axis `type` is "log", then you must take the log of your desired range (e.g. to set the range from 1 to 100, set the range from 0 to 2). If the axis `type` is "date", it should be date strings, like date data, though Date objects and unix milliseconds will be accepted and converted to strings. If the axis `type` is "category", it should be numbers, using the scale where each category is assigned a serial number from zero in the order it appears.
Expand Down Expand Up @@ -4748,7 +4748,7 @@ def yaxisRangeSliderYaxisSpecs(self, value: dict) -> Figure:
return self


def yaxisRangeSliderYaxisRange(l: float, r: float) -> Figure:
def yaxisRangeSliderYaxisRange(self, l: float, r: float) -> Figure:
"""
Sets the range of this axis for the rangeslider.
Expand Down

0 comments on commit 4f37ccf

Please sign in to comment.