Skip to content

Commit efd3c80

Browse files
samcunliffedstansby
andcommitted
Co-authored-by: David Stansby <[email protected]>
1 parent 03778c7 commit efd3c80

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/napari_matplotlib/base.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ def apply_napari_colorscheme(self, ax: Axes) -> None:
8888

8989
ax.xaxis.label.set_color(text_colour)
9090
ax.yaxis.label.set_color(text_colour)
91-
# ax.set_xlabel(ax.get_xlabel, color=text_colour)
9291

9392
# changing colors of axes labels
9493
ax.tick_params(axis="x", colors=text_colour)
@@ -246,9 +245,8 @@ def _draw(self) -> None:
246245
isinstance(layer, self.input_layer_types) for layer in self.layers
247246
):
248247
self.draw()
249-
self.canvas.draw()
250-
self.canvas.flush_events()
251248
self.apply_napari_colorscheme(self.figure.gca())
249+
self.canvas.draw()
252250

253251
def clear(self) -> None:
254252
"""

0 commit comments

Comments
 (0)