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

Use data to set default limits when appropriate#18803

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_alternatesolution
Closed

Use data to set default limits when appropriate#18803

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

Conversation

l-johnston
Copy link
Contributor

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

PR Summary

Closes#7742

This is the third attempt at solving#7742. The first two attempts,#8210 and#18771, made use ofignore_existing_data_limits, but this attribute will be deprecated as discussed in#17106.

The difficulty with date-like data is the hard-code default limits of (2000, 2010). So, this approach modifiesset_default_intervals to use the actual data instead of these hard-coded values when appropriate.

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 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).

@jklymak
Copy link
Member

Suggest just get rid of the hard code date limits as we now have a variable epoch and default 0-1 is fine.

@l-johnston
Copy link
ContributorAuthor

I attempted to remove the hard coded date limits by settingdefault_limits toNone but this still fails.

@jklymak
Copy link
Member

Thanks for working on this, but I'll close as not being quite right either!

@jklymakjklymak closed thisMay 6, 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.

plot_date() after axhline() doesn't rescale axes
2 participants
@l-johnston@jklymak

[8]ページ先頭

©2009-2025 Movatter.jp