-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
Add rcParams support for markers' fillstyle prop #3602
Conversation
👍 from me, though we'll need to fix the test failures. At least some of them appear obviously related to this change. |
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 |
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. |
@nkoep Any progress on looking into the failing tests? |
Sorry about disappearing like that. I'll have a look at the problem this weekend. |
ae57f05
to
2f935f8
Compare
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. |
Thank you On Wed, Apr 22, 2015, 05:44 Niklas Koep [email protected] wrote:
|
@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 ? |
Will do |
Signed-off-by: Niklas Koep <[email protected]>
This fixes the excessive test failures caused by 4ed01d7. Signed-off-by: Niklas Koep <[email protected]>
Signed-off-by: Niklas Koep <[email protected]>
2f935f8
to
d0d9fa3
Compare
I rebased the PR again and added a short note to the rcparams.rst file in d0d9fa3. Hope the explanation is sufficient. |
Looks good to me. Merging... |
Add rcParams support for markers' fillstyle prop
This registers the
markers.fillstyle
option with thercParams
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.