Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aad530e

Browse files
committed
Added a test for #880.
1 parent 1ccf29d commit aad530e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
from nose.tools import assert_equal
12
import numpy as np
23
from numpy import ma
4+
35
import matplotlib
46
from matplotlib.testing.decorators import image_comparison, cleanup
57
import matplotlib.pyplot as plt
@@ -1279,6 +1281,12 @@ def test_mixed_collection():
12791281
ax.set_xlim(0, 16)
12801282
ax.set_ylim(0, 16)
12811283

1284+
@cleanup
1285+
def test_subplot_key_hash():
1286+
ax = plt.subplot(np.float64(5.5), np.int64(1), np.float64(1.2))
1287+
ax.twinx()
1288+
assert_equal((5, 1, 0, None), ax.get_subplotspec().get_geometry())
1289+
12821290

12831291
if __name__ == '__main__':
12841292
import nose

0 commit comments

Comments
 (0)