示例#1
0
 def test_ax_labels(self, sky_coords, expected):
     fig, ax = mapplot._ax_setup(sky_coords,
                                 fig=None,
                                 ax=None,
                                 facecolor='#A8A8A8')
     assert ax.get_xlabel() == expected
     assert ax.get_ylabel() == expected
示例#2
0
 def test_ax_facecolor(self):
     fig, ax = mapplot._ax_setup(sky_coords=True,
                                 fig=None,
                                 ax=None,
                                 facecolor='#A8A8A8')
     assert ax.get_facecolor() == (0.6588235294117647, 0.6588235294117647,
                                   0.6588235294117647, 1.0)