Skip to content

Navigation Menu

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

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

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 2, 2015

Conversation

mdboom
Copy link
Member

@mdboom mdboom commented Dec 1, 2015

Part of the 2.0 style changes.

mdboom and others added 4 commits December 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 color

closes matplotlib#4679
@mdboom mdboom added this to the next major release (2.0) milestone Dec 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 from color 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 mdboom force-pushed the no-edges-by-default branch from b43ca32 to e8d998f Compare December 1, 2015 20:51
@mdboom
Copy link
Member Author

mdboom commented Dec 1, 2015

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

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 pass fill=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 a fill=False kwarg going into _makefill

@mdboom
Copy link
Member Author

mdboom commented Dec 2, 2015

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

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 request Dec 2, 2015
STY: No edges on filled things by default
@tacaswell tacaswell merged commit befb2ca into matplotlib:master Dec 2, 2015
tacaswell added a commit that referenced this pull request Dec 2, 2015
STY: No edges on filled things by default
@tacaswell
Copy link
Member

back ported as 27adae6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.