Skip to content

[MNT]: Cleanup ticklabel_format(..., style=) #25974

Closed
@timhoffm

Description

@timhoffm

Summary

Half a note to self, but anybody can pick this up.

def ticklabel_format(self, *, axis='both', style='', scilimits=None,

defaults style='', which is only used at:

STYLES = {'sci': True, 'scientific': True, 'plain': False, '': None}
is_sci_style = _api.check_getitem(STYLES, style=style)

Proposed fix

  • Consistency: Change the default value to None, like for all the other kwargs here, which has the sematincs None = do not change.
  • Document that 'sci' and 'scientific' are equivalent. (Or maybe deprecate 'sci'?)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions