Skip to content

Commit b5d2ef1

Browse files
committed
FIX: AxesSubplot not found
#8 Use mpl.axes.SubplotBase know to check for type of ax (to plot on)
1 parent 81175a7 commit b5d2ef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/cnn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ def query_data(self, mode='train'):
14961496

14971497
def evaluate(
14981498
self,
1499-
ax: Optional[Type[mpl.axes._subplots.AxesSubplot]] = None,
1499+
ax: Optional[Type[mpl.axes.SubplotBase]] = None,
15001500
mode: str='train', clusters: Optional[List[int]]=None,
15011501
original: bool=False, plot: str='dots',
15021502
parts: Optional[Tuple[Optional[int], Optional[int], Optional[int]]]=None,

0 commit comments

Comments
 (0)