Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Use data to set default limits when appropriate #18803

wants to merge 1 commit into from

Conversation

l-johnston
Copy link
Contributor

@l-johnston l-johnston commented Oct 23, 2020

PR Summary

Closes #7742

This is the third attempt at solving #7742. The first two attempts, #8210 and #18771, made use of ignore_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 modifies set_default_intervals to use the actual data instead of these hard-coded values when appropriate.

PR Checklist

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (run flake8 on changed files to check).
  • New features are documented, with examples if plot related.
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • Conforms to Matplotlib style conventions (install flake8-docstrings and run flake8 --docstring-convention=all).
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).

@jklymak
Copy link
Member

jklymak commented Oct 23, 2020

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
Contributor Author

I attempted to remove the hard coded date limits by setting default_limits to None but this still fails.

@jklymak
Copy link
Member

jklymak commented May 5, 2021

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

@jklymak jklymak closed this May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

plot_date() after axhline() doesn't rescale axes
2 participants