@@ -115,26 +115,11 @@ def update_lim(self, axes):
115
115
if e2 is not None :
116
116
extremes [1 ] = min (e2 , extremes [1 ])
117
117
118
- grid_info = dict ()
119
118
lon_min , lon_max , lat_min , lat_max = extremes
120
119
lon_levs , lon_n , lon_factor = \
121
120
grid_finder .grid_locator1 (lon_min , lon_max )
122
121
lat_levs , lat_n , lat_factor = \
123
122
grid_finder .grid_locator2 (lat_min , lat_max )
124
- grid_info ["extremes" ] = extremes
125
-
126
- grid_info ["lon_info" ] = lon_levs , lon_n , lon_factor
127
- grid_info ["lat_info" ] = lat_levs , lat_n , lat_factor
128
-
129
- grid_info ["lon_labels" ] = grid_finder .tick_formatter1 ("bottom" ,
130
- lon_factor ,
131
- lon_levs )
132
-
133
- grid_info ["lat_labels" ] = grid_finder .tick_formatter2 ("bottom" ,
134
- lat_factor ,
135
- lat_levs )
136
-
137
- grid_finder = self .grid_helper .grid_finder
138
123
139
124
if self .nth_coord == 0 :
140
125
xx0 = np .linspace (self .value , self .value , self ._line_num_points )
@@ -145,8 +130,16 @@ def update_lim(self, axes):
145
130
yy0 = np .linspace (self .value , self .value , self ._line_num_points )
146
131
xx , yy = grid_finder .transform_xy (xx0 , yy0 )
147
132
148
- grid_info ["line_xy" ] = xx , yy
149
- self .grid_info = grid_info
133
+ self .grid_info = {
134
+ "extremes" : extremes ,
135
+ "lon_info" : (lon_levs , lon_n , lon_factor ),
136
+ "lat_info" : (lat_levs , lat_n , lat_factor ),
137
+ "lon_labels" : grid_finder .tick_formatter1 (
138
+ "bottom" , lon_factor , lon_levs ),
139
+ "lat_labels" : grid_finder .tick_formatter2 (
140
+ "bottom" , lat_factor , lat_levs ),
141
+ "line_xy" : (xx , yy ),
142
+ }
150
143
151
144
def get_axislabel_transform (self , axes ):
152
145
return Affine2D () # axes.transData
@@ -346,8 +339,7 @@ def new_fixed_axis(self, loc,
346
339
axes = self .axes
347
340
if axis_direction is None :
348
341
axis_direction = loc
349
- _helper = FixedAxisArtistHelper (
350
- self , loc , nth_coord_ticks = nth_coord )
342
+ _helper = FixedAxisArtistHelper (self , loc , nth_coord_ticks = nth_coord )
351
343
axisline = AxisArtist (axes , _helper , axis_direction = axis_direction )
352
344
# Why is clip not set on axisline, unlike in new_floating_axis or in
353
345
# the floating_axig.GridHelperCurveLinear subclass?
0 commit comments