##// END OF EJS Templates
Display figures with no axes but lines, which are also valid.
Fernando Perez -
Show More
@@ -92,7 +92,7 b" def print_figure(fig, fmt='png'):"
92 """Convert a figure to svg or png for inline display."""
92 """Convert a figure to svg or png for inline display."""
93 # When there's an empty figure, we shouldn't return anything, otherwise we
93 # When there's an empty figure, we shouldn't return anything, otherwise we
94 # get big blank areas in the qt console.
94 # get big blank areas in the qt console.
95 if not fig.axes:
95 if not fig.axes and not fig.lines:
96 return
96 return
97
97
98 fc = fig.get_facecolor()
98 fc = fig.get_facecolor()
General Comments 0
You need to be logged in to leave comments. Login now