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

Add finer-grain control to Axes.ignore_existing_data_limits#18771

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
l-johnston wants to merge1 commit intomatplotlib:masterfroml-johnston:issue_7742
Closed

Add finer-grain control to Axes.ignore_existing_data_limits#18771

l-johnston wants to merge1 commit intomatplotlib:masterfroml-johnston:issue_7742

Conversation

l-johnston
Copy link
Contributor

@l-johnstonl-johnston commentedOct 19, 2020
edited
Loading

PR Summary

Solving#7742 requires finer-grain control over which data limits to update during the call toupdate_path_extents. A previous attempt at solving this problem, PR#8210, simply tried to keepignore_existing_data_limits=True when plotting spans, but this approach fails when adding a second span.

Adding this feature probably impacts#18401 and#17106.

PR Checklist

  • Has pytest style unit tests (andpytest passes).
  • IsFlake 8 compliant (runflake8 on changed files to check).
  • New features are documented, with examples if plot related.
  • Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).
  • Conforms to Matplotlib style conventions (installflake8-docstrings andpydocstyle<4 and runflake8 --docstring-convention=all).
  • New features have an entry indoc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented indoc/api/next_api_changes/ (follow instructions in README.rst there).

@tacaswell
Copy link
Member

I think this is going the right direction, but we need to propagate the documentation changes back to bbox andupdate_path_extents.

I would also be inclined to make the default behavior in the switch "fail". If we did keep a non-erroring default state shouldn't it be thecase 1: code not thecase 0: code (as currently any positive number is treated as "ignore")?

Is it worth looking into anEnum for this on the Python side?

@tacaswelltacaswell added this to thev3.4.0 milestoneOct 22, 2020
@anntzer
Copy link
Contributor

I am not convinced that adding more epicycles is the way to go here. See writeup at#17106 (comment); the short version is basically "axes currently start with a datalim of (0, 1)/(0, 1) which is marked as 'ignore' so that later plots override it, but instead they should just start with a completely empty datalim and we should just use locator.nonsingular to expand it if needed at autoscaling time".

@tacaswell
Copy link
Member

I thought this was a problem with spans even after we had added a bunch of artists and did have real limits everywhere.

We want to be able to update the limitsonly in the meaningful direction.

@anntzer
Copy link
Contributor

But (I think) that's a separate point, which should not be controlled by a flag on the bbox, but rather by checking whether the artist transform "contains" transDatain that direction (#13642 (review),#17017 (comment)).

@l-johnston
Copy link
ContributorAuthor

@anntzer I have an alternative solution that avoidsignore_existing_data_limits pushed to a newbranch. Should I close this PR and open a new one?

@anntzer
Copy link
Contributor

I don't know how easy the solution I proposed would be to implement, but yes, you can open a separate PR for it.

@QuLogicQuLogic removed this from thev3.4.0 milestoneMar 16, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@l-johnston@tacaswell@anntzer@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp