示例#1
0
 def test_defaultrcParams(self):
     result = directtools.defaultrcParams()
     self.assertTrue(isinstance(result, dict))
     self.assertEqual(len(result), 2)
     self.assertTrue('legend.numpoints' in result)
     self.assertEqual(result['legend.numpoints'], 1)
     self.assertTrue('text.usetex' in result)
     self.assertEqual(result['text.usetex'], True)
示例#2
0
 def test_configurematplotlib(self):
     defaultParams = directtools.defaultrcParams()
     directtools._configurematplotlib(defaultParams)
     for key in defaultParams:
         self.assertTrue(key in matplotlib.rcParams)
         self.assertEqual(matplotlib.rcParams[key], defaultParams[key])
示例#3
0
 def test_configurematplotlib(self):
     defaultParams = directtools.defaultrcParams()
     directtools._configurematplotlib(defaultParams)
     for key in defaultParams:
         self.assertTrue(key in matplotlib.rcParams)
         self.assertEqual(matplotlib.rcParams[key], defaultParams[key])
示例#4
0
 def test_defaultrcParams(self):
     result = directtools.defaultrcParams()
     self.assertEqual(result, {'legend.numpoints': 1})
示例#5
0
 def test_defaultrcParams(self):
     result = directtools.defaultrcParams()
     self.assertEqual(result, {'legend.numpoints': 1})