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

Commit dda8097

Browse filesBrowse files
committed
Merge pull request #5547 from mdboom/collections-data-space
Fix #5545: Fix collection scale in data space
2 parents 00dce00 + 8b883f5 commit dda8097
Copy full SHA for dda8097

File tree

Expand file treeCollapse file tree

3 files changed

+21
-0
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+21
-0
lines changed
Loading

‎lib/matplotlib/tests/test_collections.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_collections.py
+20Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,26 @@ def test_linestyle_single_dashes():
597597
plt.draw()
598598

599599

600+
@image_comparison(baseline_images=['size_in_xy'], remove_text=True,
601+
extensions=['png'])
602+
def test_size_in_xy():
603+
fig, ax = plt.subplots()
604+
605+
widths, heights, angles = (10, 10), 10, 0
606+
widths = 10, 10
607+
coords = [(10, 10), (15, 15)]
608+
e = mcollections.EllipseCollection(
609+
widths, heights, angles,
610+
units='xy',
611+
offsets=coords,
612+
transOffset=ax.transData)
613+
614+
ax.add_collection(e)
615+
616+
ax.set_xlim(0, 30)
617+
ax.set_ylim(0, 30)
618+
619+
600620
if __name__ == '__main__':
601621
import nose
602622
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)

‎src/_backend_agg.h

Copy file name to clipboardExpand all lines: src/_backend_agg.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,7 @@ inline void RendererAgg::_draw_path_collection_generic(GCAgg &gc,
986986
subtrans(1, 1),
987987
subtrans(0, 2),
988988
subtrans(1, 2));
989+
trans *= master_transform;
989990
} else {
990991
trans = master_transform;
991992
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.