##// END OF EJS Templates
remove unused send_figure
MinRK -
Show More
@@ -207,22 +207,3 b' def flush_figures():'
207 show._to_draw = []
207 show._to_draw = []
208 show._draw_called = False
208 show._draw_called = False
209
209
210
211 def send_figure(fig):
212 """Draw the given figure and send it as a PNG payload.
213 """
214 fmt = InlineBackend.instance().figure_format
215 data = print_figure(fig, fmt)
216 # print_figure will return None if there's nothing to draw:
217 if data is None:
218 return
219 mimetypes = { 'png' : 'image/png', 'svg' : 'image/svg+xml' }
220 mime = mimetypes[fmt]
221 # flush text streams before sending figures, helps a little with output
222 # synchronization in the console (though it's a bandaid, not a real sln)
223 sys.stdout.flush(); sys.stderr.flush()
224 publish_display_data(
225 'IPython.zmq.pylab.backend_inline.send_figure',
226 {mime : data}
227 )
228
General Comments 0
You need to be logged in to leave comments. Login now