From af445c5637d4a81d8e1416611f7038f5f4189b3b 2011-12-14 09:27:40 From: Fernando Perez Date: 2011-12-14 09:27:40 Subject: [PATCH] Display figures with no axes but lines, which are also valid. --- 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()