Commit 12533d8
committed
Fix invalid range validators.
- The correct bound on margins value, documented in set_x/y/zmargin, is
margin>-0.5. Fix the docstring of margins() and the rc validators.
- The only constraints on tight/constrained layout margins is left<right
and bottom<top, but values outside of [0, 1] can in fact be valid. It
would be annoying to enforce this at the rcparams level (this would
force the user to update individual rcparams in a careful order), so
just don't bother validating the values beyond "float".
- Remove the somewhat overengineered _range_validators.
- Move the comment about the values of figure.constrained_layout.h/w_pad
to the default matplotlibrc (in rcsetup.py it was far away from the
actual values, which made things a bit weird). Also reword a bit.1 parent efd66d4 commit 12533d8
File tree
4 files changed
+28
-30
lines changed- lib/matplotlib
- axes
- mpl-data
4 files changed
+28
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
| 681 | + | |
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2665 | 2665 | | |
2666 | 2666 | | |
2667 | 2667 | | |
2668 | | - | |
| 2668 | + | |
2669 | 2669 | | |
2670 | 2670 | | |
2671 | | - | |
| 2671 | + | |
2672 | 2672 | | |
2673 | 2673 | | |
2674 | 2674 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
592 | 596 | | |
593 | 597 | | |
594 | 598 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
555 | | - | |
| 555 | + | |
556 | 556 | | |
557 | | - | |
| 557 | + | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
| 560 | + | |
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | 571 | | |
578 | 572 | | |
579 | 573 | | |
| |||
1012 | 1006 | | |
1013 | 1007 | | |
1014 | 1008 | | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
1018 | 1012 | | |
1019 | 1013 | | |
1020 | 1014 | | |
| |||
1149 | 1143 | | |
1150 | 1144 | | |
1151 | 1145 | | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
1158 | 1152 | | |
1159 | 1153 | | |
1160 | 1154 | | |
1161 | 1155 | | |
1162 | | - | |
1163 | | - | |
| 1156 | + | |
| 1157 | + | |
1164 | 1158 | | |
1165 | | - | |
1166 | | - | |
| 1159 | + | |
| 1160 | + | |
1167 | 1161 | | |
1168 | 1162 | | |
1169 | 1163 | | |
| |||
1207 | 1201 | | |
1208 | 1202 | | |
1209 | 1203 | | |
1210 | | - | |
| 1204 | + | |
1211 | 1205 | | |
1212 | 1206 | | |
1213 | 1207 | | |
| |||
0 commit comments