Example #1
0
 def test_small_gridshape_with_aspect(self):
     gridshape = (2, 2)
     expected_width = 5.5
     expected_height = 5.5
     width, height = plotter._fig_size(gridshape, aspect=(4 // 3))
     self.assertEqual(width, expected_width)
     self.assertEqual(height, expected_height)
Example #2
0
 def test_small_gridshape_size(self):
     gridshape = (2, 2)
     expected_width = 8.5
     expected_height = 5.5
     width, height = plotter._fig_size(gridshape)
     self.assertEqual(width, expected_width)
     self.assertEqual(height, expected_height)
Example #3
0
 def test_large_gridshape_size(self):
     gridshape = (567, 1223)
     expected_width = 17.0
     expected_height = 5.5
     width, height = plotter._fig_size(gridshape)
     self.assertEqual(width, expected_width)
     self.assertEqual(height, expected_height)
Example #4
0
 def test_large_gridshape_with_aspect(self):
     gridshape = (567, 1223)
     expected_width = 11.0
     expected_height = 5.5
     width, height = plotter._fig_size(gridshape, aspect=(16 // 9))
     self.assertEqual(width, expected_width)
     self.assertEqual(height, expected_height)
 def test_small_gridshape_with_aspect(self):
     gridshape = (2, 2)
     expected_width = 5.5
     expected_height = 5.5
     width, height = plotter._fig_size(gridshape, aspect=(4 // 3))
     self.assertEqual(width, expected_width)
     self.assertEqual(height, expected_height)
 def test_large_gridshape_size(self):
     gridshape = (567, 1223)
     expected_width = 17.0
     expected_height = 5.5
     width, height = plotter._fig_size(gridshape)
     self.assertEqual(width, expected_width)
     self.assertEqual(height, expected_height)
 def test_small_gridshape_size(self):
     gridshape = (2, 2)
     expected_width = 8.5
     expected_height = 5.5
     width, height = plotter._fig_size(gridshape)
     self.assertEqual(width, expected_width)
     self.assertEqual(height, expected_height)
 def test_large_gridshape_with_aspect(self):
     gridshape = (567, 1223)
     expected_width = 11.0
     expected_height = 5.5
     width, height = plotter._fig_size(gridshape, aspect=(16 // 9))
     self.assertEqual(width, expected_width)
     self.assertEqual(height, expected_height)