Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f0afd5 commit 25b7ebdCopy full SHA for 25b7ebd
lib/matplotlib/tests/test_axes.py
@@ -54,6 +54,18 @@ def test_formatter_ticker():
54
ax.set_xlabel( "x-label 005" )
55
ax.autoscale_view()
56
57
+def test_add_collection():
58
+ fig = matplotlib.figure.Figure()
59
+ fig2 = matplotlib.figure.Figure()
60
+ ax = fig.add_subplot(111)
61
+ ax2 = fig2.add_subplot(111)
62
+ coll = ax2.scatter([0, 1], [0, 1])
63
+ ax.add_collection(coll)
64
+ bounds = ax.dataLim.bounds
65
+ coll = ax2.scatter([], [])
66
67
+ assert ax.dataLim.bounds == bounds
68
+
69
@image_comparison(baseline_images=["formatter_large_small"])
70
def test_formatter_large_small():
71
# github issue #617, pull #619
0 commit comments