File tree Expand file tree Collapse file tree 2 files changed +25
-4
lines changed
baseline_images/test_axes Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -3629,13 +3629,34 @@ def test_move_offsetlabel():
3629
3629
savefig_kwarg = {'dpi' :40 })
3630
3630
def test_rc_spines ():
3631
3631
rc_dict = {
3632
- 'axes.spine .left' :False ,
3633
- 'axes.spine .right' :False ,
3634
- 'axes.spine .top' :False ,
3635
- 'axes.spine .bottom' :False }
3632
+ 'axes.spines .left' :False ,
3633
+ 'axes.spines .right' :False ,
3634
+ 'axes.spines .top' :False ,
3635
+ 'axes.spines .bottom' :False }
3636
3636
with matplotlib .rc_context (rc_dict ):
3637
3637
fig , ax = plt .subplots ()
3638
3638
3639
+ @image_comparison (baseline_images = ['rc_grid' ], extensions = ['png' ],
3640
+ savefig_kwarg = {'dpi' :40 })
3641
+ def test_rc_grid ():
3642
+ fig = plt .figure ()
3643
+ rc_dict0 = {
3644
+ 'axes.grid.axis' : 'both'
3645
+ }
3646
+ rc_dict1 = {
3647
+ 'axes.grid.axis' : 'x'
3648
+ }
3649
+ rc_dict2 = {
3650
+ 'axes.grid.axis' : 'y'
3651
+ }
3652
+ dict_list = [rc_dict0 , rc_dict1 , rc_dict2 ]
3653
+
3654
+ i = 1
3655
+ for rc_dict in dict_list :
3656
+ with matplotlib .rc_context (rc_dict ):
3657
+ fig .add_subplot (3 , 1 , i )
3658
+ i += 1
3659
+
3639
3660
if __name__ == '__main__' :
3640
3661
import nose
3641
3662
import sys
You can’t perform that action at this time.
0 commit comments