Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add rcParams support for markers' fillstyle prop #3602

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 3 commits into from
Jun 24, 2015

Conversation

nkoep
Copy link
Contributor

@nkoep nkoep commented Oct 1, 2014

This registers the markers.fillstyle option with the rcParams dict to allow configuring the default fillstyle of plot markers via rc files.

I noticed in the diff that the commit also removes trailing whitespaces in a few places. It's stated in the coding guidelines that trailing whitespace should be avoided. However, if this change isn't desired after all or shouldn't be mixed with actual code changes, I'll split the changes into two separate commits.

@tacaswell tacaswell added this to the v1.5.x milestone Oct 1, 2014
@mdboom
Copy link
Member

mdboom commented Oct 1, 2014

👍 from me, though we'll need to fix the test failures. At least some of them appear obviously related to this change.

@tacaswell
Copy link
Member

Don't worry about the white-space changes too much.

On a quick skim 👍 from me.

It probably should have a test as well, a png image test where you draw some lines with varying fill styles would be enough. Something like:

@image_comparison(baseline_images=['rc_markerfill'], extensions=['png'])
def test_markerstyle_rcparams():
    fig, ax = plt.subplots()
    rcParams['markers.fillstyle'] = 'top'
    x = np.range(7)
    ax.plot(x, marker='s')
    rcParams['markers.fillstyle'] = 'bottom'
    ax.plot(x + 1, marker='o')

Also see http://matplotlib.org/devel/testing.html#writing-an-image-comparison-test

@nkoep
Copy link
Contributor Author

nkoep commented Oct 1, 2014

Yikes, I should have paid closer attention to the failing tests. I'll look into it, and add an appropriate test case for the feature as suggested.

@tacaswell
Copy link
Member

@nkoep Any progress on looking into the failing tests?

@nkoep
Copy link
Contributor Author

nkoep commented Oct 18, 2014

Sorry about disappearing like that. I'll have a look at the problem this weekend.

@tacaswell tacaswell modified the milestones: proposed next point release, next point release Feb 19, 2015
@nkoep nkoep force-pushed the markers-fillstyle-rcparams branch from ae57f05 to 2f935f8 Compare April 22, 2015 09:22
@nkoep
Copy link
Contributor Author

nkoep commented Apr 22, 2015

I just rebased this PR on top of master so that it can be merged without conflicts if there's still interest in the change.

@tacaswell
Copy link
Member

Thank you

On Wed, Apr 22, 2015, 05:44 Niklas Koep [email protected] wrote:

I just rebased this PR on top of master so that it can be merged without
conflicts if there's still interest in the change.


Reply to this email directly or view it on GitHub
#3602 (comment)
.

@tacaswell
Copy link
Member

@nkoep Sorry for the slow response on our end. Any chance you can add a section to https://github.com/matplotlib/matplotlib/blob/master/doc/users/whats_new/rcparams.rst ?

@nkoep
Copy link
Contributor Author

nkoep commented Jun 23, 2015

Will do

nkoep added 3 commits June 24, 2015 07:23
This fixes the excessive test failures caused by 4ed01d7.

Signed-off-by: Niklas Koep <[email protected]>
@nkoep nkoep force-pushed the markers-fillstyle-rcparams branch from 2f935f8 to d0d9fa3 Compare June 24, 2015 05:54
@nkoep
Copy link
Contributor Author

nkoep commented Jun 24, 2015

I rebased the PR again and added a short note to the rcparams.rst file in d0d9fa3. Hope the explanation is sufficient.

@WeatherGod
Copy link
Member

Looks good to me. Merging...

WeatherGod added a commit that referenced this pull request Jun 24, 2015
Add rcParams support for markers' fillstyle prop
@WeatherGod WeatherGod merged commit 42f09b6 into matplotlib:master Jun 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants