Skip to content
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

Dedent some gridline code #1874

Merged
merged 1 commit into from
Sep 16, 2021
Merged

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Sep 16, 2021

Rationale

Most of _draw_gridliner is within a single if, which can be inverted to drop an indent level. Additionally, most of the rest is within a double-for loop, which can be combined to reduce indent another level.

Implications

This reduces several weird wrapping issues.

I do have some followup changes, but I thought I'd open this up separately for easier review. It's probably best to look at the diff with whitespace changes ignored.

@QuLogic QuLogic added this to the 0.20 milestone Sep 16, 2021
Most of `_draw_gridliner` is within a single `if`, which can be inverted
to drop an indent level. Additionally, most of the rest is within a
double-for loop, which can be combined to reduce indent another level.

This reduces several weird wrapping issues.
@greglucas greglucas merged commit b9789ed into SciTools:master Sep 16, 2021
@greglucas
Copy link
Contributor

Good suggestion on ignoring the whitespace changes, that did make it much more straightforward to view the diff :)

@QuLogic QuLogic deleted the dedent-gridlines branch September 17, 2021 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants