File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
lib/mpl_toolkits/axisartist Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 8
8
import numpy as np
9
9
10
10
from matplotlib import _api , cbook
11
+ import matplotlib .axes as maxes
11
12
import matplotlib .patches as mpatches
12
13
from matplotlib .path import Path
13
- import matplotlib .axes as maxes
14
14
15
15
from mpl_toolkits .axes_grid1 .parasite_axes import host_axes_class_factory
16
16
@@ -311,13 +311,9 @@ def get_boundary(self):
311
311
312
312
class FloatingAxesBase :
313
313
314
- def __init__ (self , * args , ** kwargs ):
315
- grid_helper = kwargs .get ("grid_helper" , None )
316
- if grid_helper is None :
317
- raise ValueError ("FloatingAxes requires grid_helper argument" )
318
- if not hasattr (grid_helper , "get_boundary" ):
319
- raise ValueError ("grid_helper must implement get_boundary method" )
320
- super ().__init__ (* args , ** kwargs )
314
+ def __init__ (self , * args , grid_helper , ** kwargs ):
315
+ _api .check_isinstance (GridHelperCurveLinear , grid_helper = grid_helper )
316
+ super ().__init__ (* args , grid_helper = grid_helper , ** kwargs )
321
317
self .set_aspect (1. )
322
318
self .adjust_axes_lim ()
323
319
You can’t perform that action at this time.
0 commit comments