Skip to content

Commit d0d9fa3

Browse files
committed
Add test case for rcParams['markers.fillstyle']
Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
1 parent f066c9f commit d0d9fa3

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

doc/users/whats_new/rcparams.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ multiple images on a set of axes into a single composite image. Saving each
3737
image individually can be useful if you generate vector graphics files in
3838
matplotlib and then edit the files further in Inkscape or other programs.
3939

40+
Added ``markers.fillstyle`` key to rcParams
41+
```````````````````````````````````````````
42+
Controls the default fillstyle of markers. Possible values are ``'full'`` (the
43+
default), ``'left'``, ``'right'``, ``'bottom'``, ``'top'`` and ``'none'``.
4044

4145
Added "toolmanager" to "toolbar" possible values
4246
````````````````````````````````````````````````

lib/matplotlib/tests/test_axes.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,6 +2366,16 @@ def test_marker_styles():
23662366
markersize=10+y/5, label=marker)
23672367

23682368

2369+
@image_comparison(baseline_images=['rc_markerfill'], extensions=['png'])
2370+
def test_markers_fillstyle_rcparams():
2371+
fig, ax = plt.subplots()
2372+
x = np.arange(7)
2373+
for idx, (style, marker) in enumerate(
2374+
[('top', 's'), ('bottom', 'o'), ('none', '^')]):
2375+
matplotlib.rcParams['markers.fillstyle'] = style
2376+
ax.plot(x+idx, marker=marker)
2377+
2378+
23692379
@image_comparison(baseline_images=['vertex_markers'], extensions=['png'],
23702380
remove_text=True)
23712381
def test_vertex_markers():

0 commit comments

Comments
 (0)