Skip to content

Commit

Permalink
expert apps updates following new matplotlib release
Browse files Browse the repository at this point in the history
  • Loading branch information
lrdossan committed Oct 3, 2023
1 parent 93d59bf commit 6a9d0c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions caimira/apps/expert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions caimira/apps/expert_co2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 6a9d0c0

Please sign in to comment.