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

No edges on filled things by default#5596

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 6 commits intomatplotlib:masterfrommdboom:no-edges-by-default
Dec 2, 2015

Conversation

mdboom
Copy link
Member

Part of the 2.0 style changes.

mdboomand others added4 commitsDecember 1, 2015 09:56
 - for plot, the default marker edge is now the color of the marker - for scatter the marker edge color now follows the face colorclosesmatplotlib#4679
@mdboommdboom added this to thenext major release (2.0) milestoneDec 1, 2015
@@ -1986,7 +1986,7 @@ def bar(self, left, height, width=0.8, bottom=None, **kwargs):
xerr = kwargs.pop('xerr', None)
yerr = kwargs.pop('yerr', None)
error_kw = kwargs.pop('error_kw', dict())
ecolor = kwargs.pop('ecolor',None)
ecolor = kwargs.pop('ecolor','k')
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this pull fromcolor instead? That way, there is no visible edge.

Copy link
Member

Choose a reason for hiding this comment

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

The 'e' here stands for 'errorbar' not 'edge'

@tacaswell
Copy link
Member

👍 modulo Ben's concerns about the indentation. I tend to push the continued if lines in an extra 4 spaces.

@mdboom
Copy link
MemberAuthor

Updated addressing comments here.

@@ -325,7 +325,7 @@ def _makefill(self, x, y, kw, kwargs):
seg = mpatches.Polygon(np.hstack((x[:, np.newaxis],
y[:, np.newaxis])),
facecolor=facecolor,
fill=True,
fill=kwargs.get('fill',True),
Copy link
Member

Choose a reason for hiding this comment

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

What prompted this change?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

histogram steps (for one) go through this path, but sometimes passfill=False. If that gets ignored, than the patch will have neither fill or stroke in the new scheme here.

@tacaswell
Copy link
Member

👍 other than my confusion about afill=False kwarg going into_makefill

@mdboom
Copy link
MemberAuthor

I think this is good to go.

@@ -497,3 +497,5 @@ animation.convert_path: convert # Path to ImageMagick's convert binary.
# is also the name of a system tool.
animation.convert_args:
animation.html: none

_internal.classic_mode: True
Copy link
Member

Choose a reason for hiding this comment

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

There is a "no newline at end of file" marker here. I've never seen that before. Doesn't PEP8 require a newline at end of file?

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, missed this comment as I was pressing merge.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

PEP8 doesn't apply as this isn't a Python file ;) But yes, we can go in and add the newline next time we touch this file.

tacaswell added a commit that referenced this pull requestDec 2, 2015
STY: No edges on filled things by default
@tacaswelltacaswell merged commitbefb2ca intomatplotlib:masterDec 2, 2015
tacaswell added a commit that referenced this pull requestDec 2, 2015
STY: No edges on filled things by default
@tacaswell
Copy link
Member

back ported as27adae6

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
v2.0.0
Development

Successfully merging this pull request may close these issues.

5 participants
@mdboom@tacaswell@efiring@WeatherGod@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp