Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commit2c03e25
committed
Make kwargs names in scale.py not include the axis direction.
- Make names of kwargs to Scale subclasses independent of whether the underlying axis is x or y (so that after the deprecation period, one can just have a normal signature -- `def __init__(self, *, base=10, ...)`. We could possibly also change semilogx and semilogy to use the unsuffixed names (with deprecation), leaving only loglog with the suffixed names, or even also make loglog use unsuffixed names, in which case it would become impossible to set separate x and y bases directly in loglog -- one should then do `gca().set_xscale("log", base=...)` which doesn't seem too onerous. (loglog is the only case where the suffixed names has *some* utility.) In general, note that having kwargs that depend on the axis direction doesn't really scale -- for example, if we were to finally add log-scale support to mplot3d, should scale.py know about it and add `basez`? Should we have `baser` for log-scale polar plots? (at least in the radial direction, they make sense)- Move argument validation up the the Transform subclasses.- Make SymmetricalLogScale.{base,linthresh,linscale} properties mapping to the underlying transform so that they can't go out of sync.1 parent53c8d6a commit2c03e25
File tree
9 files changed
+93
-100
lines changed- doc/api/next_api_changes
- examples/scales
- lib/matplotlib
- axes
- tests
- tutorials/introductory
9 files changed
+93
-100
lines changedLines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
184 | 184 |
| |
185 | 185 |
| |
186 | 186 |
| |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + |
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
| 30 | + | |
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
| |||
35 | 36 |
| |
36 | 37 |
| |
37 | 38 |
| |
38 |
| - | |
39 |
| - | |
| 39 | + | |
| 40 | + | |
40 | 41 |
| |
41 | 42 |
| |
42 | 43 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
| 48 | + | |
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
| 30 | + | |
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
|
Lines changed: 12 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1795 | 1795 |
| |
1796 | 1796 |
| |
1797 | 1797 |
| |
1798 |
| - | |
| 1798 | + | |
1799 | 1799 |
| |
1800 |
| - | |
1801 |
| - | |
1802 |
| - | |
1803 | 1800 |
| |
| 1801 | + | |
| 1802 | + | |
1804 | 1803 |
| |
1805 |
| - | |
1806 |
| - | |
1807 |
| - | |
| 1804 | + | |
1808 | 1805 |
| |
1809 | 1806 |
| |
1810 | 1807 |
| |
| |||
1848 | 1845 |
| |
1849 | 1846 |
| |
1850 | 1847 |
| |
1851 |
| - | |
| 1848 | + | |
1852 | 1849 |
| |
1853 |
| - | |
1854 | 1850 |
| |
1855 |
| - | |
1856 |
| - | |
| 1851 | + | |
1857 | 1852 |
| |
1858 | 1853 |
| |
1859 | 1854 |
| |
| |||
1897 | 1892 |
| |
1898 | 1893 |
| |
1899 | 1894 |
| |
1900 |
| - | |
| 1895 | + | |
1901 | 1896 |
| |
1902 | 1897 |
| |
1903 |
| - | |
1904 |
| - | |
1905 |
| - | |
| 1898 | + | |
1906 | 1899 |
| |
1907 | 1900 |
| |
1908 | 1901 |
| |
| |||
2343 | 2336 |
| |
2344 | 2337 |
| |
2345 | 2338 |
| |
2346 |
| - | |
| 2339 | + | |
2347 | 2340 |
| |
2348 | 2341 |
| |
2349 | 2342 |
| |
2350 |
| - | |
| 2343 | + | |
2351 | 2344 |
| |
2352 | 2345 |
| |
2353 | 2346 |
| |
| |||
6715 | 6708 |
| |
6716 | 6709 |
| |
6717 | 6710 |
| |
6718 |
| - | |
| 6711 | + | |
6719 | 6712 |
| |
6720 |
| - | |
| 6713 | + | |
6721 | 6714 |
| |
6722 | 6715 |
| |
6723 | 6716 |
| |
|
Lines changed: 55 additions & 64 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
281 | 281 |
| |
282 | 282 |
| |
283 | 283 |
| |
| 284 | + | |
| 285 | + | |
284 | 286 |
| |
285 |
| - | |
| 287 | + | |
| 288 | + | |
286 | 289 |
| |
287 | 290 |
| |
288 | 291 |
| |
| |||
362 | 365 |
| |
363 | 366 |
| |
364 | 367 |
| |
365 |
| - | |
| 368 | + | |
366 | 369 |
| |
367 |
| - | |
| 370 | + | |
368 | 371 |
| |
369 | 372 |
| |
370 |
| - | |
371 |
| - | |
372 |
| - | |
373 |
| - | |
374 |
| - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
375 | 377 |
| |
376 |
| - | |
377 |
| - | |
378 |
| - | |
379 |
| - | |
380 |
| - | |
381 |
| - | |
382 |
| - | |
383 |
| - | |
384 |
| - | |
385 |
| - | |
386 |
| - | |
387 |
| - | |
388 |
| - | |
389 |
| - | |
390 |
| - | |
391 |
| - | |
392 |
| - | |
393 |
| - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
394 | 390 |
| |
395 | 391 |
| |
396 | 392 |
| |
397 |
| - | |
398 |
| - | |
399 |
| - | |
| 393 | + | |
400 | 394 |
| |
401 | 395 |
| |
402 | 396 |
| |
| |||
463 | 457 |
| |
464 | 458 |
| |
465 | 459 |
| |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
466 | 466 |
| |
467 | 467 |
| |
468 | 468 |
| |
| |||
523 | 523 |
| |
524 | 524 |
| |
525 | 525 |
| |
526 |
| - | |
| 526 | + | |
527 | 527 |
| |
528 | 528 |
| |
529 |
| - | |
| 529 | + | |
530 | 530 |
| |
531 | 531 |
| |
532 | 532 |
| |
533 |
| - | |
| 533 | + | |
534 | 534 |
| |
535 | 535 |
| |
536 | 536 |
| |
537 | 537 |
| |
538 |
| - | |
| 538 | + | |
539 | 539 |
| |
540 | 540 |
| |
541 | 541 |
| |
| |||
557 | 557 |
| |
558 | 558 |
| |
559 | 559 |
| |
560 |
| - | |
561 |
| - | |
562 |
| - | |
563 |
| - | |
564 |
| - | |
565 |
| - | |
566 |
| - | |
567 |
| - | |
568 |
| - | |
569 |
| - | |
570 |
| - | |
571 |
| - | |
572 |
| - | |
573 |
| - | |
574 |
| - | |
575 |
| - | |
576 |
| - | |
577 |
| - | |
578 |
| - | |
579 |
| - | |
580 |
| - | |
581 |
| - | |
582 |
| - | |
583 |
| - | |
584 |
| - | |
585 |
| - | |
586 |
| - | |
587 |
| - | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
588 | 578 |
| |
589 |
| - | |
590 |
| - | |
591 |
| - | |
592 | 579 |
| |
593 | 580 |
| |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
594 | 585 |
| |
595 | 586 |
| |
596 | 587 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1150 | 1150 |
| |
1151 | 1151 |
| |
1152 | 1152 |
| |
1153 |
| - | |
| 1153 | + | |
1154 | 1154 |
| |
1155 |
| - | |
| 1155 | + | |
1156 | 1156 |
| |
1157 | 1157 |
| |
1158 | 1158 |
| |
| |||
2241 | 2241 |
| |
2242 | 2242 |
| |
2243 | 2243 |
| |
2244 |
| - | |
| 2244 | + | |
2245 | 2245 |
| |
2246 |
| - | |
| 2246 | + | |
2247 | 2247 |
| |
2248 | 2248 |
| |
2249 | 2249 |
| |
|
Lines changed: 5 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
91 |
| - | |
| 91 | + | |
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
| |||
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
111 |
| - | |
112 | 111 |
| |
113 |
| - | |
| 112 | + | |
114 | 113 |
| |
115 | 114 |
| |
116 |
| - | |
| 115 | + | |
117 | 116 |
| |
118 |
| - | |
119 | 117 |
| |
120 |
| - | |
| 118 | + | |
121 | 119 |
| |
122 | 120 |
| |
123 | 121 |
| |
| |||
150 | 148 |
| |
151 | 149 |
| |
152 | 150 |
| |
153 |
| - | |
| 151 | + | |
154 | 152 |
| |
155 | 153 |
| |
156 | 154 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
443 | 443 |
| |
444 | 444 |
| |
445 | 445 |
| |
446 |
| - | |
| 446 | + | |
447 | 447 |
| |
448 | 448 |
| |
449 | 449 |
| |
|
0 commit comments
Comments
(0)