Skip to content

Commit

Permalink
Merge pull request #379 from scipp/restore-toolbar-tiled
Browse files Browse the repository at this point in the history
Restore toolbar for tiled plots
  • Loading branch information
nvaytet authored Sep 25, 2024
2 parents 43e00a8 + f31f5f5 commit 56ae40d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plopp/backends/matplotlib/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ def __init__(
if self.ax is None:
self.fig = make_figure(figsize=(6.0, 4.0) if figsize is None else figsize)
self.ax = self.fig.add_subplot()
if self.is_widget():
self.fig.canvas.toolbar_visible = False
self.fig.canvas.header_visible = False
else:
self.fig = self.ax.get_figure()
if aspect is not None:
self.ax.set_aspect(aspect)
if self.is_widget():
self.fig.canvas.toolbar_visible = False
self.fig.canvas.header_visible = False

if cbar and (self.cax is None):
if self.ax.name == 'polar':
Expand Down

0 comments on commit 56ae40d

Please sign in to comment.