FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Style changes omnibus PR by mdboom · Pull Request #5774 · matplotlib/matplotlib · GitHub

Repository navigation

Style changes omnibus PR - #5774

Merged
tacaswell merged 33 commits into
matplotlib:v2.xfrom
mdboom:style-change2
Feb 8, 2016
Merged

tacaswell merged 33 commits into
matplotlib:v2.xfrom
mdboom:style-change2

Conversation

mdboom commented Dec 31, 2015

Copy link
Copy Markdown
Member

This is the amalgamation of many style changes slated for v2.0, all put together so we can see how these changes interact and work as a whole.

mwaskom commented Jan 21, 2016

Copy link
Copy Markdown

Is this the right place to comment on style changes, or is there a discussion thread somewhere else?

mdboom commented Jan 21, 2016

Copy link
Copy Markdown
Member Author

If you have specific issues related to these changes feel free to make them here, but the ship has largely sailed on subjective decision making.

mwaskom commented Jan 21, 2016

Copy link
Copy Markdown

bon voyage, then

Comment thread examples/api/power_norm_demo.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This change seems unnecessary.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

You mean just the saving, not the spacing change, right? I agree about the saving -- I think that's just left in accidentally.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Yea, just the saving.

mdboom commented Jan 21, 2016

Copy link
Copy Markdown
Member Author

Sorry if I seemed prickly -- that wasn't my intention. The longer story is that we have already put out the request for suggested style changes (through promotion at conferences, the mailing list and a banner on the website) -- that generated many PRs from which Thomas and I selected the best options, taking into account "best for the common case" issues, and consistency etc. This PR is the culmination of that and is largely in the round of finding bugs that it reveals, fixing poor interactions between choices etc., but the big design stuff is mostly over so that we can make a 2.0 release without too much further bikeshedding. All that said, we sincerely hope that the style infrastructure will make it easier for those the disagree with the defaults to easily override them.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The classic style shouldn't be changing, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Good catch.

QuLogic commented Jan 21, 2016

Copy link
Copy Markdown
Member

As I understand it, all the test images should still be using the classic style. Something appears to be wrong with the handle length in legends as they seem to have widened in several images. It is most evident in lib/matplotlib/tests/baseline_images/test_legend/framealpha.png where it reaches the edge of the legend.

Also, maybe the what's new page should mention the classic style?

Comment thread examples/pylab_examples/pcolor_demo.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

A new minor typo.

Copy link
Copy Markdown
Contributor

I would really like to see more changes to make the legend not so spacious, the defaults are quite unuseable with more than two entries. Also i really dislike the rounded corners, which is a change i never saw discussed anywhere :(.

Copy link
Copy Markdown
Contributor

I would also like to see the default markersize decreased.

QuLogic added the API: default changes Changes to default behavior label Jan 21, 2016
Comment thread lib/matplotlib/rcsetup.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Is this also going to change (to go along with numpoints), or is that undecided?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

yeah, I thought this is what was meant by changing the number of points in the legend.

mdboom commented Jan 25, 2016

Copy link
Copy Markdown
Member Author

@Tillsten wrote:

I would really like to see more changes to make the legend not so spacious, the defaults are quite unuseable with more than two entries. Also i really dislike the rounded corners, which is a change i never saw discussed anywhere :(.
I would also like to see the default markersize decreased.

Thanks for the feedback. As things get integrated, it may be that this does or does not make sense. Unfortunately, the official window to provide style suggestions has closed, but we're obviously still open to feedback about things in the existing changes that don't interact well or make specific kinds of common plots much worse.

Comment thread matplotlibrc.template

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

can't use pound sign in rcfile.

Copy link
Copy Markdown
Member

A comment about the inset locator demo. With the new colors, it is hard to see the inset lines. Personally, I liked the demo the way it was. The new colors there are very dark.

Also, the ticks in that demo just seems "weird" to me. There is no x tick on the left corners, but there is one on the right corner.

Is the current rendering of the docs with this PR available somewhere? Would be interesting to look at the gallary.

mdboom commented Jan 26, 2016

Copy link
Copy Markdown
Member Author

A comment about the inset locator demo. With the new colors, it is hard to see the inset lines. Personally, I liked the demo the way it was. The new colors there are very dark.

Makes sense. Easy enough to put it back to the old colors.

Also, the ticks in that demo just seems "weird" to me. There is no x tick on the left corners, but there is one on the right corner.

Good point. I don't think it's a bug -- it's just the new view limiting coming into play. But we could hardcode the limits or change the locator to fix the weirdness.

Is the current rendering of the docs with this PR available somewhere? Would be interesting to look at the gallary.

Not presently, but I'll put it up somewhere to make that easier to do.

Copy link
Copy Markdown
Member

There are some changes to the inset locator demo to disable the auto-ticking which are on master but not in this PR.

mdboom commented Jan 26, 2016

Copy link
Copy Markdown
Member Author

Thanks for all the helpful feedback, @WeatherGod -- and sorry for not pushing and sending you on some duplicate work.

Copy link
Copy Markdown
Member

That test image you uploaded still fails (~5 RMS)

mdboom commented Jan 28, 2016

Copy link
Copy Markdown
Member Author

That test image you uploaded still fails (~5 RMS)

Yeah -- I think #5932 fixes that correctly. I'll just wait for that to merge and rebase.

Copy link
Copy Markdown
Member

@mdboom That should be on the 2.x branch now since #5934 was merged

zblz commented Jan 31, 2016

Copy link
Copy Markdown
Member

@mdboom: Has the proposal in #4730 (using labels 0.1, 1, and 10 in log-scaled axes) been accepted as a default change? I cannot find an implementation with rcParams, but I could whip one up.

efiring commented Feb 8, 2016

Copy link
Copy Markdown
Member

@zblz: In answer to your question, #4730 is not accepted as a default, but will be welcomed as an option with rcParams.

Copy link
Copy Markdown
Member

Merging this as-is so we can see the built docs.

The 3.5 failure looks like travis flakyness, but I will fix in a follow on PR if that is really broken.

tacaswell added a commit that referenced this pull request Feb 8, 2016
tacaswell merged commit 673f6c5 into matplotlib:v2.x Feb 8, 2016

QuLogic commented Feb 9, 2016

Copy link
Copy Markdown
Member

Now that this PR is merged, where do we give feedback? I see some bugs in the doc build already...

Copy link
Copy Markdown
Member

New issues is probably easiest.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API: default changes Changes to default behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.


Back | FazBrowse Home | New Git URL