Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Strip trailing spaces from log-formatter cursor output.#28056

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

Merged
timhoffm merged 1 commit intomatplotlib:mainfromanntzer:striplog
Apr 12, 2024

Conversation

anntzer
Copy link
Contributor

The trailing spaces were fine when the cursor position was shown as
x=... y=..., but become very ugly now that it's
(x, y) = (..., ...). (#25556)

(test e.g. with moving the cursor on a loglog() axes and looking at the coordinates display)

PR summary

PR checklist

The trailing spaces were fine when the cursor position was shown as`x=...    y=...`, but become very ugly now that it's`(x, y) = (...,    ...)`.
@timhoffmtimhoffm merged commit27f6031 intomatplotlib:mainApr 12, 2024
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestApr 12, 2024
@anntzeranntzer deleted the striplog branchApril 12, 2024 08:41
@@ -1024,7 +1024,7 @@ def format_data(self, value):

def format_data_short(self, value):
# docstring inherited
return '%-12g' % value
return('%-12g' % value).rstrip()
Copy link
Member

Choose a reason for hiding this comment

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

Sorry for the post merge comment here, but why not just:

returnf"{value:g}"

The 12 in the format is adding padding that we are then just stripping away...

rcomer added a commit that referenced this pull requestApr 13, 2024
…056-on-v3.9.xBackport PR#28056 on branch v3.9.x (Strip trailing spaces from log-formatter cursor output.)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ksundenksundenksunden left review comments

@story645story645story645 approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.9.0
Development

Successfully merging this pull request may close these issues.

4 participants
@anntzer@story645@ksunden@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp