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

Make _classic_test style a tiny patch on top of classic.#14942

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
tacaswell merged 1 commit intomatplotlib:masterfromanntzer:classic_test
Aug 8, 2019

Conversation

anntzer
Copy link
Contributor

This makes it easier to see the difference between the two styles.

See also#8081 which introduced _classic_test.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code isFlake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@QuLogic
Copy link
Member

It seems like there's more in the diff than justytick.alignment?

--- classic.mplstyle2019-07-16 20:41:48.743238831 -0400+++ _classic_test.mplstyle2019-07-31 02:57:47.044369917 -0400@@ -8,8 +8,6 @@ lines.linestyle   : -       # solid line lines.color       : b       # has no affect on plot(); see axes.prop_cycle lines.marker      : None    # the default marker-lines.markerfacecolor  : auto    # the default markerfacecolor-lines.markeredgecolor  : auto    # the default markeredgecolor lines.markeredgewidth  : 0.5     # the line width around the marker symbol lines.markersize  : 6            # markersize, in points lines.dash_joinstyle : round        # miter|round|bevel@@ -247,7 +245,6 @@ xtick.major.bottom   : True   # draw x axis bottom major ticks xtick.minor.top      : True   # draw x axis top minor ticks xtick.minor.bottom   : True   # draw x axis bottom minor ticks-xtick.alignment : center  ytick.left           : True   # draw ticks on the left side ytick.right          : True   # draw ticks on the right side@@ -265,7 +262,6 @@ ytick.major.right    : True   # draw y axis right major ticks ytick.minor.left     : True   # draw y axis left minor ticks ytick.minor.right    : True   # draw y axis right minor ticks-ytick.alignment      : center  ### GRIDS grid.color       :   k       # grid color

@anntzer
Copy link
ContributorAuthor

these are still the default values
https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/rcsetup.py#L975
https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/rcsetup.py#L1254

right now _classic_test does not set them, so it uses the defaults from rcsetup; with this PR it will inherit them from classic, but the values are the same (and even if the defaults change, classic won't change so _classic_test/_test_patch will be unaffected.

@@ -0,0 +1,4 @@
# This patch should go on top of the "classic" style and exists solely to avoid
Copy link
Member

Choose a reason for hiding this comment

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

I would leave "classic" in the name. Maybe "_classic_test_patch.mplstyle". This makes it clear that it's only intended for the classic style.

style = ["classic", "_classic_test_patch"]

reads quite consistent.

"internal" is not adding much as we already have a underscore prefix.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

ok, renamed to _classic_test_patch

This makes it easier to see the difference between the two styles.
@tacaswelltacaswell added this to thev3.2.0 milestoneAug 8, 2019
@tacaswelltacaswell merged commite86c9cd intomatplotlib:masterAug 8, 2019
@anntzeranntzer deleted the classic_test branchAugust 8, 2019 07:02
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@timhoffmtimhoffmtimhoffm approved these changes

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

Successfully merging this pull request may close these issues.

4 participants
@anntzer@QuLogic@timhoffm@tacaswell

[8]ページ先頭

©2009-2025 Movatter.jp