Skip to content

Commit cbe9ecd

Browse files
committed
added spine rc parameter test
1 parent 47fbf7f commit cbe9ecd

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3625,6 +3625,17 @@ def test_move_offsetlabel():
36253625
ax.yaxis.tick_right()
36263626
assert_equal((1, 0.5), ax.yaxis.offsetText.get_position())
36273627

3628+
@image_comparison(baseline_images=['rc_spines'], extensions=['png'],
3629+
savefig_kwarg={'dpi':40})
3630+
def test_rc_spines():
3631+
rc_dict = {
3632+
'axes.spine.left':False,
3633+
'axes.spine.right':False,
3634+
'axes.spine.top':False,
3635+
'axes.spine.bottom':False}
3636+
with matplotlib.rc_context(rc_dict):
3637+
fig, ax = plt.subplots()
3638+
36283639
if __name__ == '__main__':
36293640
import nose
36303641
import sys

0 commit comments

Comments
 (0)