Skip to content

Commit ff40b7e

Browse files
committed
Merge pull request #6869 from 4over7/patch-1
FIX: 'closes' and 'lows' misplaced in candlestick chart
1 parent 3d2872e commit ff40b7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/finance.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ def candlestick2_ochl(ax, opens, closes, highs, lows, width=4,
10561056
(lineCollection, barCollection)
10571057
"""
10581058

1059-
candlestick2_ohlc(ax, opens, highs, closes, lows, width=width,
1059+
candlestick2_ohlc(ax, opens, highs, lows, closes, width=width,
10601060
colorup=colorup, colordown=colordown,
10611061
alpha=alpha)
10621062

@@ -1148,8 +1148,8 @@ def candlestick2_ohlc(ax, opens, highs, lows, closes, width=4,
11481148
ax.autoscale_view()
11491149

11501150
# add these last
1151-
ax.add_collection(barCollection)
11521151
ax.add_collection(rangeCollection)
1152+
ax.add_collection(barCollection)
11531153
return rangeCollection, barCollection
11541154

11551155

0 commit comments

Comments
 (0)