Skip to content

Commit 4ceafac

Browse files
restore plt.show(), because fig.show() is NOT equivalent.
1 parent d674480 commit 4ceafac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mplfinance/plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ def plot( data, **kwargs ):
866866
if config['closefig']: # True or 'auto'
867867
plt.close(fig)
868868
elif not config['returnfig']:
869-
fig.show() # https://stackoverflow.com/a/13361748/1639359
869+
plt.show(block=config['block']) # https://stackoverflow.com/a/13361748/1639359
870870
if config['closefig'] == True or (config['block'] and config['closefig']):
871871
plt.close(fig)
872872

0 commit comments

Comments
 (0)