diff --git a/caimira/apps/expert.py b/caimira/apps/expert.py index c15234c0..5162d8f0 100644 --- a/caimira/apps/expert.py +++ b/caimira/apps/expert.py @@ -126,7 +126,7 @@ def widget(self): self.figure.canvas, ]) - def initialize_axes(self) -> matplotlib.figure.Axes: + def initialize_axes(self) -> typing.Tuple[matplotlib.axes.Axes, matplotlib.axes.Axes]: ax = self.figure.add_subplot(1, 1, 1) ax.spines['right'].set_visible(False) ax.spines['top'].set_visible(False) @@ -230,7 +230,7 @@ def widget(self): # unless the widget is wrapped in a container (it is seen on all tabs otherwise!). return widgets.HBox([self.figure.canvas]) - def initialize_axes(self) -> matplotlib.figure.Axes: + def initialize_axes(self) -> typing.Tuple[matplotlib.axes.Axes, matplotlib.axes.Axes]: ax = self.figure.add_subplot(1, 1, 1) ax.spines['right'].set_visible(False) ax.spines['top'].set_visible(False) diff --git a/caimira/apps/expert_co2.py b/caimira/apps/expert_co2.py index 345f7cf7..5c3437bf 100644 --- a/caimira/apps/expert_co2.py +++ b/caimira/apps/expert_co2.py @@ -69,7 +69,7 @@ def widget(self): self.figure.canvas, ]) - def initialize_axes(self) -> matplotlib.figure.Axes: + def initialize_axes(self) -> matplotlib.axes.Axes: ax = self.figure.add_subplot(1, 1, 1) ax.spines['right'].set_visible(False) ax.spines['top'].set_visible(False) @@ -140,7 +140,7 @@ def widget(self): # unless the widget is wrapped in a container (it is seen on all tabs otherwise!). return widgets.HBox([self.figure.canvas]) - def initialize_axes(self) -> matplotlib.figure.Axes: + def initialize_axes(self) -> matplotlib.axes.Axes: ax = self.figure.add_subplot(1, 1, 1) ax.spines[['right', 'top']].set_visible(False)