@@ -205,43 +205,16 @@ def __init__(self, aux_trans, extremes,
205205 grid_locator2 = None ,
206206 tick_formatter1 = None ,
207207 tick_formatter2 = None ):
208- """
209- aux_trans : a transform from the source (curved) coordinate to
210- target (rectilinear) coordinate. An instance of MPL's Transform
211- (inverse transform should be defined) or a tuple of two callable
212- objects which defines the transform and its inverse. The callables
213- need take two arguments of array of source coordinates and
214- should return two target coordinates:
215- e.g., *x2, y2 = trans(x1, y1)*
216- """
217-
218- self ._old_values = None
219-
208+ # docstring inherited
220209 self ._extremes = extremes
221210 extreme_finder = ExtremeFinderFixed (extremes )
222-
223211 super ().__init__ (aux_trans ,
224212 extreme_finder ,
225213 grid_locator1 = grid_locator1 ,
226214 grid_locator2 = grid_locator2 ,
227215 tick_formatter1 = tick_formatter1 ,
228216 tick_formatter2 = tick_formatter2 )
229217
230- # def update_grid_finder(self, aux_trans=None, **kw):
231- # if aux_trans is not None:
232- # self.grid_finder.update_transform(aux_trans)
233- # self.grid_finder.update(**kw)
234- # self.invalidate()
235-
236- # def _update(self, x1, x2, y1, y2):
237- # "bbox in 0-based image coordinates"
238- # # update wcsgrid
239- # if self.valid() and self._old_values == (x1, x2, y1, y2):
240- # return
241- # self._update_grid(x1, y1, x2, y2)
242- # self._old_values = (x1, x2, y1, y2)
243- # self._force_update = False
244-
245218 def get_data_boundary (self , side ):
246219 """
247220 return v= 0 , nth=1
@@ -257,20 +230,18 @@ def new_fixed_axis(self, loc,
257230 axis_direction = None ,
258231 offset = None ,
259232 axes = None ):
260-
261233 if axes is None :
262234 axes = self .axes
263-
264235 if axis_direction is None :
265236 axis_direction = loc
266-
267- _helper = FixedAxisArtistHelper ( self , loc ,
268- nth_coord_ticks = nth_coord )
269-
237+ # This is not the same as the FixedAxisArtistHelper class used by
238+ # grid_helper_curvelinear.GridHelperCurveLinear.new_fixed_axis!
239+ _helper = FixedAxisArtistHelper (
240+ self , loc , nth_coord_ticks = nth_coord )
270241 axisline = AxisArtist (axes , _helper , axis_direction = axis_direction )
242+ # Perhaps should be moved to the base class?
271243 axisline .line .set_clip_on (True )
272244 axisline .line .set_clip_box (axisline .axes .bbox )
273-
274245 return axisline
275246
276247 # new_floating_axis will inherit the grid_helper's extremes.
@@ -295,9 +266,6 @@ def new_fixed_axis(self, loc,
295266 # return axis
296267
297268 def _update_grid (self , x1 , y1 , x2 , y2 ):
298-
299- # self.grid_info = self.grid_finder.get_grid_info(x1, y1, x2, y2)
300-
301269 if self .grid_info is None :
302270 self .grid_info = dict ()
303271
@@ -361,7 +329,6 @@ def get_gridlines(self, which="major", axis="both"):
361329 if axis in ["both" , "y" ]:
362330 for gl in self .grid_info ["lat_lines" ]:
363331 grid_lines .extend ([gl ])
364-
365332 return grid_lines
366333
367334 def get_boundary (self ):
0 commit comments