Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 805f365

Browse files
committed
Specify size for the buttons to be same as radio
1 parent 723cd86 commit 805f365

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/widgets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,12 +1011,12 @@ def __init__(self, ax, labels, actives=None):
10111011
for y, label in zip(ys, labels)]
10121012

10131013
self._squares = ax.scatter(
1014-
[0.15] * len(ys), ys, marker='s', c="none", linewidth=1,
1015-
transform=ax.transAxes, edgecolor="k"
1014+
[0.15] * len(ys), ys, marker='s', c="none", s=text_size**2,
1015+
linewidth=1, transform=ax.transAxes, edgecolor="k"
10161016
)
10171017
mask = [not x for x in actives]
10181018
self._crosses = ax.scatter(
1019-
[0.15] * len(ys), ys, marker='x', linewidth=1,
1019+
[0.15] * len(ys), ys, marker='x', linewidth=1, s=text_size**2,
10201020
c=["k" if actives[i] else "none" for i in range(len(ys))],
10211021
transform=ax.transAxes
10221022
)

0 commit comments

Comments
 (0)