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

Interpret unitless bar widths for unitized data as relative to spacing.#13254

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

Closed
anntzer wants to merge1 commit intomatplotlib:masterfromanntzer:bar-units

Conversation

anntzer
Copy link
Contributor

PR Summary

Implements the proposal in#13236.

PR Checklist

  • Has Pytest style unit tests
  • Code isFlake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@anntzer
Copy link
ContributorAuthor

So this actually breaks some tests that were doing

bar([3, 4, 5], ["foo", "bar", "baz"])

and expected to get
test
which is pretty nonsensical IMO (with this PR, this fails when trying to add 0 (bottom) to "foo").
Obviously there's backcompat concerns (also for the case of units that's don't define addition -- there's an example in the docs (see the circleci failure), but I'd argue this doesn't really make sense either). Thoughts?

@jklymakjklymak mentioned this pull requestJan 23, 2019
6 tasks
@jklymak
Copy link
Member

Is this still needed after#12903? I'm closing, but feel free to request a reopen

@anntzer
Copy link
ContributorAuthor

I think this was attempting to solve a different problem, but well, units...

@anntzeranntzer deleted the bar-units branchApril 23, 2021 16:51
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@anntzer@jklymak

[8]ページ先頭

©2009-2025 Movatter.jp