Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
BUG: fix a regression where tick direction wasn't conserved by Axis.clear()#23808
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -846,6 +846,13 @@ def get_children(self): | ||
| return [self.label, self.offsetText, | ||
| *self.get_major_ticks(), *self.get_minor_ticks()] | ||
| # style parameters that should be preserved by reset operations | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Thislooks better, but I'm a bit of a loss what we actually want. What's the policy for e.g.
We should have an explicit statement on why we keep some parameters but not others. ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I intentionally left out grid params because I have no opinion there, but I agree it should be discussed. ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more.
| ||
| _style_tick_params = [ | ||
| 'tick1On', 'tick2On', 'tickdir', | ||
| 'label1On', 'label2On', 'labelsize', 'labelcolor', 'labelrotation', | ||
| 'size', 'width', 'color', 'pad' | ||
| ] | ||
| def _reset_major_tick_kw(self, keep_tick_and_label_visibility=False): | ||
| """ | ||
| Reset major tick params to defaults. | ||
| @@ -855,7 +862,7 @@ def _reset_major_tick_kw(self, keep_tick_and_label_visibility=False): | ||
| *keep_tick_and_label_visibility*. | ||
| """ | ||
| backup = {name: value for name, value in self._major_tick_kw.items() | ||
| if name inself.__class__._style_tick_params} | ||
| self._major_tick_kw.clear() | ||
| if keep_tick_and_label_visibility: | ||
| self._major_tick_kw.update(backup) | ||
| @@ -872,7 +879,7 @@ def _reset_minor_tick_kw(self, keep_tick_and_label_visibility=False): | ||
| *keep_tick_and_label_visibility*. | ||
| """ | ||
| backup = {name: value for name, value in self._minor_tick_kw.items() | ||
| if name inself.__class__._style_tick_params} | ||
| self._minor_tick_kw.clear() | ||
| if keep_tick_and_label_visibility: | ||
| self._minor_tick_kw.update(backup) | ||