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

Skip to content

Commit e70f1db

Browse files
committed
added add_collection call to finance.volume_overlay
With out this line, the function updates the axes limits, but does not actually plot anything.
1 parent 5a06283 commit e70f1db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/finance.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ def volume_overlay(ax, opens, closes, volumes,
573573
linewidths = (0.5,),
574574
)
575575

576+
ax.add_collection(barCollection)
576577
corners = (0, 0), (len(bars), max(volumes))
577578
ax.update_datalim(corners)
578579
ax.autoscale_view()

0 commit comments

Comments
 (0)