Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commit17c0e26
committed
update units.ConversionInterface to have
This change updates `matplotlib.units.ConversionInterface` to have a`to_numeric` instead of a `convert` method, and adds a `from_numeric`method. The method `convert` is renamed to `to_numeric` and similarlynamed methods are updated accordingly. The renaming is done to make`convert` less ambiguous with a forward and backward conversion on the`ConversionInterface`.Adding a `from_numeric` method standardizes the way to convert back to anative object from an internal numeric value. This allows registeredconverters to provide more specific conversions which will allowformatters and locators to provide an implementation which is not astied to the internal values Matplotlib uses.to_numeric
andfrom_numeric
1 parent1c93e76 commit17c0e26
File tree
30 files changed
+443
-293
lines changed- doc/api
- examples/units
- lib
- matplotlib
- axes
- projections
- testing
- jpl_units
- tests
- mpl_toolkits/mplot3d
30 files changed
+443
-293
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
| 147 | + | |
147 | 148 |
| |
| 149 | + | |
148 | 150 |
| |
149 | 151 |
| |
150 | 152 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
424 | 424 |
| |
425 | 425 |
| |
426 | 426 |
| |
| 427 | + | |
427 | 428 |
| |
| 429 | + | |
428 | 430 |
| |
429 | 431 |
| |
430 | 432 |
| |
|
Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
159 | 159 |
| |
160 | 160 |
| |
161 | 161 |
| |
| 162 | + | |
| 163 | + | |
162 | 164 |
| |
163 | 165 |
| |
164 | 166 |
| |
| |||
330 | 332 |
| |
331 | 333 |
| |
332 | 334 |
| |
| 335 | + | |
| 336 | + | |
333 | 337 |
| |
334 | 338 |
| |
335 | 339 |
| |
| |||
395 | 399 |
| |
396 | 400 |
| |
397 | 401 |
| |
| 402 | + | |
| 403 | + | |
398 | 404 |
| |
399 | 405 |
| |
400 | 406 |
| |
| |||
464 | 470 |
| |
465 | 471 |
| |
466 | 472 |
| |
| 473 | + | |
467 | 474 |
| |
| 475 | + | |
468 | 476 |
| |
469 | 477 |
| |
470 | 478 |
| |
| |||
529 | 537 |
| |
530 | 538 |
| |
531 | 539 |
| |
| 540 | + | |
532 | 541 |
| |
| 542 | + | |
533 | 543 |
| |
534 | 544 |
| |
535 | 545 |
| |
| |||
594 | 604 |
| |
595 | 605 |
| |
596 | 606 |
| |
| 607 | + | |
597 | 608 |
| |
| 609 | + | |
598 | 610 |
| |
599 | 611 |
| |
600 | 612 |
| |
| |||
669 | 681 |
| |
670 | 682 |
| |
671 | 683 |
| |
| 684 | + | |
672 | 685 |
| |
| 686 | + | |
673 | 687 |
| |
674 | 688 |
| |
675 | 689 |
| |
| |||
734 | 748 |
| |
735 | 749 |
| |
736 | 750 |
| |
| 751 | + | |
737 | 752 |
| |
| 753 | + | |
738 | 754 |
| |
739 | 755 |
| |
740 | 756 |
| |
| |||
799 | 815 |
| |
800 | 816 |
| |
801 | 817 |
| |
| 818 | + | |
802 | 819 |
| |
| 820 | + | |
803 | 821 |
| |
804 | 822 |
| |
805 | 823 |
| |
|
Lines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
313 | 313 |
| |
314 | 314 |
| |
315 | 315 |
| |
316 |
| - | |
317 |
| - | |
| 316 | + | |
| 317 | + | |
318 | 318 |
| |
319 | 319 |
| |
320 | 320 |
| |
| |||
336 | 336 |
| |
337 | 337 |
| |
338 | 338 |
| |
339 |
| - | |
340 |
| - | |
341 |
| - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
342 | 342 |
| |
343 | 343 |
| |
344 | 344 |
| |
| |||
358 | 358 |
| |
359 | 359 |
| |
360 | 360 |
| |
361 |
| - | |
362 |
| - | |
| 361 | + | |
| 362 | + | |
363 | 363 |
| |
364 | 364 |
| |
365 | 365 |
| |
|
Lines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
32 |
| - | |
| 31 | + | |
| 32 | + | |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
45 |
| - | |
| 44 | + | |
| 45 | + | |
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
| 51 | + | |
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 |
| - | |
60 |
| - | |
| 59 | + | |
| 60 | + | |
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
|
Lines changed: 12 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
167 |
| - | |
| 167 | + | |
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
| |||
174 | 174 |
| |
175 | 175 |
| |
176 | 176 |
| |
177 |
| - | |
| 177 | + | |
178 | 178 |
| |
179 |
| - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
180 | 184 |
| |
181 | 185 |
| |
182 | 186 |
| |
| |||
186 | 190 |
| |
187 | 191 |
| |
188 | 192 |
| |
189 |
| - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
190 | 198 |
| |
191 | 199 |
| |
192 | 200 |
| |
|
0 commit comments
Comments
(0)