Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fabh2o committed Dec 21, 2022
1 parent fa3e807 commit 2eca6df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ipympl/backend_nbagg.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ def new_figure_manager_given_figure(num, figure):
figure.patch.set_alpha(0)
manager = FigureManager(canvas, num)

canvas._handle_message(canvas, {'type': 'send_image_mode'}, [])
canvas._handle_message(canvas, {'type':'refresh'}, [])
canvas._handle_message(canvas,{'type': 'initialized'},[])
canvas._handle_message(canvas,{'type': 'draw'},[])

if is_interactive():
_Backend_ipympl._to_show.append(figure)
figure.canvas.draw_idle()
Expand Down

0 comments on commit 2eca6df

Please sign in to comment.