diff --git a/IPython/core/pylabtools.py b/IPython/core/pylabtools.py index b16d67a..eca72fe 100644 --- a/IPython/core/pylabtools.py +++ b/IPython/core/pylabtools.py @@ -92,7 +92,7 @@ def print_figure(fig, fmt='png'): """Convert a figure to svg or png for inline display.""" # When there's an empty figure, we shouldn't return anything, otherwise we # get big blank areas in the qt console. - if not fig.axes: + if not fig.axes and not fig.lines: return fc = fig.get_facecolor()