8000 Update lib/matplotlib/backends/backend_pdf.py · matplotlib/matplotlib@0ce7e87 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ce7e87

Browse files
eindHoscargus
andauthored
Update lib/matplotlib/backends/backend_pdf.py
Co-authored-by: Oscar Gustafsson <oscar.gustafsson@gmail.com>
1 parent 9eae986 commit 0ce7e87

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/backends/backend_pdf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,10 @@ def _get_coordinates_of_block(x, y, width, height, angle=0):
275275
vertices = _calculate_quad_point_coordinates(x, y, width,
276276
height, angle)
277277

278-
min_x = min(vertices[0][0], vertices[1][0], vertices[2][0], vertices[3][0])
279-
min_y = min(vertices[0][1], vertices[1][1], vertices[2][1], vertices[3][1])
280-
max_x = max(vertices[0][0], vertices[1][0], vertices[2][0], vertices[3][0])
281-
max_y = max(vertices[0][1], vertices[1][1], vertices[2][1], vertices[3][1])
278+
min_x = min(v[0] for v in vertices)
279+
min_y = min(v[1] for v in vertices)
280+
max_x = max(v[0] for v in vertices)
281+
max_y = max(v[1] for v in vertices)
282282
return vertices, (min_x, min_y, max_x, max_y)
283283

284284

0 commit comments

Comments
 (0)
0