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 762d738

Browse filesBrowse files
committed
codecov
1 parent 8c1b70a commit 762d738
Copy full SHA for 762d738

File tree

Expand file treeCollapse file tree

1 file changed

+13
-16
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+13
-16
lines changed

‎lib/matplotlib/tests/test_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
+13-16Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6060,28 +6060,25 @@ def color_boxes(fig, axs):
60606060
bbspines = []
60616061
for nn, a in enumerate(['bottom', 'top', 'left', 'right']):
60626062
bb = axs.spines[a].get_window_extent(renderer)
6063-
if bb:
6064-
spiner = plt.Rectangle((bb.x0, bb.y0), width=bb.width,
6065-
height=bb.height, linewidth=0.7,
6066-
edgecolor="green", facecolor="none",
6067-
transform=None, zorder=3)
6068-
fig.add_artist(spiner)
6063+
spiner = plt.Rectangle((bb.x0, bb.y0), width=bb.width,
6064+
height=bb.height, linewidth=0.7,
6065+
edgecolor="green", facecolor="none",
6066+
transform=None, zorder=3)
6067+
fig.add_artist(spiner)
60696068
bbspines += [bb]
60706069

60716070
bb = axs.get_window_extent()
6072-
if bb:
6073-
rect2 = plt.Rectangle((bb.x0, bb.y0), width=bb.width, height=bb.height,
6074-
linewidth=1.5, edgecolor="magenta",
6075-
facecolor="none", transform=None, zorder=2)
6076-
fig.add_artist(rect2)
6071+
rect2 = plt.Rectangle((bb.x0, bb.y0), width=bb.width, height=bb.height,
6072+
linewidth=1.5, edgecolor="magenta",
6073+
facecolor="none", transform=None, zorder=2)
6074+
fig.add_artist(rect2)
60776075
bbax = bb
60786076

60796077
bb2 = axs.get_tightbbox(renderer)
6080-
if bb2:
6081-
rect2 = plt.Rectangle((bb2.x0, bb2.y0), width=bb2.width,
6082-
height=bb2.height, linewidth=3, edgecolor="red",
6083-
facecolor="none", transform=None, zorder=1)
6084-
fig.add_artist(rect2)
6078+
rect2 = plt.Rectangle((bb2.x0, bb2.y0), width=bb2.width,
6079+
height=bb2.height, linewidth=3, edgecolor="red",
6080+
facecolor="none", transform=None, zorder=1)
6081+
fig.add_artist(rect2)
60856082
bbtb = bb2
60866083
return bbaxis, bbspines, bbax, bbtb
60876084

0 commit comments

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