Commit ff30a3b
committed
Deduplicate some code between floating_axes and grid_helper_curvelinear.
`floating_axes.GridHelperCurveLinear` inherits from
`grid_helper_curvelinear.GridHelperCurveLinear`.
- In the constructor, remove the duplicated docstring and the init of
`self._old_values` (also in the base class).
- Remove commented out `update_grid_finder` and `_update`, which are
directly inherited from the base class anyways.
- The `new_fixed_axis` implementation looks the same in both classes,
except that 1) they refer to different FixedAxisArtistHelper classes
(add a comment to clarify) and 2) one of them sets clipping and not
the other (likely a bug; leave a comment suggesting to investigate).
- Remove commented-out setting of `grid_info` in _update_grid (grid_info
is being redefined below anyways).
- Remove commented-out setting of `_grid_params` in base class (that
attribute doesn't exist anywhere else in the codebase).1 parent 136d986 commit ff30a3b
2 files changed
Lines changed: 10 additions & 58 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
| 208 | + | |
220 | 209 | | |
221 | 210 | | |
222 | | - | |
223 | 211 | | |
224 | 212 | | |
225 | 213 | | |
226 | 214 | | |
227 | 215 | | |
228 | 216 | | |
229 | 217 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | 218 | | |
246 | 219 | | |
247 | 220 | | |
| |||
257 | 230 | | |
258 | 231 | | |
259 | 232 | | |
260 | | - | |
261 | 233 | | |
262 | 234 | | |
263 | | - | |
264 | 235 | | |
265 | 236 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
270 | 241 | | |
| 242 | + | |
271 | 243 | | |
272 | 244 | | |
273 | | - | |
274 | 245 | | |
275 | 246 | | |
276 | 247 | | |
| |||
295 | 266 | | |
296 | 267 | | |
297 | 268 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | 269 | | |
302 | 270 | | |
303 | 271 | | |
| |||
361 | 329 | | |
362 | 330 | | |
363 | 331 | | |
364 | | - | |
365 | 332 | | |
366 | 333 | | |
367 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
315 | 314 | | |
316 | 315 | | |
317 | | - | |
318 | 316 | | |
319 | | - | |
320 | 317 | | |
321 | 318 | | |
322 | 319 | | |
| |||
325 | 322 | | |
326 | 323 | | |
327 | 324 | | |
328 | | - | |
329 | 325 | | |
330 | 326 | | |
331 | | - | |
332 | 327 | | |
333 | 328 | | |
334 | 329 | | |
335 | 330 | | |
336 | 331 | | |
337 | 332 | | |
338 | | - | |
339 | 333 | | |
340 | 334 | | |
341 | | - | |
342 | 335 | | |
343 | | - | |
344 | 336 | | |
345 | | - | |
346 | 337 | | |
347 | 338 | | |
348 | 339 | | |
349 | 340 | | |
350 | 341 | | |
351 | 342 | | |
352 | 343 | | |
353 | | - | |
354 | 344 | | |
355 | 345 | | |
356 | | - | |
357 | 346 | | |
358 | 347 | | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
| 348 | + | |
| 349 | + | |
364 | 350 | | |
365 | | - | |
| 351 | + | |
| 352 | + | |
366 | 353 | | |
367 | 354 | | |
368 | 355 | | |
| |||
401 | 388 | | |
402 | 389 | | |
403 | 390 | | |
404 | | - | |
405 | 391 | | |
406 | 392 | | |
407 | 393 | | |
408 | 394 | | |
409 | 395 | | |
410 | 396 | | |
411 | | - | |
412 | 397 | | |
413 | 398 | | |
414 | 399 | | |
| |||
0 commit comments