Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ticket 4376: Added more information in signature of the functions
  • Loading branch information
VincentVandalon committed Mar 1, 2016
commit ab1b3a2c569974425f233d5d7d45933a04965a36
12 changes: 8 additions & 4 deletions lib/matplotlib/ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,9 @@ def get_useScalingFactor(self):

def set_useScalingFactor(self,val):
"""
Enable or disable the use of scaling factor in the axis.
Takes (True|False|numeric value) as argument.
Enable, disable, or sets and enables the use of scaling factor
in the axis.
Note that either offset or scaling can be used. Therefore,
this automatically turns off offset
"""
Expand All @@ -469,9 +471,11 @@ def get_useOffset(self):

def set_useOffset(self, val):
"""
Enable or disable the use of offset in the axis or enable & set the offset
at the same time. Since offset cannot be used in conjunction with a scaling
factor, the scaling factor is turned off.
Takes (True|False|numeric value) as argument.
Enable, disable, or sets and enables the use of an offset
in the axis.
Note that either offset or scaling can be used. Therefore,
this automatically turns off scaling factor
"""
if val in [True, False]:
self.offsetval = 0
Expand Down