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

Skip to content

Commit f65f56d

Browse files
authored
Merge pull request #25580 from QuLogic/fix-plot-commands
Fix return type of get_plot_commands
2 parents 92a0ffc + c201c8b commit f65f56d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,8 +2066,8 @@ def get_plot_commands():
20662066
NON_PLOT_COMMANDS = {
20672067
'connect', 'disconnect', 'get_current_fig_manager', 'ginput',
20682068
'new_figure_manager', 'waitforbuttonpress'}
2069-
return (name for name in _get_pyplot_commands()
2070-
if name not in NON_PLOT_COMMANDS)
2069+
return [name for name in _get_pyplot_commands()
2070+
if name not in NON_PLOT_COMMANDS]
20712071

20722072

20732073
def _get_pyplot_commands():

0 commit comments

Comments
 (0)