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

Skip to content

scale: little API change in linear scale #3756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
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
4 changes: 0 additions & 4 deletions lib/matplotlib/scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,8 @@ class LinearScale(ScaleBase):
"""
The default linear scale.
"""

name = 'linear'

def __init__(self, axis, **kwargs):
pass

def set_default_locators_and_formatters(self, axis):
"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't drop the init function entirely due to the scale_factory function at the bottom of this module.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait: why don't we include this dummy constructor in the ScaleBase class then? Every to-be-registered scale needs to accept those arguments because of the scale_factory function...

Set the locators and formatters to reasonable defaults for
Expand Down