From aad530ee950f522ad2e86ae0752683a82e96b01c Mon Sep 17 00:00:00 2001 From: Phil Elson Date: Fri, 12 Apr 2013 18:27:59 +0100 Subject: [PATCH] Added a test for #880. --- lib/matplotlib/tests/test_axes.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py index 3ff675eab4d4..724a98d0871e 100644 --- a/lib/matplotlib/tests/test_axes.py +++ b/lib/matplotlib/tests/test_axes.py @@ -1,5 +1,7 @@ +from nose.tools import assert_equal import numpy as np from numpy import ma + import matplotlib from matplotlib.testing.decorators import image_comparison, cleanup import matplotlib.pyplot as plt @@ -1279,6 +1281,12 @@ def test_mixed_collection(): ax.set_xlim(0, 16) ax.set_ylim(0, 16) +@cleanup +def test_subplot_key_hash(): + ax = plt.subplot(np.float64(5.5), np.int64(1), np.float64(1.2)) + ax.twinx() + assert_equal((5, 1, 0, None), ax.get_subplotspec().get_geometry()) + if __name__ == '__main__': import nose