X Tutup
Skip to content

Forgotten restore bounds? #7754

@Carreau

Description

@Carreau

At this line of _axes.py author saved bounds:

# Save the datalimits for the same reason:
 _saved_bounds = self.dataLim.bounds

Presumably for the same reason that (s)he saves autoscale values....

_saved_autoscalex = self.get_autoscalex_on()
_saved_autoscaley = self.get_autoscaley_on()

to restore them later.

self.set_autoscalex_on(_saved_autoscalex)
self.set_autoscaley_on(_saved_autoscaley)

The saved bounds seem to be unused and inaccessible later.

So this hint at either:

  • An oversight (bounds should be restored somewhere)
  • A trap to leave the reader wondering what this is doing.
  • A nice simple fix for a potential new contributor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup