8000 Remove changes · matplotlib/matplotlib@cb0a64c · GitHub
[go: up one dir, main page]

Skip to content

Commit cb0a64c

Browse files
committed
Remove changes
1 parent 2c5a873 commit cb0a64c

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2376,14 +2376,6 @@ def bar(self, x, height, width=0.8, bottom=None, *, align="center",
23762376
# Fallback if edgecolor == "none".
23772377
itertools.repeat('none'))
23782378

2379-
# Resolve the float - Decimal TypeError
2380-
if (orientation == 'vertical' and x.size > 0
2381-
and isinstance(x[0], Decimal)):
2382-
width = np.array([Decimal(itm) for itm in width])
2383-
elif (orientation == 'horizontal' and y.size > 0
2384-
and isinstance(y[0], Decimal)):
2385-
height = np.array([Decimal(itm) for itm in height])
2386-
23872379
# We will now resolve the alignment and really have
23882380
# left, bottom, width, height vectors
23892381
if align == 'center':

lib/matplotlib/tests/test_axes.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,30 +1472,6 @@ def test_bar_tick_label_multiple_old_alignment():
14721472
align='center')
14731473

14741474

1475-
@image_comparison(
1476-
baseline_images=['bar_decimal_center'],
1477-
extensions=['png'])
1478-
def test_bar_decimal_center():
1479-
# Test vertical, align-center bar chart with Decimal() input
1480-
# No exception should be raised
1481-
ax = plt.gca()
1482-
x = [Decimal(x) for x in [1.5, 8.4, 5.3, 4.2]]
1483-
y = [Decimal(y) for y in [1.1, 2.2, 3.3, 4.4]]
1484-
ax.bar(x, y, align='center')
1485-
1486-
1487-
@image_comparison(
1488-
baseline_images=['barh_decimal_center'],
1489-
extensions=['png'])
1490-
def test_barh_decimal_center():
1491-
# Test horizontal, align-center bar chart with Decimal() input
1492-
# No exception should be raised
1493-
ax = plt.gca()
1494-
x = [Decimal(x) for x in [1.5, 8.4, 5.3, 4.2]]
1495-
y = [Decimal(y) for y in [1.1, 2.2, 3.3, 4.4]]
1496-
ax.barh(x, y, height=[0.5, 0.5, 1, 1], align='center')
1497-
1498-
14991475
def test_bar_color_none_alpha():
15001476
ax = plt.gca()
15011477
rects = ax.bar([1, 2], [2, 4], alpha=0.3, color='none', edgecolor='r')

0 commit comments

Comments
 (0)
0