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

DOC: Add note about locators at top of ticker docs#19002

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
QuLogic merged 1 commit intomatplotlib:masterfromdopplershift:locator-note
Dec 17, 2020

Conversation

dopplershift
Copy link
Contributor

PR Summary

The note about not sharingLocator instances should be more prominent than hiding in the base class docs, which most users have no need to examine (since they'll use one of many subclasses 99% of the time).

I opted not to add anything to thetext_intro.py tutorial, but I'm open to doing so if someone has suggestions on the right level of detail for that.

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

@anntzer
Copy link
Contributor

See also#13482 and#13439.

@jklymak
Copy link
Member

As discussed in gitter, I think we should fix this properly. OTOH, happy for this to go in when the build passes....

@dopplershift
Copy link
ContributorAuthor

If we want this in the 3.3 docs, then I'm happy to update. If we're actually going to fix properly for 3.4, then there's no point in putting this in.

@jklymak
Copy link
Member

I think it'd be good to get this in because I have a feeling we won't be able to re-engineer Locators and Formatters by 3.4 (though who knows! Where there is a will there is a way).

timhoffm reacted with thumbs up emoji

@dopplershiftdopplershiftforce-pushed thelocator-note branch 2 times, most recently from3f1ad82 to0497934CompareNovember 26, 2020 21:20
The note about not sharing `Locator` instances should be more prominentthan hiding in the base class docs, which most users have no need toexamine.
@dopplershift
Copy link
ContributorAuthor

Should this be milestoned for 3.3-doc?

@tacaswelltacaswell added this to thev3.3-doc milestoneNov 28, 2020
@dopplershift
Copy link
ContributorAuthor

I don'tthink there's anything else this needs...

@QuLogic
Copy link
Member

Seems fine to me.

timhoffm reacted with thumbs up emoji

@QuLogicQuLogic merged commite780592 intomatplotlib:masterDec 17, 2020
@lumberbot-app
Copy link

Something went wrong ... Please have a look at my logs.

It seem that the branch you are trying to backport to does not exists.

@QuLogic
Copy link
Member

QuLogic commentedDec 17, 2020
edited
Loading

@meeseeksdev backport to v3.3.3-doc

1 similar comment
@QuLogic
Copy link
Member

@meeseeksdev backport to v3.3.3-doc

meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestDec 17, 2020
@dopplershiftdopplershift deleted the locator-note branchDecember 17, 2020 06:34
timhoffm added a commit that referenced this pull requestDec 17, 2020
…002-on-v3.3.3-docBackport PR#19002 on branch v3.3.3-doc (DOC: Add note about locators at top of ticker docs)
@gribbg
Copy link

Two other thoughts in this space:

  1. Can we update the documentation forset_major_locator andset_minor_locator to includeNote: locator must be unique instance per axis?
  2. Any thoughts on makingTickHelper.set_axis() issue a warning ifself.axis is already set?

@timhoffm
Copy link
Member

  1. Basically 👍, though I would use the same wording as here.
  2. Generally 👍 on runtime warnings for non-intended usage.TickHelper is also the base class for Formatters, and AFAIK the restriction does not apply to them. So the warning would have to be implemented in theLocator class.

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

@QuLogicQuLogicQuLogic approved these changes

@timhoffmtimhoffmAwaiting requested review from timhoffm

Assignees
No one assigned
Projects
None yet
Milestone
v3.3-doc
Development

Successfully merging this pull request may close these issues.

7 participants
@dopplershift@anntzer@jklymak@QuLogic@gribbg@timhoffm@tacaswell

[8]ページ先頭

©2009-2025 Movatter.jp