Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Single axes artist #3835

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 13, 2014
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
TST : tweak test_add_collection
This is needed because this test tries to add artists from one axes to
another which is not really supported.  Not 100% that this is fully
equivalent to the current test.  There is a call to `add_collection` in
scatter, but the test might be defeated by some of the other logic in
scatter.
  • Loading branch information
tacaswell committed Dec 12, 2014
commit fa87fa74f4ac01c1979b58a8927a0fa01ac289d3
8 changes: 3 additions & 5 deletions 8 lib/matplotlib/tests/test_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,14 +407,12 @@ def test_null_collection_datalim():
def test_add_collection():
# Test if data limits are unchanged by adding an empty collection.
# Github issue #1490, pull #1497.
ax = plt.axes()
plt.figure()
ax2 = plt.axes()
coll = ax2.scatter([0, 1], [0, 1])
ax = plt.axes()
coll = ax.scatter([0, 1], [0, 1])
ax.add_collection(coll)
bounds = ax.dataLim.bounds
coll = ax2.scatter([], [])
ax.add_collection(coll)
coll = ax.scatter([], [])
assert_equal(ax.dataLim.bounds, bounds)


Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.