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

Deprecate tostring_rgb.#25484

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
ksunden merged 1 commit intomatplotlib:mainfromanntzer:tad
Mar 17, 2023
Merged

Deprecate tostring_rgb.#25484

ksunden merged 1 commit intomatplotlib:mainfromanntzer:tad
Mar 17, 2023

Conversation

anntzer
Copy link
Contributor

As noted previously (#5336, see in particular the comments in the thread), silently dropping alpha can be confusing. Also, directly accessing the buffer array is more efficient (it does not involve copying to a string buffer) and should cover most use cases.

Closes#5336.

PR Summary

PR Checklist

Documentation and Tests

  • Has pytest style unit tests (andpytest passes)
  • Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).
  • New plotting related features are documented with examples.

Release Notes

  • New features are marked with a.. versionadded:: directive in the docstring and documented indoc/users/next_whats_new/
  • API changes are marked with a.. versionchanged:: directive in the docstring and documented indoc/api/next_api_changes/
  • Release notes conform with instructions innext_whats_new/README.rst ornext_api_changes/README.rst

As noted previously, silently dropping alpha can be confusing.  Also,directly accessing the buffer array is more efficient (it does notinvolve copying to a string buffer) and should cover most use cases.
@anntzeranntzer added this to thev3.8.0 milestoneMar 17, 2023
@@ -414,6 +415,7 @@ def get_renderer(self, cleared=False):
self.renderer.clear()
return self.renderer

@_api.deprecated("3.8")
Copy link
Member

Choose a reason for hiding this comment

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

Do we need any of these tostring_ methods? and even if we do, should they not be private?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

We could also deprecate tostring_argb (which we don't use either anymore); I don't have a strong opinion here.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jklymakjklymakjklymak left review comments

@ksundenksundenksunden approved these changes

@oscargusoscargusoscargus approved these changes

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

Successfully merging this pull request may close these issues.

RendererAgg.tostring_rgb merely truncates alpha
4 participants
@anntzer@jklymak@ksunden@oscargus

[8]ページ先頭

©2009-2025 Movatter.jp